/third_party/rust/crates/minimal-lexical/tests/ |
H A D | bellerophon_tests.rs | 11 bellerophon_test::<f64>(9007199254740992, 0, false, 0, 1076); in halfway_round_down_test() 12 bellerophon_test::<f64>( in halfway_round_down_test() 17 1065 + f64::INVALID_FP, in halfway_round_down_test() 19 bellerophon_test::<f64>(9007199254740994, 0, false, 1, 1076); in halfway_round_down_test() 21 bellerophon_test::<f64>(18014398509481984, 0, false, 0, 1077); in halfway_round_down_test() 22 bellerophon_test::<f64>( in halfway_round_down_test() 27 1066 + f64::INVALID_FP, in halfway_round_down_test() 29 bellerophon_test::<f64>(18014398509481988, 0, false, 1, 1077); in halfway_round_down_test() 31 bellerophon_test::<f64>(9223372036854775808, 0, false, 0, 1086); in halfway_round_down_test() 32 bellerophon_test::<f64>( in halfway_round_down_test() [all...] |
H A D | libm_tests.rs | 7 use core::f64; 45 const POS_ZERO: &[f64] = &[0.0]; 46 const NEG_ZERO: &[f64] = &[-0.0]; 47 const POS_ONE: &[f64] = &[1.0]; 48 const NEG_ONE: &[f64] = &[-1.0]; 49 const POS_FLOATS: &[f64] = &[99.0 / 70.0, f64::consts::E, f64::consts::PI]; 50 const NEG_FLOATS: &[f64] = &[-99.0 / 70.0, -f64 [all...] |
H A D | lemire_tests.rs | 14 let fp = lemire::compute_error::<f64>(q, w); in compute_error64() 24 let fp = lemire::compute_error_scaled::<f64>(q, w, lz); in compute_error_scaled64() 34 let fp = lemire::compute_float::<f64>(q, w); in compute_float64() 75 assert_eq!(compute_error64(0, 9007199254740992), (1065 + f64::INVALID_FP, 9223372036854775808)); in compute_error64_test() 76 assert_eq!(compute_error64(0, 9007199254740993), (1065 + f64::INVALID_FP, 9223372036854776832)); in compute_error64_test() 77 assert_eq!(compute_error64(0, 9007199254740994), (1065 + f64::INVALID_FP, 9223372036854777856)); in compute_error64_test() 78 assert_eq!(compute_error64(0, 9007199254740995), (1065 + f64::INVALID_FP, 9223372036854778880)); in compute_error64_test() 79 assert_eq!(compute_error64(0, 9007199254740996), (1065 + f64::INVALID_FP, 9223372036854779904)); in compute_error64_test() 82 (1066 + f64::INVALID_FP, 9223372036854775808) in compute_error64_test() 86 (1066 + f64 in compute_error64_test() [all...] |
H A D | number_tests.rs | 11 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 15 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 19 assert_eq!(number.is_fast_path::<f64>(), false); in is_fast_path_test() 23 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 27 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 31 assert_eq!(number.is_fast_path::<f64>(), false); in is_fast_path_test() 36 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 40 assert_eq!(number.is_fast_path::<f64>(), false); in is_fast_path_test() 44 assert_eq!(number.is_fast_path::<f64>(), true); in is_fast_path_test() 48 assert_eq!(number.is_fast_path::<f64>(), fals in is_fast_path_test() [all...] |
H A D | slow_tests.rs | 63 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test() 69 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test() 85 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test() 91 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test() 106 let result = slow::positive_digit_comp::<f64>(bigmant, exponent); in positive_digit_comp_test() 118 let result = slow::positive_digit_comp::<f64>(bigmant, exponent); in positive_digit_comp_test() 147 let result = slow::negative_digit_comp::<f64>(bigmant, fp, exponent); in negative_digit_comp_test() 169 let result = slow::negative_digit_comp::<f64>(bigmant, fp, exponent); in negative_digit_comp_test() 191 let result = slow::negative_digit_comp::<f64>(bigmant, fp, exponent); in negative_digit_comp_test() 217 let result = slow::negative_digit_comp::<f64>(bigman in negative_digit_comp_test() [all...] |
H A D | rounding_tests.rs | 10 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 21 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 35 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 48 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 61 rounding::round::<f64, _>(&mut fp, rounding::round_down); in round_test()
|
/third_party/rust/crates/minimal-lexical/src/ |
H A D | libm.rs | 588 pub fn powd(x: f64, y: f64) -> f64 { in powd() 589 const BP: [f64; 2] = [1.0, 1.5]; in powd() 590 const DP_H: [f64; 2] = [0.0, 5.84962487220764160156e-01]; /* 0x3fe2b803_40000000 */ in powd() 591 const DP_L: [f64; 2] = [0.0, 1.35003920212974897128e-08]; /* 0x3E4CFDEB, 0x43CFD006 */ in powd() 592 const TWO53: f64 = 9007199254740992.0; /* 0x43400000_00000000 */ in powd() 593 const HUGE: f64 = 1.0e300; in powd() 594 const TINY: f64 = 1.0e-300; in powd() 597 const L1: f64 in powd() [all...] |
H A D | num.rs | 53 /// For f64, this follows as: 94 // Maximum mantissa for the fast-path (`1 << 53` for f64). 252 impl Float for f64 { 279 return powd(10.0f64, exponent as f64); in pow_fast_path() 283 fn from_u64(u: u64) -> f64 { in from_u64() 288 fn from_bits(u: u64) -> f64 { in from_bits() 289 f64::from_bits(u) in from_bits() 294 f64::to_bits(self) in to_bits() 306 pub fn powd(x: f64, [all...] |
/third_party/rust/crates/nix/src/sys/ |
H A D | sysinfo.rs | 24 pub fn load_average(&self) -> (f64, f64, f64) { in load_average() 26 self.0.loads[0] as f64 / (1 << SI_LOAD_SHIFT) as f64, in load_average() 27 self.0.loads[1] as f64 / (1 << SI_LOAD_SHIFT) as f64, in load_average() 28 self.0.loads[2] as f64 / (1 << SI_LOAD_SHIFT) as f64, in load_average()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/ |
H A D | type_precision.hpp | 616 typedef float64 f64; typedef 655 typedef tvec1<f64, defaultp> f64vec1; 659 typedef tvec2<f64, defaultp> f64vec2; 663 typedef tvec3<f64, defaultp> f64vec3; 667 typedef tvec4<f64, defaultp> f64vec4; 791 //typedef detail::tmat1x1<f64, defaultp> f64mat1; 795 typedef tmat2x2<f64, defaultp> f64mat2; 799 typedef tmat3x3<f64, defaultp> f64mat3; 803 typedef tmat4x4<f64, defaultp> f64mat4; 808 //typedef f64 f64mat1x [all...] |
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/ |
H A D | fwd.hpp | 1457 typedef lowp_f64 f64; typedef 1483 typedef mediump_float64 f64; typedef 1509 typedef highp_float64_t f64; typedef 1663 typedef tvec1<f64, lowp> lowp_f64vec1; 1667 typedef tvec2<f64, lowp> lowp_f64vec2; 1671 typedef tvec3<f64, lowp> lowp_f64vec3; 1675 typedef tvec4<f64, lowp> lowp_f64vec4; 1679 typedef tvec1<f64, mediump> mediump_f64vec1; 1683 typedef tvec2<f64, mediump> mediump_f64vec2; 1687 typedef tvec3<f64, medium [all...] |
/third_party/mesa3d/src/nouveau/codegen/lib/ |
H A D | gk110.asm | 118 set $p0 0x1 gtu f64 abs $r0d 0x7ff0000000000000 133 set $p0 0x1 gtu f64 abs $r0d 0x0 139 mul rn f64 $r0d $r0d 0x4350000000000000 157 cvt rz f32 $r5 f64 $r6d 163 cvt f64 $r0d f32 $r0 164 cvt f64 $r6d f64 neg $r6d 166 cvt f64 $r8d f32 0x3f800000 174 fma rn f64 $r4d $r6d $r0d $r8d 175 fma rn f64 [all...] |
H A D | gk104.asm | 576 set $p0 0x1 gtu f64 abs $r0d 0x7ff0000000000000 591 set $p0 0x1 gtu f64 abs $r0d 0x0 597 mul rn f64 $r0d $r0d 0x4350000000000000 615 cvt rz f32 $r5 f64 $r6d 621 cvt f64 $r0d f32 $r0 622 cvt f64 $r6d neg f64 $r6d 624 cvt f64 $r8d f32 0x3f800000 632 fma rn f64 $r4d $r6d $r0d $r8d 633 fma rn f64 [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | infinite-macro.rs | 8 pub const INFINITY: f64 = ::std::f64::INFINITY; 9 pub const NAN: f64 = ::std::f64::NAN;
|
H A D | complex_global.rs | 18 pub static mut globalValueDouble: __BindgenComplex<f64>; 21 pub static mut globalValueLongDouble: __BindgenComplex<f64>;
|
H A D | macro_const.rs | 11 pub const FLOAT: f64 = 5.09; 12 pub const FLOAT_EXPR: f64 = 0.005;
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
H A D | number_precision.hpp | 43 typedef f64 f64vec1; //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension) 50 typedef f64 f64mat1; //!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension) 51 typedef f64 f64mat1x1; //!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension)
|
/third_party/rust/crates/bindgen/bindgen/codegen/ |
H A D | helpers.rs | 198 (FloatKind::Double, true) => quote! { f64 }, in float_kind_rust_type() 206 8 => quote! { f64 }, in float_kind_rust_type() 210 .unwrap_or(quote! { f64 }), in float_kind_rust_type() 218 quote! { f64 } in float_kind_rust_type() 258 pub fn float_expr(ctx: &BindgenContext, f: f64) -> Result<TokenStream, ()> { in float_expr() 269 ::#prefix::f64::NAN in float_expr() 276 ::#prefix::f64::INFINITY in float_expr() 280 ::#prefix::f64::NEG_INFINITY in float_expr()
|
/third_party/rust/crates/strsim-rs/src/ |
H A D | lib.rs | 65 pub fn generic_jaro<'a, 'b, Iter1, Iter2, Elem1, Elem2>(a: &'a Iter1, b: &'b Iter2) -> f64 in generic_jaro() 127 (1.0 / 3.0) * ((matches / a_len as f64) + in generic_jaro() 128 (matches / b_len as f64) + in generic_jaro() 153 pub fn jaro(a: &str, b: &str) -> f64 { in jaro() 158 pub fn generic_jaro_winkler<'a, 'b, Iter1, Iter2, Elem1, Elem2>(a: &'a Iter1, b: &'b Iter2) -> f64 in generic_jaro_winkler() 171 jaro_distance + (0.1 * prefix_length as f64 * (1.0 - jaro_distance)); in generic_jaro_winkler() 188 pub fn jaro_winkler(a: &str, b: &str) -> f64 { in jaro_winkler() 252 pub fn normalized_levenshtein(a: &str, b: &str) -> f64 { in normalized_levenshtein() 256 1.0 - (levenshtein(a, b) as f64) / (a.chars().count().max(b.chars().count()) as f64) in normalized_levenshtein() [all...] |
/third_party/opencl-headers/CL/ |
H A D | cl_half.h | 242 } f64; in cl_half_from_double() local 243 f64.d = d; in cl_half_from_double() 246 uint16_t sign = f64.i >> 63; in cl_half_from_double() 249 uint64_t d_exp = (f64.i >> (CL_DBL_MANT_DIG - 1)) & 0x7FF; in cl_half_from_double() 250 uint64_t d_mant = f64.i & (((uint64_t)1 << (CL_DBL_MANT_DIG - 1)) - 1); in cl_half_from_double()
|
/third_party/skia/third_party/externals/angle2/include/CL/ |
H A D | cl_half.h | 242 } f64; in cl_half_from_double() local 243 f64.d = d; in cl_half_from_double() 246 uint16_t sign = f64.i >> 63; in cl_half_from_double() 249 uint64_t d_exp = (f64.i >> (CL_DBL_MANT_DIG - 1)) & 0x7FF; in cl_half_from_double() 250 uint64_t d_mant = f64.i & (((uint64_t)1 << (CL_DBL_MANT_DIG - 1)) - 1); in cl_half_from_double()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | TargetLoweringBase.cpp | 225 if (RetVT == MVT::f64) in getFPEXT() 231 } else if (OpVT == MVT::f64) { in getFPEXT() 250 if (OpVT == MVT::f64) in getFPROUND() 259 if (OpVT == MVT::f64) in getFPROUND() 267 } else if (RetVT == MVT::f64) { in getFPROUND() 292 } else if (OpVT == MVT::f64) { in getFPTOSINT() 334 } else if (OpVT == MVT::f64) { in getFPTOUINT() 372 if (RetVT == MVT::f64) in getSINTTOFP() 383 if (RetVT == MVT::f64) in getSINTTOFP() 394 if (RetVT == MVT::f64) in getSINTTOFP() [all...] |
/third_party/rust/crates/bindgen/bindgen/ |
H A D | time.rs | 38 let time = (elapsed.as_secs() as f64) * 1e3 + in print_elapsed() 39 (elapsed.subsec_nanos() as f64) / 1e6; in print_elapsed()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/ |
H A D | smoke.rs | 19 let input = f64::from_bits(rng.next_u64()); in main() 22 let (output, rest) = parse_float::<f64>(printed.as_bytes()); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.cpp | 122 else if (LocVT == MVT::f64 && Offset < 16*8) in CC_Sparc64_Full() 418 assert(VA.getLocVT() == MVT::f64 || VA.getLocVT() == MVT::v2i32); in LowerFormalArguments_32() 468 assert(VA.getValVT() == MVT::f64 || VA.getValVT() == MVT::v2i32); in LowerFormalArguments_32() 837 assert(VA.getLocVT() == MVT::f64 || VA.getLocVT() == MVT::v2i32); in LowerCall_32() 852 if (VA.getLocVT() == MVT::f64) { in LowerCall_32() 1051 // FIXME: What about f32 arguments? C promotes them to f64 when calling in fixupVariableFloatArgs() 1053 if (!VA.isRegLoc() || (ValTy != MVT::f64 && ValTy != MVT::f128)) in fixupVariableFloatArgs() 1063 unsigned firstReg = (ValTy == MVT::f64) ? SP::D0 : SP::Q0; in fixupVariableFloatArgs() 1064 unsigned argSize = (ValTy == MVT::f64) ? 8 : 16; in fixupVariableFloatArgs() 1071 if (ValTy == MVT::f64) in fixupVariableFloatArgs() [all...] |