Skip to content

Commit

Permalink
Better function name an exclude test lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Feb 12, 2024
1 parent 40a7d85 commit 5d20a24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions include/boost/math/tools/big_constant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ inline constexpr bool constant_might_fit_in_long_double()

// LCOV_EXCL_START
template <class T>
inline constexpr bool constant_is_too_huge_for_long_double()
inline constexpr bool constant_might_fit_in_largest_float()
{
return std::is_floating_point<T>::value
|| (
Expand All @@ -110,7 +110,7 @@ inline constexpr bool constant_is_too_huge_for_long_double()
}
// LCOV_EXCL_STOP

#define BOOST_MATH_HUGE_CONSTANT(T, xValMacro) boost::math::tools::make_big_value<T>(0.0L, BOOST_STRINGIZE(xValMacro), std::integral_constant<bool, boost::math::tools::constant_is_too_huge_for_long_double<T>()>(), std::is_constructible<T, const char*>())
#define BOOST_MATH_HUGE_CONSTANT(T, xValMacro) boost::math::tools::make_big_value<T>(0.0L, BOOST_STRINGIZE(xValMacro), std::integral_constant<bool, boost::math::tools::constant_might_fit_in_largest_float<T>()>(), std::is_constructible<T, const char*>())

}}} // namespaces

Expand Down
20 changes: 10 additions & 10 deletions test/test_gamma_edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ namespace local

const local_data_array_type ctrl_data =
{{
BOOST_MATH_HUGE_CONSTANT(local_float_type, 9.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906404199270358122304076394840169355222697867950624167125421902178604121309579597843800360126781E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 4.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906503104869890919559615934405319418693491786302696988534466221756972734972784545720974832491521E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 3.3333333333333333333333333333333333333333333333333333333333333333333333333333333333275611766843180047272682124325093090229117399739340973452756609844846560655566866239935343802757050148488807303802815497619037988103143276843874668674681969322826931482456693779E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 2.4999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906700916068956514070695013535619545635079623006842631352554860913709962299194441475323232733555E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906799821668489311326234553100769609105873541358915452761599180492078575962399389352497160610849E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.6666666666666666666666666666666666666666666666666666666666666666666666666666666666608945100176513380606015457658426423562450733072674306786089943178179893988900199573565393934688775248440759332586339243334126377654940837310166737113856292271003896337573658994E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.4285714285714285714285714285714285714285714285714285714285714285714285714285714285656564147795560999653634505277474042610069780691721925833708990797227513036519247192711918581840620123027917945355450333175663777346809865402105363101517574523570821130186163706E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.2499999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532907096538467087703092853171796219799518255296415133916988732139227184416952014232984017855267840E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.1111111111111111111111111111111111111111111111111111111111111111111111111111111111053389544620957825050459902102870868006895177517118751230534387622624338433344644018306555177731611459503822472480974100160325878317849508887569916664141726330291972302168272984E+83),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 9.9999999999999999999999999999999999999999999999999999999999999999999999999999999999422784335098467139393487909917597568957840664060076401194232765115132273222335329072943496661532976039322509265199264598431331192795598068207783839216442784241287383640775600912E+82),
BOOST_MATH_HUGE_CONSTANT(local_float_type, 9.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906404199270358122304076394840169355222697867950624167125421902178604121309579597843800360126781E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 4.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906503104869890919559615934405319418693491786302696988534466221756972734972784545720974832491521E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 3.3333333333333333333333333333333333333333333333333333333333333333333333333333333333275611766843180047272682124325093090229117399739340973452756609844846560655566866239935343802757050148488807303802815497619037988103143276843874668674681969322826931482456693779E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 2.4999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906700916068956514070695013535619545635079623006842631352554860913709962299194441475323232733555E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.9999999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532906799821668489311326234553100769609105873541358915452761599180492078575962399389352497160610849E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.6666666666666666666666666666666666666666666666666666666666666666666666666666666666608945100176513380606015457658426423562450733072674306786089943178179893988900199573565393934688775248440759332586339243334126377654940837310166737113856292271003896337573658994E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.4285714285714285714285714285714285714285714285714285714285714285714285714285714285656564147795560999653634505277474042610069780691721925833708990797227513036519247192711918581840620123027917945355450333175663777346809865402105363101517574523570821130186163706E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.2499999999999999999999999999999999999999999999999999999999999999999999999999999999942278433509846713939348790991759756895784066406007640119423276511513227322233532907096538467087703092853171796219799518255296415133916988732139227184416952014232984017855267840E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 1.1111111111111111111111111111111111111111111111111111111111111111111111111111111111053389544620957825050459902102870868006895177517118751230534387622624338433344644018306555177731611459503822472480974100160325878317849508887569916664141726330291972302168272984E+83), // LCOV_EXCL_LINE
BOOST_MATH_HUGE_CONSTANT(local_float_type, 9.9999999999999999999999999999999999999999999999999999999999999999999999999999999999422784335098467139393487909917597568957840664060076401194232765115132273222335329072943496661532976039322509265199264598431331192795598068207783839216442784241287383640775600912E+82), // LCOV_EXCL_LINE
}};

unsigned index = 1U;
Expand Down

0 comments on commit 5d20a24

Please sign in to comment.