Skip to main content

quantize_f32

Function quantize_f32 

Source
pub fn quantize_f32(x: f32) -> i32
Expand description

Quantise an f32 into Q16.16.

Convenience wrapper over quantize_q16_16 for callers already working in f32 (avoids widening to f64 on soft-float platforms).