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.

See also

BITOR, BITXOR.

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

BITRSHIFT.

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.

See also

BITXOR, BITAND.

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.

See also

BITLSHIFT.

BITXOR

BITXOR bitwise exclusive or

Synopsis

BITXOR(a,b)

Arguments

a: non-negative integer

b: non-negative integer

Description

BITXOR returns the bitwise exclusive or of the binary representations of its arguments.

See also

BITOR, BITAND.