Home
last modified time | relevance | path

Searched refs:DOUBLE_MANTISSA_BITS (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/ryu/src/
Ds2d.rs103 let ieee = (signed_m as u64) << (d2s::DOUBLE_EXPONENT_BITS + d2s::DOUBLE_MANTISSA_BITS); in s2d()
108 let ieee = ((signed_m as u64) << (d2s::DOUBLE_EXPONENT_BITS + d2s::DOUBLE_MANTISSA_BITS)) in s2d()
109 | (0x7ff_u64 << d2s::DOUBLE_MANTISSA_BITS); in s2d()
132 .wrapping_sub(d2s::DOUBLE_MANTISSA_BITS + 1) as i32; in s2d()
160 .wrapping_sub(d2s::DOUBLE_MANTISSA_BITS + 1) as i32; in s2d()
180 let ieee = ((signed_m as u64) << (d2s::DOUBLE_EXPONENT_BITS + d2s::DOUBLE_MANTISSA_BITS)) in s2d()
181 | (0x7ff_u64 << d2s::DOUBLE_MANTISSA_BITS); in s2d()
191 .wrapping_sub(d2s::DOUBLE_MANTISSA_BITS as i32); in s2d()
206 if ieee_m2 == (1_u64 << (d2s::DOUBLE_MANTISSA_BITS + 1)) { in s2d()
211 ieee_m2 &= (1_u64 << d2s::DOUBLE_MANTISSA_BITS) - 1; in s2d()
[all …]
Dd2s.rs32 pub const DOUBLE_MANTISSA_BITS: u32 = 52; constant
96 1 - DOUBLE_BIAS - DOUBLE_MANTISSA_BITS as i32 - 2, in d2d()
101 ieee_exponent as i32 - DOUBLE_BIAS - DOUBLE_MANTISSA_BITS as i32 - 2, in d2d()
102 (1u64 << DOUBLE_MANTISSA_BITS) | ieee_mantissa, in d2d()
/external/rust/crates/ryu/src/pretty/
Dmod.rs54 let sign = ((bits >> (DOUBLE_MANTISSA_BITS + DOUBLE_EXPONENT_BITS)) & 1) != 0; in format64()
55 let ieee_mantissa = bits & ((1u64 << DOUBLE_MANTISSA_BITS) - 1); in format64()
57 (bits >> DOUBLE_MANTISSA_BITS) as u32 & ((1u32 << DOUBLE_EXPONENT_BITS) - 1); in format64()