From 5d20a24dbf59179f63b8741eba32ace896fe79d6 Mon Sep 17 00:00:00 2001 From: Christopher Kormanyos Date: Mon, 12 Feb 2024 09:38:28 +0100 Subject: [PATCH] Better function name an exclude test lines --- include/boost/math/tools/big_constant.hpp | 4 ++-- test/test_gamma_edge.cpp | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/boost/math/tools/big_constant.hpp b/include/boost/math/tools/big_constant.hpp index 8e149a42e2..eadf32a8b4 100644 --- a/include/boost/math/tools/big_constant.hpp +++ b/include/boost/math/tools/big_constant.hpp @@ -99,7 +99,7 @@ inline constexpr bool constant_might_fit_in_long_double() // LCOV_EXCL_START template -inline constexpr bool constant_is_too_huge_for_long_double() +inline constexpr bool constant_might_fit_in_largest_float() { return std::is_floating_point::value || ( @@ -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(0.0L, BOOST_STRINGIZE(xValMacro), std::integral_constant()>(), std::is_constructible()) +#define BOOST_MATH_HUGE_CONSTANT(T, xValMacro) boost::math::tools::make_big_value(0.0L, BOOST_STRINGIZE(xValMacro), std::integral_constant()>(), std::is_constructible()) }}} // namespaces diff --git a/test/test_gamma_edge.cpp b/test/test_gamma_edge.cpp index 4c369add4a..9ee037e7e8 100644 --- a/test/test_gamma_edge.cpp +++ b/test/test_gamma_edge.cpp @@ -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;