28.2.115 __builtin_sac_32

Architecture:

dsPIC33A

Description:

Extract a possibly shifted accumulator value into a 32-bit value.

Example:

int32_t result;
volatile register int Accum asm("A");
 
result = __builtin_sac_32(Accum,0);

Prototype

int32_t __builtin_sac_32(int Accum, int32_t shift);

Arguments

Accum  - accumulator to extract

shift - literal shift value, negative values represent a left shift.

Return Value

The accumulator is shifted by shift bits and truncated.

Error Messages

An error message is produced if shift is not a literal value.

An error message is produced if shift is out of range.