kthohr / gcem

Compare 70b1267 ... +1 ... 59e6b2a

Coverage Reach
include/gcem_incl/incomplete_gamma.hpp include/gcem_incl/incomplete_gamma_inv.hpp include/gcem_incl/log.hpp include/gcem_incl/sqrt.hpp include/gcem_incl/pow_integral.hpp include/gcem_incl/lgamma.hpp include/gcem_incl/exp.hpp include/gcem_incl/find_exponent.hpp include/gcem_incl/trunc.hpp include/gcem_incl/fmod.hpp include/gcem_incl/floor.hpp include/gcem_incl/pow.hpp include/gcem_incl/mantissa.hpp include/gcem_incl/is_inf.hpp include/gcem_incl/log10.hpp include/gcem_incl/log2.hpp include/gcem_incl/find_whole.hpp include/gcem_incl/find_fraction.hpp include/gcem_incl/min.hpp include/gcem_incl/is_even.hpp include/gcem_incl/is_nan.hpp include/gcem_incl/sgn.hpp include/gcem_incl/is_odd.hpp include/gcem_incl/abs.hpp include/gcem_incl/max.hpp include/gcem_incl/is_finite.hpp tests/gcem_tests.hpp tests/incomplete_beta.cpp tests/is_odd.cpp tests/inv_sqrt.cpp tests/factorial.cpp tests/abs.cpp tests/fmod.cpp tests/pow.cpp tests/incomplete_gamma.cpp tests/lgamma.cpp tests/cos.cpp tests/sqrt.cpp tests/log1p.cpp tests/atan.cpp tests/acosh.cpp tests/asinh.cpp tests/log_binomial_coef.cpp tests/sin.cpp tests/log.cpp tests/atan2.cpp tests/cosh.cpp tests/rounding.cpp tests/lcm.cpp tests/copysign.cpp tests/tan.cpp tests/asin.cpp tests/expm1.cpp tests/tanh.cpp tests/tgamma.cpp tests/erf_inv.cpp tests/signbit.cpp tests/exp.cpp tests/log2.cpp tests/gcd.cpp tests/incomplete_gamma_inv.cpp tests/log10.cpp tests/incomplete_beta_inv.cpp tests/sinh.cpp tests/atanh.cpp tests/erf.cpp tests/hypot.cpp tests/binomial_coef.cpp tests/acos.cpp tests/other.cpp

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

Learn more about Codecov Flags here.


@@ -36,10 +36,14 @@
Loading
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,11 +50,11 @@
Loading
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,10 +34,20 @@
Loading
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,7 +18,7 @@
Loading
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,13 +36,21 @@
Loading
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.

Changes in tests/incomplete_beta.cpp
-4
+16
Loading file...
Files Coverage
include/gcem_incl -0.66% 77.22%
tests -6.77% 89.08%
Project Totals (70 files) 82.01%
Loading