1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2026 OCamlPro *)
(* Written by the Owi programmers *)

include Smtml.Typed.Float32

let of_float32 (f : Float32.t) : t = Smtml.Typed.Float32.v (Float32.to_bits f)

let of_bits x = Smtml.Typed.Float32.reinterpret_i32 x

let to_bits x = Smtml.Typed.Float32.to_bv x