/external/rust/crates/num-traits/src/ |
D | cast.rs | 117 self.to_f64().as_ref().and_then(ToPrimitive::to_f32) in to_f32() 128 fn to_f64(&self) -> Option<f64> { in to_f64() method 130 Some(i) => i.to_f64(), in to_f64() 131 None => self.to_u64().as_ref().and_then(ToPrimitive::to_f64), in to_f64() 195 fn to_f64(&self) -> Option<f64> { 268 fn to_f64(&self) -> Option<f64> { 392 fn to_f64 -> f64; 607 impl_from_primitive!(f64, to_f64); 638 fn to_f64 -> f64; 736 impl_num_cast!(f64, to_f64);
|
/external/rust/crates/half/src/ |
D | num_traits.rs | 46 fn to_f64(&self) -> Option<f64> { in to_f64() method 47 Some(Self::to_f64(*self)) in to_f64() 90 n.to_f64().map(Self::from_f64) in from_f64() 720 impl_as_primitive_to_f16!(f64, to_f64); 784 fn to_f64(&self) -> Option<f64> { in to_f64() method 785 Some(Self::to_f64(*self)) in to_f64() 828 n.to_f64().map(Self::from_f64) in from_f64() 1459 impl_as_primitive_to_bf16!(f64, to_f64);
|
D | bfloat.rs | 249 pub fn to_f64(self) -> f64 { in to_f64() method 794 x.to_f64() in from() 1352 assert_eq!(ToPrimitive::to_f64(&two).unwrap(), 2.0f64); in to_primitive() 1557 assert_eq!(f.to_f64(), 7.0f64); in test_bf16_to_f64() 1561 let diff = (f.to_f64() - 7.1f64).abs(); in test_bf16_to_f64() 1563 assert!(diff <= 4.0 * bf16::EPSILON.to_f64()); in test_bf16_to_f64() 1566 assert_eq!(bf16::from_bits(0x0001).to_f64(), tiny64); in test_bf16_to_f64() 1567 assert_eq!(bf16::from_bits(0x0005).to_f64(), 5.0 * tiny64); in test_bf16_to_f64() 1834 let roundtrip = bf16::from_f64(f.to_f64()); in qc_roundtrip_bf16_f64_is_identity()
|
D | binary16.rs | 256 pub fn to_f64(self) -> f64 { in to_f64() method 803 x.to_f64() in from() 1367 assert_eq!(ToPrimitive::to_f64(&two).unwrap(), 2.0f64); in to_primitive() 1626 assert_eq!(f.to_f64(), 7.0f64); in test_f16_to_f64() 1630 let diff = (f.to_f64() - 7.1f64).abs(); in test_f16_to_f64() 1632 assert!(diff <= 4.0 * f16::EPSILON.to_f64()); in test_f16_to_f64() 1634 assert_eq!(f16::from_bits(0x0000_0001).to_f64(), 2.0f64.powi(-24)); in test_f16_to_f64() 1635 assert_eq!(f16::from_bits(0x0000_0005).to_f64(), 5.0 * 2.0f64.powi(-24)); in test_f16_to_f64() 1905 let roundtrip = f16::from_f64(f.to_f64()); in qc_roundtrip_f16_f64_is_identity()
|
D | slice.rs | 455 dst[i] = f.to_f64(); in convert_to_f64_slice()
|
/external/rust/crates/criterion/src/ |
D | measurement.rs | 99 fn to_f64(&self, value: &Self::Value) -> f64; in to_f64() method 233 fn to_f64(&self, val: &Self::Value) -> f64 { in to_f64() method
|
D | routine.rs | 252 m.to_f64(&b.value) in bench()
|
/external/rust/crates/protobuf-json-mapping/src/ |
D | parse.rs | 135 fn to_f64(&self) -> f64; in to_f64() method 144 fn to_f64(&self) -> f64 { in to_f64() method 158 fn to_f64(&self) -> f64 { in to_f64() method 172 fn to_f64(&self) -> f64 { in to_f64() method 186 fn to_f64(&self) -> f64 { in to_f64() method 200 fn to_f64(&self) -> f64 { in to_f64() method 222 fn to_f64(&self) -> f64 { in to_f64() method
|
/external/rust/crates/num-bigint/tests/ |
D | bigint.rs | 476 assert_eq!(b1.to_f64().unwrap(), f); in test_convert_f64() 480 assert_eq!(neg_b1.to_f64().unwrap(), -f); in test_convert_f64() 509 assert_eq!(b.to_f64(), Some(f)); in test_convert_f64() 540 assert_eq!(big_num.to_f64(), Some(f64::MAX)); in test_convert_f64() 541 assert_eq!((&big_num + 1u8).to_f64(), Some(f64::INFINITY)); in test_convert_f64() 542 assert_eq!((-&big_num).to_f64(), Some(f64::MIN)); in test_convert_f64() 543 assert_eq!(((-&big_num) - 1u8).to_f64(), Some(f64::NEG_INFINITY)); in test_convert_f64() 546 ((BigInt::one() << 1024u16) - 1u8).to_f64(), in test_convert_f64() 549 assert_eq!((BigInt::one() << 1024u16).to_f64(), Some(f64::INFINITY)); in test_convert_f64() 551 (-((BigInt::one() << 1024u16) - 1u8)).to_f64(), in test_convert_f64() [all …]
|
D | biguint.rs | 691 assert_eq!(b1.to_f64().unwrap(), f); in test_convert_f64() 720 assert_eq!(b.to_f64(), Some(f)); in test_convert_f64() 751 assert_eq!(big_num.to_f64(), Some(f64::MAX)); in test_convert_f64() 752 assert_eq!((big_num + 1u8).to_f64(), Some(f64::INFINITY)); in test_convert_f64() 755 ((BigUint::one() << 1024u16) - 1u8).to_f64(), in test_convert_f64() 758 assert_eq!((BigUint::one() << 1024u16).to_f64(), Some(f64::INFINITY)); in test_convert_f64()
|
/external/rust/crates/half/benches/ |
D | convert.rs | 86 b.iter(|| i.to_f64()) in bench_f16_to_f64() 314 b.iter(|| i.to_f64()) in bench_bf16_to_f64()
|
/external/rust/crates/criterion/benches/benchmarks/ |
D | custom_measurement.rs | 88 fn to_f64(&self, val: &Self::Value) -> f64 { in to_f64() method
|
/external/rust/crates/num-traits/tests/ |
D | cast.rs | 54 assert_eq!(i.to_f64(), w.to_f64()); in wrapping_to_primitive() 389 assert_eq_to!(to_f32 to_f64); in newtype_to_primitive()
|
/external/rust/crates/num-bigint/src/ |
D | biguint.rs | 387 let guess = match self.to_f64() { in nth_root() 435 let guess = match self.to_f64() { in sqrt() 476 let guess = match self.to_f64() { in cbrt()
|
/external/crosvm/devices/src/tsc/ |
D | calibrate.rs | 42 let mean: f64 = sum.to_f64().unwrap_or(0.0) / count as f64; in standard_deviation() 47 let diff = mean - (x.to_f64().unwrap_or(0.0)); in standard_deviation()
|
/external/rust/crates/num-bigint/src/bigint/ |
D | convert.rs | 104 fn to_f64(&self) -> Option<f64> { in to_f64() method 105 let n = self.data.to_f64()?; in to_f64()
|
/external/rust/crates/log/src/kv/ |
D | value.rs | 585 to_f64 -> f64, 911 assert!(v.to_f64().is_some()); in test_to_number() 917 assert!(v.to_f64().is_none()); in test_to_number()
|
/external/rust/crates/num-derive/src/ |
D | lib.rs | 488 fn to_f64(&self) -> Option<f64> { in to_primitive() 489 <#inner_ty as #import::ToPrimitive>::to_f64(&self.0) in to_primitive()
|
/external/rust/crates/protobuf/src/reflect/value/ |
D | value_ref.rs | 157 pub fn to_f64(&self) -> Option<f64> { in to_f64() method
|
/external/rust/crates/num-bigint/src/biguint/ |
D | convert.rs | 364 fn to_f64(&self) -> Option<f64> { in to_f64() method
|
/external/rust/crates/protobuf/src/reflect/dynamic/ |
D | mod.rs | 540 Type::TYPE_DOUBLE => os.write_double(field_number, v.to_f64().unwrap()), in singular_write_to()
|
/external/rust/crates/num-bigint/ |
D | RELEASES.md | 79 - [Conversions `to_f32` and `to_f64` now return infinity][163] for very large
|
/external/rust/crates/half/ |
D | CHANGELOG.md | 229 - Made `to_f32` and `to_f64` public. Fixes [#7], by [@PSeitz].
|