hello, are there intrinsic functions available for the XC164 to use the multiply unit of the ALU? For example for calculations like: 16bit x 16bit = 32bit (MUL-instruction)or 32bit / 16bit = 16bit (DIVL-instruction)? regards! Andreas
As far as I know, there are no such intrinsic functions. Besides, why would you need them when the compiler emits the appropriae instructions well enough? Just compile the following piece of code and see the compiler output:
int a, b; long c; void main(void) { c = a * (long)b; b = c / a; }
Hi Mike, Thanks for the answer! With the tasking compiler this was a problem. With Keil it works well! regards Andreas