Name

bitwiseoperators

Description Each element of an integer vector has 32 bits.

Pairwise operations can result in integer NA.

Shifting is done assuming the values represent unsigned integers.
Syntax
bitwNot(a)
 bitwAnd(a, b)
 bitwOr(a, b)
 bitwXor(a, b)

bitwShiftL(a, n)
 bitwShiftR(a, n)
 
Parameters
a, binteger vectors; numeric vectors are coerced to integer vectors.
nnon-negative integer vector of values up to 31.
Creative Commons License