Bit Operators

 

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.