28.2.88 __builtin_mpyn_16

Architecture

dsPIC33A, dsPIC33C/E/F, dsPIC30

Description

16-bit multiply and negate into an accumulator.

Example:

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

Prototype

int __builtin_mpyn_16(int16_t a, int16_t b);

Arguments

a - left hand side of the multiply

b - left hand side of the multiply

Return Value

Returns the negated multiplication result -a*b into an accumulator.

Machine Instruction

mpyn

Error Messages

None.