Home
last modified time | relevance | path

Searched refs:FLOAT_MANTISSA_BITS (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/ryu/src/
Ds2f.rs103 let ieee = (signed_m as u32) << (f2s::FLOAT_EXPONENT_BITS + f2s::FLOAT_MANTISSA_BITS); in s2f()
108 let ieee = ((signed_m as u32) << (f2s::FLOAT_EXPONENT_BITS + f2s::FLOAT_MANTISSA_BITS)) in s2f()
109 | (0xff_u32 << f2s::FLOAT_MANTISSA_BITS); in s2f()
132 .wrapping_sub(f2s::FLOAT_MANTISSA_BITS + 1) as i32; in s2f()
155 .wrapping_sub(f2s::FLOAT_MANTISSA_BITS + 1) as i32; in s2f()
171 let ieee = ((signed_m as u32) << (f2s::FLOAT_EXPONENT_BITS + f2s::FLOAT_MANTISSA_BITS)) in s2f()
172 | (0xff_u32 << f2s::FLOAT_MANTISSA_BITS); in s2f()
182 .wrapping_sub(f2s::FLOAT_MANTISSA_BITS as i32); in s2f()
197 if ieee_m2 == (1_u32 << (f2s::FLOAT_MANTISSA_BITS + 1)) { in s2f()
202 ieee_m2 &= (1_u32 << f2s::FLOAT_MANTISSA_BITS) - 1; in s2f()
[all …]
Df2s.rs24 pub const FLOAT_MANTISSA_BITS: u32 = 23; constant
42 1 - FLOAT_BIAS - FLOAT_MANTISSA_BITS as i32 - 2, in f2d()
47 ieee_exponent as i32 - FLOAT_BIAS - FLOAT_MANTISSA_BITS as i32 - 2, in f2d()
48 (1u32 << FLOAT_MANTISSA_BITS) | ieee_mantissa, in f2d()
/external/rust/crates/ryu/src/pretty/
Dmod.rs161 let sign = ((bits >> (FLOAT_MANTISSA_BITS + FLOAT_EXPONENT_BITS)) & 1) != 0; in format32()
162 let ieee_mantissa = bits & ((1u32 << FLOAT_MANTISSA_BITS) - 1); in format32()
164 ((bits >> FLOAT_MANTISSA_BITS) & ((1u32 << FLOAT_EXPONENT_BITS) - 1)) as u32; in format32()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dformat_types.h1056 static const uint32_t FLOAT_MANTISSA_BITS = 23;
1057 static const uint32_t FLOAT_MANTISSA_MASK = (1U << FLOAT_MANTISSA_BITS) - 1;
1058 static const uint32_t FLOAT_EXP_MASK = ((1U << FLOAT_EXP_BITS) - 1) << FLOAT_MANTISSA_BITS;
1079 _simd_set1_epi32(FLOAT_EXP_MASK & uint32_t(FLOAT_EXP_MIN << FLOAT_MANTISSA_BITS));
1081 _simd_set1_epi32(FLOAT_EXP_MASK & uint32_t(FLOAT_EXP_MIN_FTZ << FLOAT_MANTISSA_BITS));
1083 _simd_set1_epi32(FLOAT_EXP_MASK & uint32_t(FLOAT_EXP_MAX << FLOAT_MANTISSA_BITS));
1095 _simd_set1_epi32(1U << FLOAT_MANTISSA_BITS));
1100 vDst = _simd_or_si(vDst, _simd_srli_epi32(vMan, FLOAT_MANTISSA_BITS - HALF_MANTISSA_BITS));
1123 uint32_t exponent = pExp[i] >> FLOAT_MANTISSA_BITS;
1125 pMan[i] | (1U << FLOAT_MANTISSA_BITS); // Denorms include no "implicit" 1s.
[all …]