/llvm-project/libc/AOR_v20.02/math/test/traces/ |
H A D | sincosf.txt | 1 0x0p+0 2 0x0p+0 3 0x0p+0 4 0x0p+0 5 0x0p+0 6 0x0p+0 7 0x0p+0 8 0x0p+0 9 0x0p+0 10 0x0p+0 [all …]
|
H A D | exp.txt | 1 0x1.0bc8e7ca4ae1bp+0 2 0x1.f9a012f44a109p-1 3 -0x1.87a0e64ca4704p-15 4 0x1.d2d48a18a7775p-1 5 0x1.bb1c1c3d91533p-1 6 -0x1.f99f18cd2896bp-16 7 0x1.58bb57317e405p-1 8 0x1.4a09091f7ebeep-1 9 -0x1.44718c44e91cfp-16 10 0x1.45fa2a0b71c2bp-1 [all …]
|
/llvm-project/compiler-rt/test/builtins/Unit/ppc/ |
H A D | qsub_test.c | 7 int memcmp(const void *, const void *, __typeof__(sizeof(0))); 19 return 0; in main() 29 #define HUGE 0x1.fffffffffffffp1023 111 for (i=0; i<numEdgeCases; ++i) { in testEdgeCases() 131 error = 0; in testEdgeCases() 146 return 0; in testEdgeCases() 176 for (i=0; i<128; ++i) { 264 return 0; 272 {0x1.0000000000002p+366, -0x1.ffc0ffff90000p+302, 0x1.0003ffffffffcp+140, 0x1.ffffc00000000p+53, 0x… 273 {0x1.0000000000002p+366, -0x1.ffc0ffff90000p+302, -0x1.0003ffffffffcp+140, -0x1.ffffc00000000p+53, … [all …]
|
H A D | qadd_test.c | 7 int memcmp(const void *, const void *, __typeof__(sizeof(0))); 19 return 0; in main() 29 #define HUGE 0x1.fffffffffffffp1023 111 for (i=0; i<numEdgeCases; ++i) { in testEdgeCases() 129 error = 0; in testEdgeCases() 144 return 0; in testEdgeCases() 174 for (i=0; i<128; ++i) { 262 return 0; 270 {0x1.0000000000002p+366, -0x1.ffc0ffff90000p+302, 0x1.0003ffffffffcp+140, 0x1.ffffc00000000p+53, 0x… 271 {0x1.0000000000002p+366, -0x1.ffc0ffff90000p+302, -0x1.0003ffffffffcp+140, -0x1.ffffc00000000p+53, … [all …]
|
H A D | qdiv_test.c | 7 int memcmp(const void *, const void *, __typeof__(sizeof(0))); 19 return 0; in main() 29 #define HUGE 0x1.fffffffffffffp1023 111 for (i=0; i<numEdgeCases; ++i) { in testEdgeCases() 129 error = 0; in testEdgeCases() 144 return 0; in testEdgeCases() 194 for (i=0; i<128; ++i) { 213 return 0; 219 {0x1.00001ffffff00p+419, 0x1.fffff83ff8000p+364, 0x1.00ffc00ffff00p-598, 0x1.fe0007fffff00p-654, 0x… 220 {0x1.00001ffffff00p+419, 0x1.fffff83ff8000p+364, -0x1.00ffc00ffff00p-598, -0x1.fe0007fffff00p-654, … [all …]
|
H A D | qmul_test.c | 7 int memcmp(const void *, const void *, __typeof__(sizeof(0))); 19 return 0; in main() 29 #define HUGE 0x1.fffffffffffffp1023 111 for (i=0; i<numEdgeCases; ++i) { in testEdgeCases() 129 error = 0; in testEdgeCases() 144 return 0; in testEdgeCases() 196 for (i=0; i<128; ++i) { 215 return 0; 221 {0x1.00001ffffff00p-784, 0x1.fffff83ff8000p-839, 0x1.00ffc00ffff00p-771, 0x1.fe0007fffff00p-827, 0x… 222 {0x1.00001ffffff00p-784, 0x1.fffff83ff8000p-839, -0x1.00ffc00ffff00p-771, -0x1.fe0007fffff00p-827, … [all …]
|
H A D | fixunstfti_test.h | 26 { 0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 27 { -0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 28 { -0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 29 { 0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 30 { -0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 31 { 0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) }, 32 { -INFINITY, 0x0p+0, ((__uint128_t)0x0000000000000000 << 64) | 0x0000000000000000 }, 33 { INFINITY, 0x0p+0, ((__uint128_t)0xffffffffffffffff << 64) | 0xffffffffffffffff }, 34 { QNAN, 0x0p+0, ((__uint128_t)0x7ff8000000000000 << 64) | 0x0000000000000000 }, 35 { -QNAN, 0x0p+0, ((__uint128_t)0x7ff8000000000000 << 64) | 0x0000000000000000 }, [all …]
|
H A D | fixtfti_test.h | 22 { 0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 23 { -0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 24 { -0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 25 { 0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) }, 26 { -0x1p+0, 0x0p+0, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) }, 27 { 0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) }, 28 { -0x1p+127, 0x0p+0, INIT_U128( 0x8000000000000000, 0x0000000000000000 ) }, 29 { 0x1.9a22227b34444p+0, 0x1.05d9d02c0bb3ap-53, INIT_U128( 0x0, 0x1 ) }, 30 { 0x1.be1c2ac37c385p+0, -0x1.2254205c44a84p-53, INIT_U128( 0x0, 0x1 ) }, 31 { 0x1.8b79847916f30p+0, 0x1.515b66aaa2b6dp-53, INIT_U128( 0x0, 0x1 ) }, [all …]
|
H A D | fixtfdi_test.c | 11 #define HUGE 0x1.fffffffffffffp1023 23 { 0.0, 0.0, 0LL }, 24 { -0.0, 0.0, 0LL }, 45 { 1.0, -0x1.0p-54, 0LL }, 47 { 1.0, 0x1.0p-54, 1LL }, 48 { 0x1.0000000000001p0, -0x1.0p-54, 1LL }, 49 { 0x1.0000000000001p0, -0.0, 1LL }, 50 { 0x1.0000000000001p0, 0.0, 1LL }, 51 { 0x1.0000000000001p0, 0x1.0p-54, 1LL }, 52 { -1.0, 0x1.0p-54, 0LL }, [all …]
|
H A D | floatditf_test.h | 8 { INT64_C(0x0000000000000061), 0x1.84p+6, 0x0p+0 }, 9 { INT64_C(0xffffffffffffff9e), -0x1.88p+6, 0x0p+0 }, 10 { INT64_C(0x0000000000000062), 0x1.88p+6, 0x0p+0 }, 11 { INT64_C(0xffffffffffffff9d), -0x1.8cp+6, 0x0p+0 }, 12 { INT64_C(0x0000000000000403), 0x1.00cp+10, 0x0p+0 }, 13 { INT64_C(0xfffffffffffffbfc), -0x1.01p+10, 0x0p+0 }, 14 { INT64_C(0x000000000000040a), 0x1.028p+10, 0x0p+0 }, 15 { INT64_C(0xfffffffffffffbf5), -0x1.02cp+10, 0x0p+0 }, 16 { INT64_C(0x000000000000040c), 0x1.03p+10, 0x0p+0 }, 17 { INT64_C(0xfffffffffffffbf3), -0x1.034p+10, 0x0p+0 }, [all …]
|
H A D | floatunditf_test.h | 8 { UINT64_C(0x0000000000000061), 0x1.84p+6, 0x0p+0 }, 9 { UINT64_C(0x0000000000000062), 0x1.88p+6, 0x0p+0 }, 10 { UINT64_C(0x0000000000000403), 0x1.00cp+10, 0x0p+0 }, 11 { UINT64_C(0x000000000000040a), 0x1.028p+10, 0x0p+0 }, 12 { UINT64_C(0x000000000000040c), 0x1.03p+10, 0x0p+0 }, 13 { UINT64_C(0x000000000000040e), 0x1.038p+10, 0x0p+0 }, 14 { UINT64_C(0x0000000000000418), 0x1.06p+10, 0x0p+0 }, 15 { UINT64_C(0x000000000000041a), 0x1.068p+10, 0x0p+0 }, 16 { UINT64_C(0x0000000000000504), 0x1.41p+10, 0x0p+0 }, 17 { UINT64_C(0x0000000000000506), 0x1.418p+10, 0x0p+0 }, [all …]
|
/llvm-project/libc/test/src/math/ |
H A D | hypotf_hard_to_round.h | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 18 {0x1.faf49ep+25f, 0x1.480002p+23f}, 19 {0x1.ffffecp-1f, 0x1.000002p+27}, 20 {0x1.900004p+34, 0x1.400002p+23}, /* 45 identical bits */ 21 {0x1.05555p+34, 0x1.bffffep+23}, /* 44 identical bits */ 22 {0x1.e5fffap+34, 0x1.affffep+23}, /* 45 identical bits */ 23 {0x1.260002p+34, 0x1.500002p+23}, /* 45 identical bits */ 24 {0x1.fffffap+34, 0x1.fffffep+23}, /* 45 identical bits */ 25 {0x1.8ffffap+34, 0x1.3ffffep+23}, /* 45 identical bits */ 26 {0x1.87fffcp+35, 0x1.bffffep+23}, /* 47 identical bits */ [all …]
|
/llvm-project/libc/src/math/generic/ |
H A D | common_constants.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 16 // Lookup table for (1/f) where f = 1 + n*2^(-7), n = 0..127. 18 0x1.0000000000000p+0, 0x1.fc07f01fc07f0p-1, 0x1.f81f81f81f820p-1, 19 0x [all...] |
H A D | range_reduction_double_nofma.h | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 38 ONE_TWENTY_EIGHT_OVER_PI[idx][0]); 63 constexpr DoubleDouble PI_OVER_128_DD = {0x1.1a62633145c07p-60, 64 0x1.921fb54442d18p-6}; 76 // Lookup table for sin(k * pi / 128) with k = 0, ..., 255. 79 // > for k from 0 to 255 do { 85 {0, 0}, [all...] |
H A D | range_reduction_double_fma.h | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 37 fputil::exact_mult<SPLIT>(x_reduced, ONE_TWENTY_EIGHT_OVER_PI[idx][0]); 62 constexpr DoubleDouble PI_OVER_128_DD = {0x1.1a62633145c07p-60, 63 0x1.921fb54442d18p-6}; 75 // Lookup table for sin(k * pi / 128) with k = 0, ..., 255. 78 // > for k from 0 to 255 do { 84 {0, 0}, [all...] |
H A D | erff.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 22 // > P = fpminimax(erf(x)/x, [|0, 2, 4, 6, 8, 10, 12, 14|], [|D...|], 24 // for k = 0..31. 26 {0x1.20dd750429b6dp0, -0x1.812746b037753p-2, 0x1.ce2f219e8596ap-4, 27 -0x [all...] |
H A D | powf.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 44 // > for i from 0 to 127 do { 54 {0x1.84a2c615b70adp-79, -0x1.177c23362928cp-25, 0x1.72c8p-7}, 55 {-0x1 [all...] |
H A D | explogxf.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 14 // N[Table[Log[2, 1 + x], {x, 0/64, 63/64, 1/64}], 40] 16 0x0.0000000000000p+0, 0x1.6e79685c2d22ap-6, 0x1.6bad3758efd87p-5, 17 0x1 [all...] |
H A D | inv_trigf_utils.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 14 // Polynomial approximation for 0 <= x <= 1: 21 // print("{", coeff(P, 0), ",", coeff(P, 1), ",", coeff(P, 2), ",", 25 // For i = 0, the polynomial is generated by: 26 // > P = fpminimax(atan(x)/x, 7, [|1, D...|], [0, 1/32]); 27 // > dirtyinfnorm((atan(x) - x*P)/x, [0, 1/32]); 28 // 0x1.feb2fcdba66447ccbe28a1a0f935b51678a718fb1p-59 33 {0.0, 1.0, 0x1 [all...] |
/llvm-project/libclc/generic/lib/math/ |
H A D | tables.cl | 28 (float2)(0x0.000000p+0f, 0x0.000000p+0f), 29 (float2)(0x1.fe0000p-8f, 0x1.535882p-23f), 30 (float2)(0x1 [all...] |
/llvm-project/libc/AOR_v20.02/math/ |
H A D | log_data.c | 4 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 14 .ln2hi = 0x1.62e42fefa3800p-1, 15 .ln2lo = 0x1.ef35793c76730p-45, 18 // relative error: 0x1.32eccc6p-62 19 // in -0x1p-5 0x1.1p-5 (|log(1+x)| > 0x1p-5 outside this interval) 20 -0x1p-1, 21 0x1.55555555554e5p-2, 22 -0x1.0000000000af2p-2, 23 0x1.9999999bbe436p-3, 24 -0x1.55555537f9cdep-3, [all …]
|
H A D | pow_log_data.c | 4 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 14 .ln2hi = 0x1.62e42fefa3800p-1, 15 .ln2lo = 0x1.ef35793c76730p-45, 18 // relative error: 0x1.11922ap-70 19 // in -0x1.6bp-8 0x1.6bp-8 21 -0x1p-1, 22 0x1.555555555556p-2 * -2, 23 -0x1.0000000000006p-2 * -2, 24 0x1.999999959554ep-3 * 4, 25 -0x1.555555529a47ap-3 * 4, [all …]
|
H A D | v_log_data.c | 4 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 19 where z is in [a;2a) which is split into N subintervals (a=0x1.69009p-1,N=128) 27 the error in (double)log(c) is minimized (< 0x1p-74), except the subinterval 30 {0x1.6a133d0dec120p+0, -0x1.62fe995eb963ap-2}, 31 {0x1.6815f2f3e42edp+0, -0x1.5d5a48dad6b67p-2}, 32 {0x1.661e39be1ac9ep+0, -0x1.57bde257d2769p-2}, 33 {0x1.642bfa30ac371p+0, -0x1.52294fbf2af55p-2}, 34 {0x1.623f1d916f323p+0, -0x1.4c9c7b598aa38p-2}, 35 {0x1.60578da220f65p+0, -0x1.47174fc5ff560p-2}, 36 {0x1.5e75349dea571p+0, -0x1.4199b7fa7b5cap-2}, [all …]
|
H A D | log2_data.c | 4 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 14 // First coefficient: 0x1.71547652b82fe1777d0ffda0d24p0 15 .invln2hi = 0x1.7154765200000p+0, 16 .invln2lo = 0x1.705fc2eefa200p-33, 19 // relative error: 0x1.2fad8188p-63 20 // in -0x1.5b51p-5 0x1.6ab2p-5 21 -0x1.71547652b82fep-1, 22 0x1.ec709dc3a03f7p-2, 23 -0x1.71547652b7c3fp-2, 24 0x1.2776c50f05be4p-2, [all …]
|
/llvm-project/libcxx/test/std/utilities/charconv/charconv.msvc/ |
H A D | double_fixed_precision_to_chars_test_cases_4.hpp | 14 {0x0.fffffffffffffp-1022, chars_format::fixed, 1074, 15 "0." 27 {0x1.fffffffffffffp-1022, chars_format::fixed, 1074, 28 "0." 40 {0x1.fffffffffffffp-1021, chars_format::fixed, 1073, 41 "0." 53 {0x1.fffffffffffffp-1020, chars_format::fixed, 1072, 54 "0." 66 {0x1.fffffffffffffp-1019, chars_format::fixed, 1071, 67 "0." [all …]
|