Lines Matching refs:to_f32

43             Self::to_f32(*self).to_i64()  in to_i64()
46 Self::to_f32(*self).to_u64() in to_u64()
49 Self::to_f32(*self).to_i8() in to_i8()
52 Self::to_f32(*self).to_u8() in to_u8()
55 Self::to_f32(*self).to_i16() in to_i16()
58 Self::to_f32(*self).to_u16() in to_u16()
61 Self::to_f32(*self).to_i32() in to_i32()
64 Self::to_f32(*self).to_u32() in to_u32()
66 fn to_f32(&self) -> Option<f32> { in to_f32() method
67 Some(Self::to_f32(*self)) in to_f32()
76 n.to_f32().map(|x| Self::from_f32(x)) in from_i64()
79 n.to_f32().map(|x| Self::from_f32(x)) in from_u64()
82 n.to_f32().map(|x| Self::from_f32(x)) in from_i8()
85 n.to_f32().map(|x| Self::from_f32(x)) in from_u8()
88 n.to_f32().map(|x| Self::from_f32(x)) in from_i16()
91 n.to_f32().map(|x| Self::from_f32(x)) in from_u16()
94 n.to_f32().map(|x| Self::from_f32(x)) in from_i32()
97 n.to_f32().map(|x| Self::from_f32(x)) in from_u32()
100 n.to_f32().map(|x| Self::from_f32(x)) in from_f32()
485 pub fn to_f32(self) -> f32 { in to_f32() method
776 x.to_f32() in from()
911 write!(f, "{:?}", self.to_f32()) in fmt()
917 write!(f, "{}", self.to_f32()) in fmt()
923 write!(f, "{:e}", self.to_f32()) in fmt()
929 write!(f, "{:E}", self.to_f32()) in fmt()
981 let epsilon = f16::from_f32(one_plus_epsilon.to_f32() - 1.0); in test_f16_consts()
1005 assert!(ten_to_min / 10.0 < f16::MIN_POSITIVE.to_f32()); in test_f16_consts()
1006 assert!(ten_to_min > f16::MIN_POSITIVE.to_f32()); in test_f16_consts()
1008 assert!(ten_to_max < f16::MAX.to_f32()); in test_f16_consts()
1009 assert!(ten_to_max * 10.0 > f16::MAX.to_f32()); in test_f16_consts()
1192 assert_eq!(f.to_f32(), 7.0f32); in test_f16_to_f32()
1196 let diff = (f.to_f32() - 7.1f32).abs(); in test_f16_to_f32()
1198 assert!(diff <= 4.0 * f16::EPSILON.to_f32()); in test_f16_to_f32()
1200 assert_eq!(f16::from_bits(0x0000_0001).to_f32(), 2.0f32.powi(-24)); in test_f16_to_f32()
1201 assert_eq!(f16::from_bits(0x0000_0005).to_f32(), 5.0 * 2.0f32.powi(-24)); in test_f16_to_f32()
1483 let roundtrip = f16::from_f32(f.to_f32()); in qc_roundtrip_f16_f32_is_identity()