Bitwise Operations
BITAND
BITAND
—
bitwise and
Synopsis
BITAND(a,b)
Arguments
a: non-negative integer
b: non-negative integer
Description
BITAND returns the bitwise and of the binary representations of its arguments.
BITLSHIFT
BITLSHIFT
—
bit-shift to the left
Synopsis
BITLSHIFT(a,n)
Arguments
a: non-negative integer
n: integer
Description
BITLSHIFT returns the binary representations of a shifted n positions to the left.
Note
If n is negative, BITLSHIFT shifts the bits to the right by ABS(n) positions.
See also
BITOR
BITOR
—
bitwise or
Synopsis
BITOR(a,b)
Arguments
a: non-negative integer
b: non-negative integer
Description
BITOR returns the bitwise or of the binary representations of its arguments.
BITRSHIFT
BITRSHIFT
—
bit-shift to the right
Synopsis
BITRSHIFT(a,n)
Arguments
a: non-negative integer
n: integer
Description
BITRSHIFT returns the binary representations of a shifted n positions to the right.
Note
If n is negative, BITRSHIFT shifts the bits to the left by ABS(n) positions.