Searched refs:f_scalar (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/rand/src/distributions/ |
D | uniform.rs | 815 ($ty:ty, $uty:ident, $f_scalar:ident, $u_scalar:ident, $bits_to_discard:expr) => { 1321 ($ty:ty, $f_scalar:ident, $bits_shifted:expr) => {{ in test_floats() 1322 let v: &[($f_scalar, $f_scalar)] = &[ in test_floats() 1327 (<$f_scalar>::from_bits(0), <$f_scalar>::from_bits(3)), in test_floats() 1328 (-<$f_scalar>::from_bits(10), -<$f_scalar>::from_bits(1)), in test_floats() 1329 (-<$f_scalar>::from_bits(5), 0.0), in test_floats() 1330 (-<$f_scalar>::from_bits(7), -0.0), in test_floats() 1331 (10.0, ::core::$f_scalar::MAX), in test_floats() 1332 (-100.0, ::core::$f_scalar::MAX), in test_floats() 1333 (-::core::$f_scalar::MAX / 5.0, ::core::$f_scalar::MAX), in test_floats() [all …]
|
D | float.rs | 93 ($ty:ident, $uty:ident, $f_scalar:ident, $u_scalar:ty, 111 let float_size = mem::size_of::<$f_scalar>() as u32 * 8; 113 let scale = 1.0 / ((1 as $u_scalar << precision) as $f_scalar); 126 let float_size = mem::size_of::<$f_scalar>() as u32 * 8; 128 let scale = 1.0 / ((1 as $u_scalar << precision) as $f_scalar); 142 use core::$f_scalar::EPSILON; 143 let float_size = mem::size_of::<$f_scalar>() as u32 * 8;
|
D | utils.rs | 365 ($ty:ident, $f_scalar:ident, $mty:ident, $uty:ident) => { 388 let neg_inf = $ty::splat(::core::$f_scalar::NEG_INFINITY); 389 let pos_inf = $ty::splat(::core::$f_scalar::INFINITY);
|
/external/llvm-project/lldb/unittests/Utility/ |
D | ScalarTest.cpp | 137 Scalar f_scalar; in TEST() local 157 f_scalar.SetValueFromData(f_data, lldb::eEncodingUint, sizeof(f)) in TEST() 160 f_scalar.GetBytes(Storage); in TEST()
|