f32_to_e4m3_rne

Function f32_to_e4m3_rne 

Source
pub fn f32_to_e4m3_rne(x: f32) -> u8
Expand description

2026-09-25: Encode to fp8 e4m3fn with round-to-nearest-even. NaN -> 0x7F; above 448 saturates to 448 (0x7E).