Searched refs:to_f32 (Results 1 – 13 of 13) sorted by relevance
/external/rust/crates/half/src/ |
D | bfloat.rs | 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() [all …]
|
D | binary16.rs | 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() [all …]
|
D | slice.rs | 513 dst[i] = f.to_f32(); in convert_to_f32_slice()
|
/external/rust/crates/num-traits/tests/ |
D | cast.rs | 27 assert_eq!(f32_toolarge.to_f32(), Some(f32::INFINITY)); in to_primitive_float() 28 assert_eq!((-f32_toolarge).to_f32(), Some(f32::NEG_INFINITY)); in to_primitive_float() 29 assert_eq!((f32::MAX as f64).to_f32(), Some(f32::MAX)); in to_primitive_float() 30 assert_eq!((-f32::MAX as f64).to_f32(), Some(-f32::MAX)); in to_primitive_float() 31 assert_eq!(f64::INFINITY.to_f32(), Some(f32::INFINITY)); in to_primitive_float() 32 assert_eq!((f64::NEG_INFINITY).to_f32(), Some(f32::NEG_INFINITY)); in to_primitive_float() 33 assert!((f64::NAN).to_f32().map_or(false, |f| f.is_nan())); in to_primitive_float() 53 assert_eq!(i.to_f32(), w.to_f32()); in wrapping_to_primitive() 389 assert_eq_to!(to_f32 to_f64); in newtype_to_primitive()
|
/external/skia/tests/sksl/runtime/ |
D | ConversionConstructors.skvm | 10 8 r7 = to_f32 r1 18 16 r0 = to_f32 r0
|
/external/rust/crates/num-traits/src/ |
D | cast.rs | 116 fn to_f32(&self) -> Option<f32> { in to_f32() method 117 self.to_f64().as_ref().and_then(ToPrimitive::to_f32) in to_f32() 191 fn to_f32(&self) -> Option<f32> { 264 fn to_f32(&self) -> Option<f32> { 391 fn to_f32 -> f32; 606 impl_from_primitive!(f32, to_f32); 637 fn to_f32 -> f32; 735 impl_num_cast!(f32, to_f32);
|
/external/rust/crates/half/benches/ |
D | convert.rs | 50 |b: &mut Bencher<'_>, i: &f16| b.iter(|| i.to_f32()), in bench_f16_to_f32() 274 |b: &mut Bencher<'_>, i: &bf16| b.iter(|| i.to_f32()), in bench_bf16_to_f32()
|
/external/rust/crates/num-derive/src/ |
D | lib.rs | 484 fn to_f32(&self) -> Option<f32> { in to_primitive() 485 <#inner_ty as #import::ToPrimitive>::to_f32(&self.0) in to_primitive()
|
/external/skia/src/opts/ |
D | SkVM_opts.h | 260 CASE(Op::to_f32): r[d].f32 = skvx::cast<float>( r[x].i32 ); break; in interpret_skvm()
|
/external/rust/crates/half/ |
D | CHANGELOG.md | 120 - Made `to_f32` and `to_f64` public. Fixes [#7], by [@PSeitz].
|
/external/skia/src/core/ |
D | SkVM.cpp | 302 case Op::to_f32: write(o, V{id}, "=", op, V{x}); break; in write_one_instruction() 413 case Op::to_f32: write(o, R{d}, "=", op, R{x}); break; in dump() 1002 return {this, this->push(Op::to_f32, x.id)}; in to_F32() 2637 case Op::to_f32: vals[i] = I(b->CreateSIToFP( vals[x] , F32)); break; in setupLLVM() 3732 case Op::to_f32: in jit() 3990 case Op::to_f32: a->scvtf4s (dst(x), r(x)); break; in jit()
|
D | SkVM.h | 452 M(to_f32) \
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | integration_test.rs | 1875 fn to_f32() { in to_f32() function
|