package stdcompat

  1. Overview
  2. Docs
type t = nativeint

Alias for Nativeint.t

val min : t -> t -> t
  • since 4.13.0: val min : t -> t -> t
val max : t -> t -> t
  • since 4.13.0: val max : t -> t -> t
val unsigned_div : nativeint -> nativeint -> nativeint
  • since 4.08.0: val unsigned_div : nativeint -> nativeint -> nativeint
val unsigned_rem : nativeint -> nativeint -> nativeint
  • since 4.08.0: val unsigned_rem : nativeint -> nativeint -> nativeint
val unsigned_to_int : nativeint -> int option
  • since 4.08.0: val unsigned_to_int : nativeint -> int option
val unsigned_compare : t -> t -> int
  • since 4.08.0: val unsigned_compare : t -> t -> int
val of_string_opt : string -> nativeint option
  • since 4.05.0: val of_string_opt : string -> nativeint option
val equal : t -> t -> bool
  • since 4.03.0: val equal : t -> t -> bool
val zero : nativeint

Alias for Nativeint.zero

val one : nativeint

Alias for Nativeint.one

val minus_one : nativeint
val neg : nativeint -> nativeint

Alias for Nativeint.neg

val add : nativeint -> nativeint -> nativeint

Alias for Nativeint.add

val sub : nativeint -> nativeint -> nativeint

Alias for Nativeint.sub

val mul : nativeint -> nativeint -> nativeint

Alias for Nativeint.mul

val div : nativeint -> nativeint -> nativeint

Alias for Nativeint.div

val rem : nativeint -> nativeint -> nativeint

Alias for Nativeint.rem

val succ : nativeint -> nativeint

Alias for Nativeint.succ

val pred : nativeint -> nativeint

Alias for Nativeint.pred

val abs : nativeint -> nativeint

Alias for Nativeint.abs

val size : int

Alias for Nativeint.size

val max_int : nativeint
val min_int : nativeint
val logand : nativeint -> nativeint -> nativeint
val logor : nativeint -> nativeint -> nativeint

Alias for Nativeint.logor

val logxor : nativeint -> nativeint -> nativeint
val lognot : nativeint -> nativeint
val shift_left : nativeint -> int -> nativeint
val shift_right : nativeint -> int -> nativeint
val shift_right_logical : nativeint -> int -> nativeint
val of_int : int -> nativeint
val to_int : nativeint -> int
val of_float : float -> nativeint
  • since 4.03.0:

external of_float : float -> nativeint = "caml_nativeint_of_float" "caml_nativeint_of_float_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external of_float : float -> nativeint = "caml_nativeint_of_float"

  • since 3.07.0: external of_float : float -> nativeint = "nativeint_of_float"
val to_float : nativeint -> float
  • since 4.03.0:

external to_float : nativeint -> float = "caml_nativeint_to_float" "caml_nativeint_to_float_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external to_float : nativeint -> float = "caml_nativeint_to_float"

  • since 3.07.0: external to_float : nativeint -> float = "nativeint_to_float"
val of_int32 : int32 -> nativeint
val to_int32 : nativeint -> int32
val of_string : string -> nativeint
  • since 3.08.0:

external of_string : string -> nativeint = "caml_nativeint_of_string"

  • since 3.07.0:

external of_string : string -> nativeint = "nativeint_of_string"

val to_string : nativeint -> string
val compare : t -> t -> int
OCaml

Innovation. Community. Security.