No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
70b1267
... +1 ...
59e6b2a
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
36 | 36 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 1.0L); |
|
37 | 37 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 1.5L); |
|
38 | 38 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 41.5L); |
|
39 | + | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 123456789.5L); |
|
40 | + | ||
39 | 41 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 0.0L); |
|
40 | 42 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, -1.0L); |
|
43 | + | ||
41 | 44 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, 1e-500L); |
|
42 | 45 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, std::numeric_limits<long double>::min()); |
|
46 | + | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, std::numeric_limits<double>::max()); |
|
43 | 47 | ||
44 | 48 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, -std::numeric_limits<long double>::infinity()); |
|
45 | 49 | GCEM_TEST_COMPARE_VALS(gcem::log,std::log, std::numeric_limits<long double>::infinity()); |
50 | 50 | noexcept |
|
51 | 51 | { |
|
52 | 52 | return( x > T(1e+08) ? \ |
|
53 | - | sqrt_simplify(x / T(1e+08), T(10000) * m_val) : |
|
53 | + | sqrt_simplify(x / T(1e+08), T(1e+04) * m_val) : |
|
54 | 54 | x > T(1e+06) ? \ |
|
55 | - | sqrt_simplify(x / T(1e+06), T(1000) * m_val) : |
|
56 | - | x > T(10000) ? \ |
|
57 | - | sqrt_simplify(x / T(10000), T(100) * m_val) : |
|
55 | + | sqrt_simplify(x / T(1e+06), T(1e+03) * m_val) : |
|
56 | + | x > T(1e+04) ? \ |
|
57 | + | sqrt_simplify(x / T(1e+04), T(1e+02) * m_val) : |
|
58 | 58 | x > T(100) ? \ |
|
59 | 59 | sqrt_simplify(x / T(100), T(10) * m_val) : |
|
60 | 60 | x > T(4) ? \ |
34 | 34 | find_exponent(const T x, const llint_t exponent) |
|
35 | 35 | noexcept |
|
36 | 36 | { |
|
37 | - | return( x < T(1) ? \ |
|
37 | + | return( // < 1 |
|
38 | + | x < T(1e-03) ? \ |
|
39 | + | find_exponent(x * T(1e+04), exponent - llint_t(4)) : |
|
40 | + | x < T(1e-01) ? \ |
|
41 | + | find_exponent(x * T(1e+02), exponent - llint_t(2)) : |
|
42 | + | x < T(1) ? \ |
|
38 | 43 | find_exponent(x * T(10), exponent - llint_t(1)) : |
|
44 | + | // > 10 |
|
39 | 45 | x > T(10) ? \ |
|
40 | 46 | find_exponent(x / T(10), exponent + llint_t(1)) : |
|
47 | + | x > T(1e+02) ? \ |
|
48 | + | find_exponent(x / T(1e+02), exponent + llint_t(2)) : |
|
49 | + | x > T(1e+04) ? \ |
|
50 | + | find_exponent(x / T(1e+04), exponent + llint_t(4)) : |
|
41 | 51 | // else |
|
42 | 52 | exponent ); |
|
43 | 53 | } |
18 | 18 | ## |
|
19 | 19 | ################################################################################*/ |
|
20 | 20 | ||
21 | - | // g++-mp-7 -O3 -Wall -std=c++11 -fconstexpr-depth=20 -fconstexpr-steps=1271242 -I./../include sqrt.cpp -o sqrt.test -framework Accelerate |
|
21 | + | // $CXX -O3 -Wall -std=c++11 -fconstexpr-depth=650 -fconstexpr-steps=1271242 -I./../include sqrt.cpp -o sqrt.test -framework Accelerate |
|
22 | 22 | ||
23 | 23 | #define TEST_PRINT_PRECISION_1 6 |
|
24 | 24 | #define TEST_PRINT_PRECISION_2 18 |
36 | 36 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 1.5L); |
|
37 | 37 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 2.0L); |
|
38 | 38 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 41.5L); |
|
39 | + | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 123456789.5L); |
|
40 | + | ||
39 | 41 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 0.0L); |
|
40 | 42 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, -1.0L); |
|
43 | + | ||
44 | + | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, 1e-500L); |
|
45 | + | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, std::numeric_limits<long double>::min()); |
|
46 | + | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, std::numeric_limits<double>::max()); |
|
41 | 47 | ||
42 | 48 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, -std::numeric_limits<long double>::infinity()); |
|
43 | 49 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, std::numeric_limits<long double>::infinity()); |
|
44 | 50 | GCEM_TEST_COMPARE_VALS(gcem::sqrt,std::sqrt, std::numeric_limits<long double>::quiet_NaN()); |
|
45 | 51 | ||
52 | + | // constexpr auto v = gcem::sqrt(std::numeric_limits<double>::max()); |
|
53 | + | ||
46 | 54 | // |
|
47 | 55 | ||
48 | 56 | print_final("sqrt"); |
Learn more Showing 1 files with coverage changes found.
tests/incomplete_beta.cpp
Files | Coverage |
---|---|
include/gcem_incl | -0.66% 77.22% |
tests | -6.77% 89.08% |
Project Totals (70 files) | 82.01% |
59e6b2a
e50356a
70b1267