/external/rust/crates/half/benches/ |
D | convert.rs | 18 f32::NEG_INFINITY, in bench_f32_to_f16() 38 f64::NEG_INFINITY, in bench_f64_to_f16() 58 f16::NEG_INFINITY, in bench_f16_to_f32() 78 f16::NEG_INFINITY, in bench_f16_to_f64() 104 f32::NEG_INFINITY, in bench_slice_f32_to_f16() 136 f64::NEG_INFINITY, in bench_slice_f64_to_f16() 168 f16::NEG_INFINITY, in bench_slice_f16_to_f32() 200 f16::NEG_INFINITY, in bench_slice_f16_to_f64() 242 f32::NEG_INFINITY, in bench_f32_to_bf16() 262 f64::NEG_INFINITY, in bench_f64_to_bf16() [all …]
|
/external/rust/crates/libm/src/math/ |
D | pow.rs | 416 use self::core::f64::{EPSILON, INFINITY, MAX, MIN, MIN_POSITIVE, NAN, NEG_INFINITY}; 433 const NEG_INF: &[f64] = &[NEG_INFINITY]; 535 test_sets_as_exponent(NEG_INFINITY, &[POS_ODDS], NEG_INFINITY); in infinity_as_base() 540 test_sets(ALL, &|v: f64| pow(NEG_INFINITY, v), &|v: f64| pow(-0.0, -v)); in infinity_as_base() 550 test_sets_as_base(&ALL[5..ALL.len() - 2], NEG_INFINITY, 0.0); in infinity_as_exponent() 559 test_sets_as_base(base_below_one, NEG_INFINITY, INFINITY); in infinity_as_exponent() 566 test_sets_as_base(&[NEG_ONE, POS_ONE], NEG_INFINITY, 1.0); in infinity_as_exponent() 592 test_sets_as_exponent(-0.0, &[NEG_ODDS], NEG_INFINITY); in zero_as_base()
|
D | fabsf.rs | 35 for f in [INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | fabs.rs | 37 for f in [INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | ceilf.rs | 59 for f in [0.0, -0.0, INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | floor.rs | 58 for f in [0.0, -0.0, INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | floorf.rs | 60 for f in [0.0, -0.0, INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | ceil.rs | 59 for f in [0.0, -0.0, INFINITY, NEG_INFINITY].iter().copied() { in spec_tests()
|
D | atan.rs | 177 assert_eq!(atan(f64::NEG_INFINITY), -f64::consts::FRAC_PI_2); in minus_infinity()
|
/external/rust/crates/ryu/src/buffer/ |
D | mod.rs | 10 const NEG_INFINITY: &'static str = "-inf"; constant 141 NEG_INFINITY in format_nonfinite() 170 NEG_INFINITY in format_nonfinite()
|
/external/rust/crates/half/src/ |
D | binary16.rs | 197 pub const NEG_INFINITY: f16 = f16::NEG_INFINITY; constant 719 pub const NEG_INFINITY: f16 = f16(0xFC00u16); constant 990 let min = f16::from_bits(f16::NEG_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() 1025 let neg_inf = f16::from_f32(core::f32::NEG_INFINITY); in test_f16_consts_from_f32() 1034 assert_eq!(f16::NEG_INFINITY, neg_inf); in test_f16_consts_from_f32() 1085 let neg_inf = f16::from_f64(core::f64::NEG_INFINITY); in test_f16_consts_from_f64() 1094 assert_eq!(f16::NEG_INFINITY, neg_inf); in test_f16_consts_from_f64()
|
D | bfloat.rs | 410 pub const NEG_INFINITY: bf16 = bf16(0xFF80u16); constant 738 let neg_inf = bf16::from_f32(core::f32::NEG_INFINITY); in test_bf16_consts_from_f32() 745 assert_eq!(bf16::NEG_INFINITY, neg_inf); in test_bf16_consts_from_f32() 796 let neg_inf = bf16::from_f64(core::f64::NEG_INFINITY); in test_bf16_consts_from_f64() 803 assert_eq!(bf16::NEG_INFINITY, neg_inf); in test_bf16_consts_from_f64()
|
/external/rust/crates/num-traits/src/ |
D | lib.rs | 230 "-inf" => return Ok(core::$t::NEG_INFINITY), 279 { return Ok(core::$t::NEG_INFINITY); } 285 { return Ok(core::$t::NEG_INFINITY); } 323 { return Ok(core::$t::NEG_INFINITY); }
|
D | float.rs | 752 neg_infinity() -> f32::NEG_INFINITY; 826 neg_infinity() -> f64::NEG_INFINITY; 1818 neg_infinity() -> $T::NEG_INFINITY; 1896 neg_infinity() -> $T::NEG_INFINITY;
|
/external/rust/crates/protobuf/src/text_format/lexer/ |
D | float.rs | 42 return Ok(f64::NEG_INFINITY); in parse_protobuf_float()
|
/external/rust/crates/protobuf-codegen/src/ |
D | float.rs | 48 return Ok(f64::NEG_INFINITY); in parse_protobuf_float()
|
/external/rust/crates/num-traits/tests/ |
D | cast.rs | 28 assert_eq!((-f32_toolarge).to_f32(), Some(f32::NEG_INFINITY)); in to_primitive_float() 32 assert_eq!((f64::NEG_INFINITY).to_f32(), Some(f32::NEG_INFINITY)); in to_primitive_float() 208 assert_eq!(None, cast::<$f, $t>($f::NEG_INFINITY));
|
/external/rust/crates/cast/src/ |
D | lib.rs | 292 src == $src::NEG_INFINITY { 344 src == $src::NEG_INFINITY { 536 if src != src || src == f64::INFINITY || src == f64::NEG_INFINITY { in cast()
|
/external/rust/crates/ryu/tests/ |
D | f2s_test.rs | 72 assert_eq!(pretty(f32::NEG_INFINITY), "-inf"); in test_basic()
|
D | d2s_test.rs | 77 assert_eq!(pretty(f64::NEG_INFINITY), "-inf"); in test_basic()
|
/external/rust/crates/rand/src/distributions/ |
D | utils.rs | 300 self == ::core::$ty::INFINITY || self == ::core::$ty::NEG_INFINITY 388 let neg_inf = $ty::splat(::core::$f_scalar::NEG_INFINITY);
|
D | uniform.rs | 1439 ::std::$f_scalar::NEG_INFINITY, in test_float_assertions() 1440 ::std::$f_scalar::NEG_INFINITY, in test_float_assertions() 1442 (::std::$f_scalar::NEG_INFINITY, 5.0), in test_float_assertions() 1445 (::std::$f_scalar::NEG_INFINITY, ::std::$f_scalar::NAN), in test_float_assertions() 1446 (::std::$f_scalar::NEG_INFINITY, ::std::$f_scalar::INFINITY), in test_float_assertions()
|
/external/rust/crates/libm/ |
D | build.rs | 177 let i = *[f32::NAN, f32::INFINITY, f32::NEG_INFINITY] in gen_i64() 187 let i = *[f64::NAN, f64::INFINITY, f64::NEG_INFINITY] in gen_i64()
|
/external/rust/crates/serde_cbor/tests/ |
D | ser.rs | 147 let vec = to_vec(&::std::f64::NEG_INFINITY).unwrap(); in test_neg_infinity()
|
/external/rust/crates/bindgen/src/codegen/ |
D | helpers.rs | 268 ::#prefix::f64::NEG_INFINITY in float_expr()
|