Searched refs:LN_2 (Results 1 – 8 of 8) sorted by relevance
2258 Self::LN_2() / Self::LN_10()2263 Self::LN_10() / Self::LN_2()2305 LN_2,2380 assert!((F::LOG10_2() - F::LN_2() / F::LN_10()).abs() < diff); in extra_logs()2384 assert!((F::LOG2_10() - F::LN_10() / F::LN_2()).abs() < diff); in extra_logs()
672 bits[0] = f16::LN_2.to_bits(); in test_mutablility_f16()673 assert_eq!(bits, &[f16::LN_2.to_bits()]); in test_mutablility_f16()709 bits[0] = bf16::LN_2.to_bits(); in test_mutablility_bf16()710 assert_eq!(bits, &[bf16::LN_2.to_bits()]); in test_mutablility_bf16()
314 pub const LN_2: f16 = f16::LN_2; constant760 pub const LN_2: f16 = f16(0x398Cu16); constant1050 let ln_2 = f16::from_f32(core::f32::consts::LN_2); in test_f16_consts_from_f32()1071 assert_eq!(f16::LN_2, ln_2); in test_f16_consts_from_f32()1110 let ln_2 = f16::from_f64(core::f64::consts::LN_2); in test_f16_consts_from_f64()1131 assert_eq!(f16::LN_2, ln_2); in test_f16_consts_from_f64()
451 pub const LN_2: bf16 = bf16(0x3F31u16); constant761 let ln_2 = bf16::from_f32(core::f32::consts::LN_2); in test_bf16_consts_from_f32()782 assert_eq!(bf16::LN_2, ln_2); in test_bf16_consts_from_f32()819 let ln_2 = bf16::from_f64(core::f64::consts::LN_2); in test_bf16_consts_from_f64()840 assert_eq!(bf16::LN_2, ln_2); in test_bf16_consts_from_f64()
224 return log(x) / LN_2; // surprisingly within 1 ulp according to tests in log2()277 private static final double LN_2 = log(2); field in DoubleMath
156 int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10); in log10()217 private static final double LN_2 = Math.log(2); field in BigIntegerMath