Lines Matching refs:to_f32

178     pub fn to_f32(self) -> f32 {  in to_f32()  method
467 x.to_f32() in from()
602 write!(f, "{:?}", self.to_f32()) in fmt()
608 write!(f, "{}", self.to_f32()) in fmt()
614 write!(f, "{:e}", self.to_f32()) in fmt()
620 write!(f, "{:E}", self.to_f32()) in fmt()
655 Self::to_f32(*self).to_i64() in to_i64()
658 Self::to_f32(*self).to_u64() in to_u64()
661 Self::to_f32(*self).to_i8() in to_i8()
664 Self::to_f32(*self).to_u8() in to_u8()
667 Self::to_f32(*self).to_i16() in to_i16()
670 Self::to_f32(*self).to_u16() in to_u16()
673 Self::to_f32(*self).to_i32() in to_i32()
676 Self::to_f32(*self).to_u32() in to_u32()
678 fn to_f32(&self) -> Option<f32> { in to_f32() method
679 Some(Self::to_f32(*self)) in to_f32()
688 n.to_f32().map(|x| Self::from_f32(x)) in from_i64()
691 n.to_f32().map(|x| Self::from_f32(x)) in from_u64()
694 n.to_f32().map(|x| Self::from_f32(x)) in from_i8()
697 n.to_f32().map(|x| Self::from_f32(x)) in from_u8()
700 n.to_f32().map(|x| Self::from_f32(x)) in from_i16()
703 n.to_f32().map(|x| Self::from_f32(x)) in from_u16()
706 n.to_f32().map(|x| Self::from_f32(x)) in from_i32()
709 n.to_f32().map(|x| Self::from_f32(x)) in from_u32()
712 n.to_f32().map(|x| Self::from_f32(x)) in from_f32()
901 assert_eq!(f.to_f32(), 7.0f32); in test_bf16_to_f32()
905 let diff = (f.to_f32() - 7.1f32).abs(); in test_bf16_to_f32()
907 assert!(diff <= 4.0 * bf16::EPSILON.to_f32()); in test_bf16_to_f32()
910 assert_eq!(bf16::from_bits(0x0001).to_f32(), tiny32); in test_bf16_to_f32()
911 assert_eq!(bf16::from_bits(0x0005).to_f32(), 5.0 * tiny32); in test_bf16_to_f32()
1188 let roundtrip = bf16::from_f32(f.to_f32()); in qc_roundtrip_bf16_f32_is_identity()