package owi

  1. Overview
  2. Docs

Module Owi.Int32Source

Custom Int32 module for Wasm.

Sourcetype t = int32
Sourceexception Overflow
Sourceval min_int : t
Sourceval max_int : t
Sourceval zero : t

conversion

Sourceval bits_of_float : float -> t
Sourceval float_of_bits : t -> float
Sourceval of_float : float -> t
Sourceval to_float : t -> float
Sourceval of_string : string -> t
Sourceval of_int : int -> t
Sourceval to_int : t -> int
Sourceval of_int64 : int64 -> t
Sourceval to_int64 : t -> int64
Sourceval extend_s : int -> t -> t

unary operators

Sourceval clz : t -> int
Sourceval ctz : t -> int
Sourceval popcnt : t -> int
Sourceval lognot : t -> t

comparison operators

Sourceval le_u : t -> t -> bool
Sourceval lt_u : t -> t -> bool
Sourceval ge_u : t -> t -> bool
Sourceval gt_u : t -> t -> bool

binary operators

Sourceval logor : t -> t -> t
Sourceval logand : t -> t -> t
Sourceval logxor : t -> t -> t
Sourceval rotl : t -> t -> t
Sourceval rotr : t -> t -> t
Sourceval shl : t -> t -> t
Sourceval shr_s : t -> t -> t
Sourceval shr_u : t -> t -> t
Sourceval shift_right_logical : t -> int -> t
Sourceval add : t -> t -> t
Sourceval sub : t -> t -> t
Sourceval mul : t -> t -> t
Sourceval div : t -> t -> t
Sourceval unsigned_div : t -> t -> t
Sourceval rem : t -> t -> t
Sourceval unsigned_rem : t -> t -> t
OCaml

Innovation. Community. Security.