]>
git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/libm/src/math/ceilf.rs
4 pub fn ceilf(x
: f32) -> f32 {
5 let mut ui
= x
.to_bits();
6 let e
= (((ui
>> 23) & 0xff) - 0x7f) as i32;
12 let m
= 0x007fffff >> e
;
16 force_eval
!(x
+ f32::from_bits(0x7b800000));
22 force_eval
!(x
+ f32::from_bits(0x7b800000));
25 } else if ui
<< 1 != 0 {
29 return f32::from_bits(ui
);