gcc: picoChip Built-in Functions

1 
1 6.59.20 picoChip Built-in Functions
1 -----------------------------------
1 
1 GCC provides an interface to selected machine instructions from the
1 picoChip instruction set.
1 
1 'int __builtin_sbc (int VALUE)'
1      Sign bit count.  Return the number of consecutive bits in VALUE
1      that have the same value as the sign bit.  The result is the number
1      of leading sign bits minus one, giving the number of redundant sign
1      bits in VALUE.
1 
1 'int __builtin_byteswap (int VALUE)'
1      Byte swap.  Return the result of swapping the upper and lower bytes
1      of VALUE.
1 
1 'int __builtin_brev (int VALUE)'
1      Bit reversal.  Return the result of reversing the bits in VALUE.
1      Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
1      on.
1 
1 'int __builtin_adds (int X, int Y)'
1      Saturating addition.  Return the result of adding X and Y, storing
1      the value 32767 if the result overflows.
1 
1 'int __builtin_subs (int X, int Y)'
1      Saturating subtraction.  Return the result of subtracting Y from X,
1      storing the value -32768 if the result overflows.
1 
1 'void __builtin_halt (void)'
1      Halt.  The processor stops execution.  This built-in is useful for
1      implementing assertions.
1