Searched refs:DOUBLE_MANTISSA_BITS (Results 1 – 3 of 3) sorted by relevance
103 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 …]
32 pub const DOUBLE_MANTISSA_BITS: u32 = 52; constant96 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()
54 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()