28.2.85 __builtin_mpy_16
Architecture
dsPIC33A, dsPIC33C/E/F, dsPIC30
Description
16-bit multiply into an accumulator.
Example:
volatile register int Accum asm("A");
int16_t a,b;
A = __builtin_mpy_16(a,b);
Prototype
int __builtin_mpy_16(int16_t a, int16_t b);
Arguments
a
- left hand side of multiply
b
- right hand side of multiply
Return Value
Returns the multiplication result
a
*b
into an
accumulator.
Machine Instruction
mpy
Error Messages:
None.