Usage
bit?(a, n)
clear(a, n)
set(a, n)
Signatures
bit?: (%, MachineInteger) Boolean clear, set: (%, MachineInteger) %
Parameter | Type | Description |
---|---|---|
a | % | an integer |
n | MachineInteger | a nonnegative machine integer |
Returns
bit?(a, n) returns true if the bit of a is 1, false if it is 0, while clear(a, n) and set(a, n) return copies of a where the bit is set respectively to 0 and 1. For all 3 functions, the rightmost bit of a is the bit and so on.