module Intbits:sig..end
Bit level operations on ints
exception Invalid_range of int * int
val get_bits : int -> int -> int -> intget_bits hi lo n returns the value represented by the bit range hi..lo in n.
val set_bits : int -> int -> int -> int -> intset_bits hi lo n v returns the value obtained by setting by the bit range hi..lo in n to v.
val bit_size : int -> intbit_size n returns the minimum number of bits required to represent n
val to_string : int -> int -> stringto_string s n returns binary representation, as a string of length s of integer n