Related to "Bitwise"
bitwise package
The bitwise
package provides functions for performing bitwise operations on integers.
bitwise package
The bitwise
package provides functions for performing bitwise operations on integers.
bitwise.sand() function
bitwise.sand()
performs the bitwise operation, a AND b
, with integers.
bitwise.sclear() function
bitwise.sclear()
performs the bitwise operation a AND NOT b
. Both a
and b
are integers.
bitwise.slshift() function
bitwise.slshift()
shifts the bits in a
left by b
bits. Both a
and b
are integers.
bitwise.snot() function
bitwise.snot()
inverts every bit in a
, an integer.
bitwise.sor() function
bitwise.sor()
performs the bitwise operation, a OR b
, with integers.
bitwise.srshift() function
bitwise.srshift()
shifts the bits in a
right by b
bits. Both a
and b
are integers.
bitwise.sxor() function
bitwise.sxor()
performs the bitwise operation, a XOR b
, with integers.
bitwise.uand() function
bitwise.uand()
performs the bitwise operation, a AND b
, with unsigned integers.
bitwise.uclear() function
bitwise.uclear()
performs the bitwise operation a AND NOT b
, with unsigned integers.
bitwise.ulshift() function
bitwise.ulshift()
shifts the bits in a
left by b
bits. Both a
and b
are unsigned integers.
bitwise.unot() function
bitwise.unot()
inverts every bit in a
, an unsigned integer.
bitwise.uor() function
bitwise.uor()
performs the bitwise operation, a OR b
, with unsigned integers.
bitwise.urshift() function
bitwise.urshift()
shifts the bits in a
right by b
bits. Both a
and b
are unsigned integers.
bitwise.uxor() function
bitwise.uxor()
performs the bitwise operation, a XOR b
, with unsigned integers.
bitwise.sand() function
bitwise.sand()
performs the bitwise operation, a AND b
, with integers.
bitwise.sclear() function
bitwise.sclear()
performs the bitwise operation a AND NOT b
. Both a
and b
are integers.
bitwise.slshift() function
bitwise.slshift()
shifts the bits in a
left by b
bits. Both a
and b
are integers.
bitwise.snot() function
bitwise.snot()
inverts every bit in a
, an integer.
bitwise.sor() function
bitwise.sor()
performs the bitwise operation, a OR b
, with integers.
bitwise.srshift() function
bitwise.srshift()
shifts the bits in a
right by b
bits. Both a
and b
are integers.
bitwise.sxor() function
bitwise.sxor()
performs the bitwise operation, a XOR b
, with integers.
bitwise.uand() function
bitwise.uand()
performs the bitwise operation, a AND b
, with unsigned integers.
bitwise.uclear() function
bitwise.uclear()
performs the bitwise operation a AND NOT b
, with unsigned integers.
bitwise.ulshift() function
bitwise.ulshift()
shifts the bits in a
left by b
bits. Both a
and b
are unsigned integers.
bitwise.unot() function
bitwise.unot()
inverts every bit in a
, an unsigned integer.
bitwise.uor() function
bitwise.uor()
performs the bitwise operation, a OR b
, with unsigned integers.
bitwise.urshift() function
bitwise.urshift()
shifts the bits in a
right by b
bits. Both a
and b
are unsigned integers.
bitwise.uxor() function
bitwise.uxor()
performs the bitwise operation, a XOR b
, with unsigned integers.