/external/rust/crates/half/src/ |
D | bfloat.rs | 69 pub const fn to_bits(self) -> u16 { in to_bits() method 995 assert_eq!(bf16::from_f32(min_sub_f).to_bits(), min_sub.to_bits()); in round_to_even_f32() 996 assert_eq!(f32::from(min_sub).to_bits(), min_sub_f.to_bits()); in round_to_even_f32() 1002 bf16::from_f32(min_sub_f * 0.49).to_bits(), in round_to_even_f32() 1003 min_sub.to_bits() * 0 in round_to_even_f32() 1006 bf16::from_f32(min_sub_f * 0.50).to_bits(), in round_to_even_f32() 1007 min_sub.to_bits() * 0 in round_to_even_f32() 1010 bf16::from_f32(min_sub_f * 0.51).to_bits(), in round_to_even_f32() 1011 min_sub.to_bits() * 1 in round_to_even_f32() 1018 bf16::from_f32(min_sub_f * 1.49).to_bits(), in round_to_even_f32() [all …]
|
D | binary16.rs | 368 pub const fn to_bits(self) -> u16 { in to_bits() method 477 self.to_bits() in as_bits() 980 let one_plus_epsilon = f16::from_bits(one.to_bits() + 1); in test_f16_consts() 984 let one_plus_epsilon32 = f32::from_bits(1.0f32.to_bits() + 1); in test_f16_consts() 989 let max = f16::from_bits(f16::INFINITY.to_bits() - 1); in test_f16_consts() 990 let min = f16::from_bits(f16::NEG_INFINITY.to_bits() - 1); in test_f16_consts() 996 let max32 = f32::from_bits(core::f32::INFINITY.to_bits() - 1); in test_f16_consts() 997 let min32 = f32::from_bits(core::f32::NEG_INFINITY.to_bits() - 1); in test_f16_consts() 1290 assert_eq!(f16::from_f32(min_sub_f).to_bits(), min_sub.to_bits()); in round_to_even_f32() 1291 assert_eq!(f32::from(min_sub).to_bits(), min_sub_f.to_bits()); in round_to_even_f32() [all …]
|
D | vec.rs | 251 pub fn to_bits(numbers: Vec<f16>) -> Vec<u16> { in to_bits() function 266 f16::E.to_bits(), in test_vec_conversions_f16() 267 f16::PI.to_bits(), in test_vec_conversions_f16() 268 f16::EPSILON.to_bits(), in test_vec_conversions_f16() 269 f16::FRAC_1_SQRT_2.to_bits(), in test_vec_conversions_f16() 278 let to_bits = from_bits.reinterpret_into(); in test_vec_conversions_f16() localVariable 279 assert_eq!(&to_bits[..], &bits_cloned[..]); in test_vec_conversions_f16() 286 bf16::E.to_bits(), in test_vec_conversions_bf16() 287 bf16::PI.to_bits(), in test_vec_conversions_bf16() 288 bf16::EPSILON.to_bits(), in test_vec_conversions_bf16() [all …]
|
D | slice.rs | 630 pub fn to_bits(bits: &[f16]) -> &[u16] { in to_bits() function 642 f16::E.to_bits(), in test_slice_conversions_f16() 643 f16::PI.to_bits(), in test_slice_conversions_f16() 644 f16::EPSILON.to_bits(), in test_slice_conversions_f16() 645 f16::FRAC_1_SQRT_2.to_bits(), in test_slice_conversions_f16() 654 let to_bits = from_bits.reinterpret_cast(); in test_slice_conversions_f16() localVariable 655 assert_eq!(to_bits, bits); in test_slice_conversions_f16() 660 let mut bits_array = [f16::PI.to_bits()]; in test_mutablility_f16() 670 assert_eq!(bits, &[f16::E.to_bits()]); in test_mutablility_f16() 672 bits[0] = f16::LN_2.to_bits(); in test_mutablility_f16() [all …]
|
/external/rust/crates/serde_json/src/lexical/ |
D | num.rs | 249 fn to_bits(self) -> Self::Unsigned; in to_bits() method 256 self.to_bits() & Self::EXPONENT_MASK == Self::Unsigned::ZERO in is_denormal() 262 self.to_bits() & Self::EXPONENT_MASK == Self::EXPONENT_MASK in is_special() 268 self.is_special() && (self.to_bits() & Self::MANTISSA_MASK) == Self::Unsigned::ZERO in is_inf() 278 let bits = self.to_bits(); in exponent() 286 let bits = self.to_bits(); in mantissa() 300 Self::from_bits(self.to_bits() + Self::Unsigned::as_cast(1u32)) in next_positive() 363 fn to_bits(self) -> u32 { in to_bits() method 364 f32::to_bits(self) in to_bits() 427 fn to_bits(self) -> u64 { in to_bits() method [all …]
|
/external/rust/crates/libm/src/math/ |
D | powf.rs | 75 hx = x.to_bits() as i32; in powf() 76 hy = y.to_bits() as i32; in powf() 206 is = t1.to_bits() as i32; in powf() 221 ix = ax.to_bits() as i32; in powf() 245 is = s_h.to_bits() as i32; in powf() 258 is = t_h.to_bits() as i32; in powf() 266 is = p_h.to_bits() as i32; in powf() 274 is = t1.to_bits() as i32; in powf() 280 is = y.to_bits() as i32; in powf() 285 j = z.to_bits() as i32; in powf() [all …]
|
D | atan2.rs | 56 let mut ix = (x.to_bits() >> 32) as u32; in atan2() 57 let lx = x.to_bits() as u32; in atan2() 58 let mut iy = (y.to_bits() >> 32) as u32; in atan2() 59 let ly = y.to_bits() as u32; in atan2()
|
D | roundf.rs | 7 let i = x.to_bits(); in roundf() 42 assert_eq!(roundf(-0.0_f32).to_bits(), (-0.0_f32).to_bits()); in negative_zero()
|
D | round.rs | 7 let i = x.to_bits(); in round() 44 assert_eq!(round(-0.0_f64).to_bits(), (-0.0_f64).to_bits()); in negative_zero()
|
D | rem_pio2.rs | 48 let sign = (f64::to_bits(x) >> 63) as i32; in rem_pio2() 49 let ix = (f64::to_bits(x) >> 32) as u32 & 0x7fffffff; in rem_pio2() 58 let ui = f64::to_bits(y0); in rem_pio2() 68 let ey = (f64::to_bits(y0) >> 52) as i32 & 0x7ff; in rem_pio2() 164 let mut ui = f64::to_bits(x); in rem_pio2()
|
D | cbrt.rs | 37 let mut ui: u64 = x.to_bits(); in cbrt() 66 ui = (x * x1p54).to_bits(); in cbrt() 102 ui = t.to_bits(); in cbrt()
|
D | log2f.rs | 30 let mut ui: u32 = x.to_bits(); in log2f() 57 ui = x.to_bits(); in log2f() 82 ui = hi.to_bits(); in log2f()
|
D | copysign.rs | 6 let mut ux = x.to_bits(); in copysign() 7 let uy = y.to_bits(); in copysign()
|
D | copysignf.rs | 6 let mut ux = x.to_bits(); in copysignf() 7 let uy = y.to_bits(); in copysignf()
|
D | acos.rs | 73 hx = (x.to_bits() >> 32) as u32; in acos() 77 let lx: u32 = x.to_bits() as u32; in acos() 107 df = f64::from_bits(s.to_bits() & 0xff_ff_ff_ff_00_00_00_00); in acos()
|
D | log10f.rs | 32 let mut ui: u32 = x.to_bits(); in log10f() 60 ui = x.to_bits(); in log10f() 85 ui = hi.to_bits(); in log10f()
|
D | jnf.rs | 27 ix = x.to_bits(); in jnf() 208 ix = x.to_bits(); in ynf() 244 ib = b.to_bits(); in ynf() 250 ib = b.to_bits(); in ynf()
|
D | log2.rs | 36 let mut ui: u64 = x.to_bits(); in log2() 65 ui = x.to_bits(); in log2() 91 ui = hi.to_bits(); in log2()
|
D | log10.rs | 38 let mut ui: u64 = x.to_bits(); in log10() 68 ui = x.to_bits(); in log10() 95 ui = hi.to_bits(); in log10()
|
D | nextafter.rs | 7 let mut ux_i = x.to_bits(); in nextafter() 8 let uy_i = y.to_bits(); in nextafter()
|
D | nextafterf.rs | 7 let mut ux_i = x.to_bits(); in nextafterf() 8 let uy_i = y.to_bits(); in nextafterf()
|
D | rem_pio2f.rs | 41 let ix = x.to_bits() & 0x7fffffff; in rem_pio2f() 54 let sign = (x.to_bits() >> 31) != 0; in rem_pio2f()
|
D | j1f.rs | 73 ix = x.to_bits(); in j1f() 116 ix = x.to_bits(); in y1f() 225 ix = x.to_bits(); in ponef() 337 ix = x.to_bits(); in qonef()
|
/external/rust/crates/ryu/tests/ |
D | common_test.rs | 72 assert_eq!(0, 0.0_f32.to_bits()); in test_float_to_bits() 73 assert_eq!(0x40490fda, 3.1415926_f32.to_bits()); in test_float_to_bits() 78 assert_eq!(0, 0.0_f64.to_bits()); in test_double_to_bits() 81 3.1415926535897932384626433_f64.to_bits(), in test_double_to_bits()
|
/external/rust/crates/libm/src/ |
D | lib.rs | 31 let err = (a.to_bits() as i32).wrapping_sub(b.to_bits() as i32).abs(); in _eqf() 47 let err = (a.to_bits() as i64).wrapping_sub(b.to_bits() as i64).abs(); in _eq()
|