Typed.Bitv128include Bitv.S with type w = bitv128type w = bitv128val zero : tThe bitvector value 0.
val one : tThe bitvector value 1.
val v : Bitvector.t -> tval of_int : int -> tof_int i creates a bitvector term from an integer i.
to_int ~signed t converts the bitvector t to an integer term. If signed is true, t is treated as a 2's complement signed value.
concat t1 t2 concatenates t1 (high bits) and t2 (low bits).
Example: concat (v8 0xAA) (v8 0xBB) results in 0xAABB (16-bit).
extract t ~high ~low extracts the bits from index high down tolow (inclusive).
Example:extract (i32 0xAABBCCDD) ~high:15 ~low:8 results in 0xCC (8-bit).
zero_extend n t extends t to a width of width(t) + n by padding with zeros.
sign_extend n t extends t to a width of width(t) + n by replicating the sign bit.
of_i32x4 a b c d constructs a 128-bit vector from four 32-bit lanes.
to_i32x4 t splits the 128-bit vector into four 32-bit lanes.
val of_int64x2 : Smtml_prelude.Int64.t -> Smtml_prelude.Int64.t -> tof_int64x2 high low constructs a 128-bit vector from two 64-bit integers.
of_i64x2 a b constructs a 128-bit vector from two 64-bit lanes.