Skip to main content

radix_sort_f32

Function radix_sort_f32 

Source
pub fn radix_sort_f32(data: &mut Vec<f32>)
Expand description

Sort f32 values by reinterpreting bits and flipping the sign bit for negatives so that the full IEEE 754 ordering maps to unsigned integer order.

After sorting, the bits are un-flipped back to valid f32 values.