Node:Logical operations, Next:Base conversion, Previous:Arithmetic, Up:Numbers
These operations work on integers. Each operand is treated as an semi-infinite list of the bits in the integers twos-complement representation.
All 16 bit-wise operations of two integers are available. These can be specified either by the name of the operation, or by its "number":
x bit'opname y
x (bit opnumber) y
x bit'clr y
== x (bit 0) y
: always 0
x bit'and y
== x (bit 1) y
: "and" of x and y
etc
a shift amount
== floor (a * 2 ** amount)