Xgate and multiplication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Xgate and multiplication

3,043件の閲覧回数
calou
Contributor III
Hello,
 
Could the Xgate do long multiplication?
For example i have : int var, Long result
I want to do result=var*var
 
Is the xgate is able to do that because i saw that it could only do "basic operation".
If it could do it, is it faster to do this operation with xgate or hcs12 core?
 
Thank you
 
Regards
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,173件の閲覧回数
Steve
NXP Employee
NXP Employee
As Alban said the CPU is a better choice for multiplication (and division), however, the XGATE can do it using C libraries so it is an option when appropriate. AN3289 has a simple example in section 9 that shows the strengths of the two cores when some division is involved.
0 件の賞賛
返信

1,173件の閲覧回数
Alban
Senior Contributor II
Hello Calou,
 
I strongly recommended to use the CPU12X core to do all multiplication and NOT the XGATE.
The XGATE is not an appropriate choice for long multiplication.
 
Cheers,
Alban.
0 件の賞賛
返信