Home
last modified time | relevance | path

Searched refs:SQRT_2 (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/half/src/
Dbinary16.rs332 pub const SQRT_2: f16 = f16::SQRT_2; constant
770 pub const SQRT_2: f16 = f16(0x3DA8u16); constant
1057 let sqrt_2 = f16::from_f32(core::f32::consts::SQRT_2); in test_f16_consts_from_f32()
1076 assert_eq!(f16::SQRT_2, sqrt_2); in test_f16_consts_from_f32()
1117 let sqrt_2 = f16::from_f64(core::f64::consts::SQRT_2); in test_f16_consts_from_f64()
1136 assert_eq!(f16::SQRT_2, sqrt_2); in test_f16_consts_from_f64()
Dbfloat.rs461 pub const SQRT_2: bf16 = bf16(0x3FB5u16); constant
768 let sqrt_2 = bf16::from_f32(core::f32::consts::SQRT_2); in test_bf16_consts_from_f32()
787 assert_eq!(bf16::SQRT_2, sqrt_2); in test_bf16_consts_from_f32()
826 let sqrt_2 = bf16::from_f64(core::f64::consts::SQRT_2); in test_bf16_consts_from_f64()
845 assert_eq!(bf16::SQRT_2, sqrt_2); in test_bf16_consts_from_f64()
/external/rust/crates/num-traits/src/
Dfloat.rs2313 SQRT_2,