package integers

  1. Overview
  2. Docs
Various signed and unsigned integer types for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.4.0.tar.gz
sha256=ba6e087606c622533ecca9dc4c0917a3cc183e73e3e7d8511b68e21183ef913f
md5=c1492352e6525048790508c57aad93c3

doc/integers/Signed/index.html

Module SignedSource

Types and operations for signed integers.

Sourcemodule type Infix = sig ... end
Sourcemodule type S = sig ... end

Signed integer operations

Sourcemodule Int : S with type t = int

Signed integer type and operations.

Sourcemodule Int32 : S with type t = int32

Signed 32-bit integer type and operations.

Sourcemodule Int64 : S with type t = int64

Signed 64-bit integer type and operations.

Sourcemodule SInt : S

C's signed integer type and operations.

Sourcemodule Long : S

The signed long integer type and operations.

Sourcemodule LLong : S

The signed long long integer type and operations.

Sourcetype sint = SInt.t

C's signed integer type.

Sourcetype long = Long.t

The signed long integer type.

Sourcetype llong = LLong.t

The signed long long integer type.

Sourceval of_byte_size : int -> (module S)

of_byte_size b is a module of type S that implements a signed type with b bytes.

Raise Invalid_argument if no suitable type is available.