28.2.50 __builtin_sac

Description

Shifts a value by shift and returns the value. For example:

 volatile register int value asm("A");
 long result;
 result = __builtin_sac(value,3);

Prototype

long __builtin_sac(int value, int shift);

Argument

value – Integer number to be shifted.

shift – Literal amount to shift between -8 and 7

Return Value

Returns the shifted result.

Assembler Operator/ Machine Instruction

None

Error Messages

An error message will be displayed if: the result is not an accumulator register the shift value is not a literal within range