fn rintf(x: f32) callconv(.c) f32
fn rintf(x: f32) callconv(.c) f32 { const toint: f32 = 1.0 / math.floatEps(f32); const a: u32 = @bitCast(x); const e = a >> 23 & 0xff; const s = a >> 31; var y: f32 = undefined; if (e >= 0x7f + 23) { return x; } if (s == 1) { y = x - toint + toint; } else { y = x + toint - toint; } if (y == 0) { return if (s == 1) -0.0 else 0; } return y; }