/external/rust/crates/libm/src/math/ |
D | exp2.rs | 327 let redux = f64::from_bits(0x4338000000000000) / TBLSIZE as f64; in exp2() 328 let p1 = f64::from_bits(0x3fe62e42fefa39ef); in exp2() 329 let p2 = f64::from_bits(0x3fcebfbdff82c575); in exp2() 330 let p3 = f64::from_bits(0x3fac6b08d704a0a6); in exp2() 331 let p4 = f64::from_bits(0x3f83b2ab88f70400); in exp2() 332 let p5 = f64::from_bits(0x3f55d88003875c74); in exp2() 338 let x1p1023 = f64::from_bits(0x7fe0000000000000); in exp2() 339 let x1p52 = f64::from_bits(0x4330000000000000); in exp2() 340 let _0x1p_149 = f64::from_bits(0xb6a0000000000000); in exp2() 379 let uf = f64::from_bits(ui) - redux; in exp2() [all …]
|
D | exp2f.rs | 78 let redux = f32::from_bits(0x4b400000) / TBLSIZE as f32; in exp2f() 79 let p1 = f32::from_bits(0x3f317218); in exp2f() 80 let p2 = f32::from_bits(0x3e75fdf0); in exp2f() 81 let p3 = f32::from_bits(0x3d6359a4); in exp2f() 82 let p4 = f32::from_bits(0x3c1d964e); in exp2f() 87 let x1p127 = f32::from_bits(0x7f000000); in exp2f() 106 force_eval!(f32::from_bits(0x80000001) / x); in exp2f() 123 let ukf = f64::from_bits(((0x3ff + k) as u64) << 52); in exp2f() 125 let mut uf = f32::from_bits(ui); in exp2f() 129 let r: f64 = f64::from_bits(EXP2FT[i0 as usize]); in exp2f()
|
D | powf.rs | 207 t1 = f32::from_bits(is as u32 & 0xfffff000); in powf() 238 ax = f32::from_bits(ix as u32); in powf() 246 s_h = f32::from_bits(is as u32 & 0xfffff000); in powf() 249 t_h = f32::from_bits(is as u32 + 0x00400000 + ((k as u32) << 21)); in powf() 259 t_h = f32::from_bits(is as u32 & 0xfffff000); in powf() 267 p_h = f32::from_bits(is as u32 & 0xfffff000); in powf() 275 t1 = f32::from_bits(is as u32 & 0xfffff000); in powf() 281 y1 = f32::from_bits(is as u32 & 0xfffff000); in powf() 315 t = f32::from_bits(n as u32 & !(0x007fffff >> k)); in powf() 324 t = f32::from_bits(is as u32 & 0xffff8000); in powf() [all …]
|
D | scalbnf.rs | 3 let x1p127 = f32::from_bits(0x7f000000); // 0x1p127f === 2 ^ 127 in scalbnf() 4 let x1p_126 = f32::from_bits(0x800000); // 0x1p-126f === 2 ^ -126 in scalbnf() 5 let x1p24 = f32::from_bits(0x4b800000); // 0x1p24f === 2 ^ 24 in scalbnf() 28 x * f32::from_bits(((0x7f + n) as u32) << 23) in scalbnf()
|
D | scalbn.rs | 3 let x1p1023 = f64::from_bits(0x7fe0000000000000); // 0x1p1023 === 2 ^ 1023 in scalbn() 4 let x1p53 = f64::from_bits(0x4340000000000000); // 0x1p53 === 2 ^ 53 in scalbn() 5 let x1p_1022 = f64::from_bits(0x0010000000000000); // 0x1p-1022 === 2 ^ (-1022) in scalbn() 32 y * f64::from_bits(((0x3ff + n) as u64) << 52) in scalbn()
|
D | modf.rs | 15 return (f64::from_bits(u), rv2); in modf() 21 rv2 = f64::from_bits(u); in modf() 29 return (f64::from_bits(u), rv2); in modf() 32 rv2 = f64::from_bits(u); in modf()
|
D | modff.rs | 15 return (f32::from_bits(u), rv2); in modff() 20 rv2 = f32::from_bits(u); in modff() 28 return (f32::from_bits(u), rv2); in modff() 31 rv2 = f32::from_bits(u); in modff()
|
D | hypotf.rs | 7 let x1p90 = f32::from_bits(0x6c800000); // 0x1p90f === 2 ^ 90 in hypotf() 8 let x1p_90 = f32::from_bits(0x12800000); // 0x1p-90f === 2 ^ -90 in hypotf() 23 x = f32::from_bits(uxi); in hypotf() 24 y = f32::from_bits(uyi); in hypotf()
|
D | hypot.rs | 22 let x1p700 = f64::from_bits(0x6bb0000000000000); // 0x1p700 === 2 ^ 700 in hypot() 23 let x1p_700 = f64::from_bits(0x1430000000000000); // 0x1p-700 === 2 ^ -700 in hypot() 44 x = f64::from_bits(uxi); in hypot() 45 y = f64::from_bits(uyi); in hypot()
|
D | log1pf.rs | 76 1. - (f32::from_bits(ui) - x) in log1pf() 78 x - (f32::from_bits(ui) - 1.) in log1pf() 80 c /= f32::from_bits(ui); in log1pf() 87 f = f32::from_bits(ui) - 1.; in log1pf()
|
D | log1p.rs | 121 1. - (f64::from_bits(ui) - x) in log1p() 123 x - (f64::from_bits(ui) - 1.) in log1p() 125 c /= f64::from_bits(ui); in log1p() 132 f = f64::from_bits(ui) - 1.; in log1p()
|
D | sin.rs | 45 let x1p120 = f64::from_bits(0x4770000000000000); // 0x1p120f === 2 ^ 120 in sin() 82 let x = f64::from_bits(0x400921fb000FD5DD); // 3.141592026217707 in test_near_pi() 83 let sx = f64::from_bits(0x3ea50d15ced1a4a2); // 6.273720864039205e-7 in test_near_pi()
|
D | ceilf.rs | 27 force_eval!(x + f32::from_bits(0x7b800000)); in ceilf() 33 force_eval!(x + f32::from_bits(0x7b800000)); in ceilf() 40 f32::from_bits(ui) in ceilf()
|
D | floorf.rs | 27 force_eval!(x + f32::from_bits(0x7b800000)); in floorf() 33 force_eval!(x + f32::from_bits(0x7b800000)); in floorf() 40 f32::from_bits(ui) in floorf()
|
D | expm1.rs | 56 x *= f64::from_bits(0x7fe0000000000000); in expm1() 117 let twopk = f64::from_bits(ui); in expm1() 122 y = y * 2.0 * f64::from_bits(0x7fe0000000000000); in expm1() 129 let uf = f64::from_bits(ui); in expm1()
|
/external/crosvm/devices/src/virtio/input/ |
D | defaults.rs | 71 virtio_input_bitmap::from_bits(&[INPUT_PROP_DIRECT]), in new_single_touch_config() 84 virtio_input_bitmap::from_bits(&[INPUT_PROP_DIRECT]), in new_multi_touch_config() 99 supported_events.insert(EV_KEY, virtio_input_bitmap::from_bits(&[BTN_TOUCH])); in default_touchscreen_events() 100 supported_events.insert(EV_ABS, virtio_input_bitmap::from_bits(&[ABS_X, ABS_Y])); in default_touchscreen_events() 123 supported_events.insert(EV_KEY, virtio_input_bitmap::from_bits(&[BTN_TOUCH])); in default_multitouchscreen_events() 126 virtio_input_bitmap::from_bits(&[ in default_multitouchscreen_events() 147 virtio_input_bitmap::from_bits(&[BTN_TOOL_FINGER, BTN_TOUCH, BTN_LEFT, BTN_RIGHT]), in default_trackpad_events() 149 supported_events.insert(EV_ABS, virtio_input_bitmap::from_bits(&[ABS_X, ABS_Y])); in default_trackpad_events() 157 virtio_input_bitmap::from_bits(&[BTN_LEFT, BTN_RIGHT, BTN_MIDDLE]), in default_mouse_events() 161 virtio_input_bitmap::from_bits(&[REL_X, REL_Y, REL_WHEEL]), in default_mouse_events() [all …]
|
/external/rust/crates/half/src/bfloat/ |
D | convert.rs | 89 f32::from_bits((i as u32 | 0x0040u32) << 16) in bf16_to_f32() 91 f32::from_bits((i as u32) << 16) in bf16_to_f32() 98 return f64::from_bits((i as u64) << 48); in bf16_to_f64() 109 return f64::from_bits((half_sign << 48) | 0x7FF0_0000_0000_0000u64); in bf16_to_f64() 112 return f64::from_bits((half_sign << 48) | 0x7FF8_0000_0000_0000u64 | (half_man << 45)); in bf16_to_f64() 129 return f64::from_bits(sign | exp | man); in bf16_to_f64() 134 f64::from_bits(sign | exp | man) in bf16_to_f64()
|
/external/rust/crates/ryu/tests/ |
D | f2s_test.rs | 58 let f = f32::from_bits((((1 << 8) - 1) << 23) + i); in test_non_finite() 82 assert_eq!(f32::from_bits(0x7f7fffff), 3.4028235e38); in test_min_and_max() 84 assert_eq!(f32::from_bits(1), 1e-45); in test_min_and_max() 153 assert_eq!(f32::from_bits(0x5D1502F9), 6.7108864e17); in test_looks_like_pow5() 155 assert_eq!(f32::from_bits(0x5D9502F9), 1.3421773e18); in test_looks_like_pow5() 157 assert_eq!(f32::from_bits(0x5E1502F9), 2.6843546e18); in test_looks_like_pow5()
|
D | d2s_test.rs | 33 f64::from_bits(((sign as u64) << 63) | ((ieee_exponent as u64) << 52) | ieee_mantissa) in ieee_parts_to_double() 63 let f = f64::from_bits((((1 << 11) - 1) << 52) + (i << 29)); in test_non_finite() 87 assert_eq!(f64::from_bits(0x7fefffffffffffff), 1.7976931348623157e308); in test_min_and_max() 89 assert_eq!(f64::from_bits(1), 5e-324); in test_min_and_max() 115 assert_eq!(f64::from_bits(0x4830F0CF064DD592), 5.764607523034235e39); in test_looks_like_pow5() 117 assert_eq!(f64::from_bits(0x4840F0CF064DD592), 1.152921504606847e40); in test_looks_like_pow5() 119 assert_eq!(f64::from_bits(0x4850F0CF064DD592), 2.305843009213694e40); in test_looks_like_pow5()
|
/external/rust/crates/half/src/ |
D | vec.rs | 239 pub fn from_bits(bits: Vec<u16>) -> Vec<f16> { in from_bits() function 274 let from_bits = bits.reinterpret_into::<f16>(); in test_vec_conversions_f16() localVariable 275 assert_eq!(&from_bits[..], &numbers[..]); in test_vec_conversions_f16() 278 let to_bits = from_bits.reinterpret_into(); in test_vec_conversions_f16() 294 let from_bits = bits.reinterpret_into::<bf16>(); in test_vec_conversions_bf16() localVariable 295 assert_eq!(&from_bits[..], &numbers[..]); in test_vec_conversions_bf16() 298 let to_bits = from_bits.reinterpret_into(); in test_vec_conversions_bf16()
|
D | binary16.rs | 338 pub const fn from_bits(bits: u16) -> f16 { in from_bits() method 435 f16::from_bits(u16::from_le_bytes(bytes)) 449 f16::from_bits(u16::from_be_bytes(bytes)) 470 f16::from_bits(u16::from_ne_bytes(bytes)) 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() [all …]
|
D | bfloat.rs | 42 pub const fn from_bits(bits: u16) -> bf16 { in from_bits() method 136 bf16::from_bits(u16::from_le_bytes(bytes)) 150 bf16::from_bits(u16::from_be_bytes(bytes)) 171 bf16::from_bits(u16::from_ne_bytes(bytes)) 850 let nan64 = f64::from_bits(0x7FF0_0000_0000_0001u64); in test_nan_conversion_to_smaller() 851 let neg_nan64 = f64::from_bits(0xFFF0_0000_0000_0001u64); in test_nan_conversion_to_smaller() 852 let nan32 = f32::from_bits(0x7F80_0001u32); in test_nan_conversion_to_smaller() 853 let neg_nan32 = f32::from_bits(0xFF80_0001u32); in test_nan_conversion_to_smaller() 875 let nan16 = bf16::from_bits(0x7F81u16); in test_nan_conversion_to_larger() 876 let neg_nan16 = bf16::from_bits(0xFF81u16); in test_nan_conversion_to_larger() [all …]
|
/external/rust/crates/half/src/binary16/ |
D | convert.rs | 272 return f32::from_bits((i as u32) << 16); in f16_to_f32_fallback() 283 return f32::from_bits((half_sign << 16) | 0x7F80_0000u32); in f16_to_f32_fallback() 286 return f32::from_bits((half_sign << 16) | 0x7FC0_0000u32 | (half_man << 13)); in f16_to_f32_fallback() 303 return f32::from_bits(sign | exp | man); in f16_to_f32_fallback() 309 f32::from_bits(sign | exp | man) in f16_to_f32_fallback() 315 return f64::from_bits((i as u64) << 48); in f16_to_f64_fallback() 326 return f64::from_bits((half_sign << 48) | 0x7FF0_0000_0000_0000u64); in f16_to_f64_fallback() 329 return f64::from_bits((half_sign << 48) | 0x7FF8_0000_0000_0000u64 | (half_man << 42)); in f16_to_f64_fallback() 346 return f64::from_bits(sign | exp | man); in f16_to_f64_fallback() 352 f64::from_bits(sign | exp | man) in f16_to_f64_fallback()
|
/external/rust/crates/serde_json/src/lexical/ |
D | num.rs | 248 fn from_bits(u: Self::Unsigned) -> Self; in from_bits() method 300 Self::from_bits(self.to_bits() + Self::Unsigned::as_cast(1u32)) in next_positive() 358 fn from_bits(u: u32) -> f32 { in from_bits() method 359 f32::from_bits(u) in from_bits() 422 fn from_bits(u: u64) -> f64 { in from_bits() method 423 f64::from_bits(u) in from_bits()
|
/external/rust/crates/rand/src/distributions/ |
D | utils.rs | 178 let b = $intrinsic::from_bits(x); 179 let a = $intrinsic::from_bits(self); 180 let hi = $ty::from_bits(unsafe { $mulhi(a, b) }); 181 let lo = $ty::from_bits(unsafe { $mullo(a, b) }); 346 <$ty>::from_bits(self.to_bits() - 1) 412 <$ty>::from_bits(<$uty>::from_bits(self) + <$uty>::from_bits(mask))
|