SPL includes the following C/C++ like bitwise functions and operators:
Operator |
Function |
Description |
>> |
BITRSHIFT |
bit shift right |
<< |
BITLSHIFT |
bit shift left |
& |
BITAND |
bit and |
~ |
BITCOMP |
bit complement |
|+ |
BITOR |
bit or |
|^ |
BITXOR |
bit exclusive or |
Note: The | symbol is not currently used as the bitor operator since | is the pipe operator. Use |+ instead.