28.2.70 __builtin_mac_16

Architecture

dsPIC33A, dsPIC33C/E/F, dsPIC30

Description:

16-bit multiply with accumulate.

Example:

volatile register int Accum asm("A");
int16_t a,b;
 
Accum = __builtin_mac_16(Accum,a,b);

Prototype:

int __builtin_mac_16(int Accum, int16_t a, int16_t b);

Arguments

Accum - accumulator

a - left hand side of the multiply

b - right hand side of the multiply

Return Value

This builtin returns Accum + (a*b) into the same accumulator that is input.

Machine Instruction

mac

Error Messages

None.