Skip to main content

Module f16

Module f16 

Source
Expand description

Software IEEE 754 half-precision (f16) conversion.

No external crate dependencies. Handles normals, denormals, infinity, and NaN. Round-to-nearest with ties-to-even for normal values.

Functionsยง

f16_bits_to_f32
Convert f16 bit representation to f32.
f32_to_f16_bits
Convert f32 to f16 bit representation.