Checked_ointchecked_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.
val pp_u8 :
Ppx_deriving_runtime.Format.formatter ->
u8 ->
Ppx_deriving_runtime.unitval show_u8 : u8 -> Ppx_deriving_runtime.stringval pp_u16 :
Ppx_deriving_runtime.Format.formatter ->
u16 ->
Ppx_deriving_runtime.unitval show_u16 : u16 -> Ppx_deriving_runtime.stringval pp_u32 :
Ppx_deriving_runtime.Format.formatter ->
u32 ->
Ppx_deriving_runtime.unitval show_u32 : u32 -> Ppx_deriving_runtime.stringval pp_u64 :
Ppx_deriving_runtime.Format.formatter ->
u64 ->
Ppx_deriving_runtime.unitval show_u64 : u64 -> Ppx_deriving_runtime.stringval pp_u128 :
Ppx_deriving_runtime.Format.formatter ->
u128 ->
Ppx_deriving_runtime.unitval show_u128 : u128 -> Ppx_deriving_runtime.stringval pp_i8 :
Ppx_deriving_runtime.Format.formatter ->
i8 ->
Ppx_deriving_runtime.unitval show_i8 : i8 -> Ppx_deriving_runtime.stringval pp_i16 :
Ppx_deriving_runtime.Format.formatter ->
i16 ->
Ppx_deriving_runtime.unitval show_i16 : i16 -> Ppx_deriving_runtime.stringval pp_i32 :
Ppx_deriving_runtime.Format.formatter ->
i32 ->
Ppx_deriving_runtime.unitval show_i32 : i32 -> Ppx_deriving_runtime.stringval pp_i64 :
Ppx_deriving_runtime.Format.formatter ->
i64 ->
Ppx_deriving_runtime.unitval show_i64 : i64 -> Ppx_deriving_runtime.stringval pp_i128 :
Ppx_deriving_runtime.Format.formatter ->
i128 ->
Ppx_deriving_runtime.unitval show_i128 : i128 -> Ppx_deriving_runtime.stringmodule Int_ty : sig ... endRepresents a materialized integer type.
val pp_value :
Ppx_deriving_runtime.Format.formatter ->
value ->
Ppx_deriving_runtime.unitval show_value : value -> Ppx_deriving_runtime.stringval is_zero : value -> booltrue if the integer is 0, false otherwise.
val is_one : value -> booltrue if the integer is 1, false otherwise.
val is_all_ones : value -> booltrue if the integer has all bits set to 1, false otherwise.
module type S = sig ... endThe signature of operations on integers.