stdcompat

Compatibility module for OCaml standard library
Library stdcompat
Module Stdcompat . Int64
type t = int64

Alias for Int64.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 : int64 -> int64 -> int64
  • since 4.08.0: val unsigned_div : int64 -> int64 -> int64
val unsigned_rem : int64 -> int64 -> int64
  • since 4.08.0: val unsigned_rem : int64 -> int64 -> int64
val unsigned_to_int : int64 -> int option
  • since 4.08.0: val unsigned_to_int : int64 -> int option
val unsigned_compare : t -> t -> int
  • since 4.08.0: val unsigned_compare : t -> t -> int
val of_string_opt : string -> int64 option
  • since 4.05.0: val of_string_opt : string -> int64 option
val equal : t -> t -> bool
  • since 4.03.0: val equal : t -> t -> bool
val zero : int64

Alias for Int64.zero

val one : int64

Alias for Int64.one

val minus_one : int64

Alias for Int64.minus_one

val neg : int64 -> int64

Alias for Int64.neg

val add : int64 -> int64 -> int64

Alias for Int64.add

val sub : int64 -> int64 -> int64

Alias for Int64.sub

val mul : int64 -> int64 -> int64

Alias for Int64.mul

val div : int64 -> int64 -> int64

Alias for Int64.div

val rem : int64 -> int64 -> int64

Alias for Int64.rem

val succ : int64 -> int64

Alias for Int64.succ

val pred : int64 -> int64

Alias for Int64.pred

val abs : int64 -> int64

Alias for Int64.abs

val max_int : int64

Alias for Int64.max_int

val min_int : int64

Alias for Int64.min_int

val logand : int64 -> int64 -> int64

Alias for Int64.logand

val logor : int64 -> int64 -> int64

Alias for Int64.logor

val logxor : int64 -> int64 -> int64

Alias for Int64.logxor

val lognot : int64 -> int64

Alias for Int64.lognot

val shift_left : int64 -> int -> int64
val shift_right : int64 -> int -> int64
val shift_right_logical : int64 -> int -> int64
val of_int : int -> int64

Alias for Int64.of_int

val to_int : int64 -> int

Alias for Int64.to_int

val of_float : float -> int64
  • since 4.03.0:

external of_float : float -> int64 = "caml_int64_of_float" "caml_int64_of_float_unboxed" @@unboxed @@noalloc

  • since 3.08.0: external of_float : float -> int64 = "caml_int64_of_float"
  • since 3.07.0: external of_float : float -> int64 = "int64_of_float"
val to_float : int64 -> float
  • since 4.03.0:

external to_float : int64 -> float = "caml_int64_to_float" "caml_int64_to_float_unboxed" @@unboxed @@noalloc

  • since 3.08.0: external to_float : int64 -> float = "caml_int64_to_float"
  • since 3.07.0: external to_float : int64 -> float = "int64_to_float"
val of_int32 : int32 -> int64

Alias for Int64.of_int32

val to_int32 : int64 -> int32

Alias for Int64.to_int32

val of_nativeint : nativeint -> int64
val to_nativeint : int64 -> nativeint
val of_string : string -> int64
  • since 3.08.0:

external of_string : string -> int64 = "caml_int64_of_string"

  • since 3.07.0: external of_string : string -> int64 = "int64_of_string"
val to_string : int64 -> string

Alias for Int64.to_string

val bits_of_float : float -> int64
  • since 4.03.0:

external bits_of_float : float -> int64 = "caml_int64_bits_of_float" "caml_int64_bits_of_float_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external bits_of_float : float -> int64 = "caml_int64_bits_of_float"

  • since 3.07.0:

external bits_of_float : float -> int64 = "int64_bits_of_float"

val float_of_bits : int64 -> float
  • since 4.03.0:

external float_of_bits : int64 -> float = "caml_int64_float_of_bits" "caml_int64_float_of_bits_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external float_of_bits : int64 -> float = "caml_int64_float_of_bits"

  • since 3.07.0:

external float_of_bits : int64 -> float = "int64_float_of_bits"

val compare : t -> t -> int

Alias for Int64.compare