hardcaml_fixed_point

Hardcaml fixed point arithmetic
IN THIS PACKAGE

Parameters

Signature

type bits = Bits.t
module Round : sig ... end
module Overflow : sig ... end
type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : int -> bits -> t
val int : t -> bits
val frac : t -> bits
val signal : t -> bits
val map : t -> f:( bits -> bits ) -> t
val width_int : t -> int
val width_frac : t -> int
val to_float : t -> float
val select_int : t -> int -> bits
val select_frac : t -> int -> bits
val select : t -> int -> int -> t
val norm : t list -> t list
val norm2 : t -> t -> t * t
val of_float : int -> int -> float -> t
val (+:) : t -> t -> t
val (-:) : t -> t -> t
val (*:) : t -> t -> t
val (==:) : t -> t -> bits
val (<>:) : t -> t -> bits
val (<:) : t -> t -> bits
val (<=:) : t -> t -> bits
val (>:) : t -> t -> bits
val (>=:) : t -> t -> bits
val mux : bits -> t list -> t
val scale_pow2 : t -> int -> t
val resize : ?round:Round.t -> ?overflow:Overflow.t -> t -> int -> int -> t