]>
git.proxmox.com Git - rustc.git/blob - vendor/compiler_builtins/libm/src/math/round.rs
3 const TOINT
: f64 = 1.0 / f64::EPSILON
;
6 pub fn round(mut x
: f64) -> f64 {
7 let (f
, i
) = (x
, x
.to_bits());
8 let e
: u64 = i
>> 52 & 0x7ff;
18 // raise inexact if x!=0
19 force_eval
!(x
+ TOINT
);
22 y
= x
+ TOINT
- TOINT
- x
;