Searched refs:MANTISSA_SIZE (Results 1 - 6 of 6) sorted by relevance
/third_party/rust/crates/minimal-lexical/src/ |
H A D | lemire.rs | 67 let (lo, hi) = compute_product_approx(q, w, F::MANTISSA_SIZE as usize + 3); in compute_float() 90 let mut mantissa = hi >> (upperbit + 64 - F::MANTISSA_SIZE - 3); in compute_float() 101 power2 = (mantissa >= (1_u64 << F::MANTISSA_SIZE)) as i32; in compute_float() 122 && (mantissa << (upperbit + 64 - F::MANTISSA_SIZE - 3)) == hi in compute_float() 130 if mantissa >= (2_u64 << F::MANTISSA_SIZE) { in compute_float() 134 mantissa = 1_u64 << F::MANTISSA_SIZE; in compute_float() 138 mantissa &= !(1_u64 << F::MANTISSA_SIZE); in compute_float() 156 let hi = compute_product_approx(q, w, F::MANTISSA_SIZE as usize + 3).1; in compute_error()
|
H A D | num.rs | 77 const MANTISSA_SIZE: i32; consts 95 const MAX_MANTISSA_FAST_PATH: u64 = 2_u64 << Self::MANTISSA_SIZE; 130 /// Minimum exponent that for a fast path case, or `-⌊(MANTISSA_SIZE+1)/log2(10)⌋` 133 /// Maximum exponent that for a fast path case, or `⌊(MANTISSA_SIZE+1)/log2(5)⌋` 137 /// This is `MAX_EXPONENT_FAST_PATH + ⌊(MANTISSA_SIZE+1)/log2(10)⌋` 187 let biased_e: i32 = ((bits & Self::EXPONENT_MASK) >> Self::MANTISSA_SIZE) as i32; in exponent() 210 const MANTISSA_SIZE: i32 = 23; consts 211 const EXPONENT_BIAS: i32 = 127 + Self::MANTISSA_SIZE; 258 const MANTISSA_SIZE: i32 = 52; consts 259 const EXPONENT_BIAS: i32 = 1023 + Self::MANTISSA_SIZE; [all...] |
H A D | bellerophon.rs | 187 let mantissa_shift = 64 - F::MANTISSA_SIZE - 1; in error_is_accurate() 189 // The unbiased exponent checks is `unbiased_exp <= F::MANTISSA_SIZE in error_is_accurate() 190 // - F::EXPONENT_BIAS -64 + 1`, or `biased_exp <= F::MANTISSA_SIZE - 63`, in error_is_accurate() 197 false => 64 - F::MANTISSA_SIZE - 1, in error_is_accurate()
|
H A D | extended_float.rs | 22 word |= (x.exp as u64) << F::MANTISSA_SIZE; in extended_to_float()
|
H A D | rounding.rs | 28 let mantissa_shift = 64 - F::MANTISSA_SIZE - 1; in round()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/ |
H A D | to_toml.py | 82 biased_e = np.int32(exp_bits >> int_type(self.MANTISSA_SIZE)) 102 MANTISSA_SIZE = np.int32(23) variable in Float32 103 EXPONENT_BIAS = np.int32(127 + MANTISSA_SIZE) 116 MANTISSA_SIZE = np.int32(52) variable in Float64 117 EXPONENT_BIAS = np.int32(1023 + MANTISSA_SIZE)
|
Completed in 3 milliseconds