Bitwise operations on integers #
Possibly only of archaeological significance.
Recursors #
Int.bitCasesOn: Parity disjunction. Something is true/defined onโคif it's true/defined for even and for odd values.
Int.bitwise applies the function f to pairs of bits in the same position in
the binary representations of its inputs.
Equations
Instances For
m <<< n produces an integer whose binary representation
is obtained by left-shifting the binary representation of m by n places
Equations
m >>> n produces an integer whose binary representation
is obtained by right-shifting the binary representation of m by n places
Equations
bitwise ops #
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
Compare with Int.shiftRight_add, which doesn't have the coercions โ โ โค.
bitwise ops #
Connection of HShiftLeft Int Int Int and HShiftLeft Int Nat Int.
Connection of HShiftRight Int Int Int and HShiftRight Int Nat Int.
@[simp]
Compare with Int.zero_shiftLeft, which has n : โ.
@[simp]
Compare with Int.zero_shiftRight, which has n : โ.