Searched refs:FLOAT_MANTISSA_BITS (Results 1 – 4 of 4) sorted by relevance
103 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 …]
24 pub const FLOAT_MANTISSA_BITS: u32 = 23; constant42 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()
161 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()
1056 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 …]