28.2.66 __builtin_lac_32

Architecture: 

dsPIC33A

Description:

Load accumulator with a 32-bit, possibly shifted, value; extending as needed.

Example:

volatile register int Accum asm("A");
int32_t v;
 
Accum = __builtin_lac_32(v,0);

Prototype:

int __builtin_lac_32(int32_t v, int32_t shift);

Arguments

v - value to load into accumulator

shift - literal shift amount

Return Value

The shifted value v is stored into the accumulator.

Machine Instruction

lac

Error Messages

If the shift argument is not literal or is out of range, an error message will be generated.