Module Core_int63

module Core_int63: sig .. end
63 or 64 bit integers.

The size of Int63 is always at least 63 bits. On a 64-bit platform it is just an int (63-bits), and on a 32-bit platform it is an int64.

Because Int63 has different sizes on 32-bit and 64-bit platforms, there are several pitfalls to be aware of:




We expose private int so that the compiler can omit caml_modify when dealing with record fields holding Int63.t. Code should not explicitly make use of the private, e.g. via (i :> int), since such code will not compile on 32-bit platforms.
include Int_intf.S
val of_int : int -> t
val to_int : t -> int option
val random : ?state:Core_random.State.t -> t -> t
random ~state bound returns a random integer between 0 (inclusive) and bound (exclusive). bound must be greater than 0.

The default ~state is Random.State.default.