Checked_ointSourcechecked_oint is an OCaml library for checked integer arithmetic.
This library supports signed and unsigned integers of bitnesses 8, 16, 32, 64, and 128. S is the main signature that contains common operations for all integer types; specific implementations are named U8, U16, and so on.
Polymorphic comparison operators raise Invalid_argument by default; use S.equal and S.compare instead. This behaviour is controlled by the checked_oint.guard virtual library; see the README.
The exception raised on underflows/overflows.
An unsigned 8-bit integer.
An unsigned 16-bit integer.
An unsigned 32-bit integer.
An unsigned 64-bit integer.
An unsigned 128-bit integer.
A signed 8-bit integer.
A signed 16-bit integer.
A signed 32-bit integer.
A signed 64-bit integer.
A signed 128-bit integer.