Xgate and multiplication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Xgate and multiplication

2,573 Views
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
Labels (1)
0 Kudos
Reply
2 Replies

703 Views
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 Kudos
Reply

703 Views
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 Kudos
Reply