Function tiny_skia_path::floating_point::f32_as_2s_compliment
source ยท pub(crate) fn f32_as_2s_compliment(x: f32) -> i32
Expand description
Return the float as a 2s compliment int. Just to be used to compare floats to each other or against positive float-bit-constants (like 0). This does not return the int equivalent of the float, just something cheaper for compares-only.