File tree 2 files changed +8
-0
lines changed
include/boost/decimal/detail/cmath 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11
11
#include < boost/decimal/cstdlib.hpp>
12
12
#include < limits>
13
13
14
+ #if !defined(BOOST_DECIMAL_DISABLE_CLIB)
15
+
14
16
namespace boost {
15
17
namespace decimal {
16
18
@@ -50,4 +52,6 @@ constexpr auto nand128(const char* arg) noexcept -> decimal128
50
52
} // namespace decimal
51
53
} // namespace boost
52
54
55
+ #endif // #if !defined(BOOST_DECIMAL_DISABLE_CLIB)
56
+
53
57
#endif // BOOST_DECIMAL_DETAIL_CMATH_NAN_HPP
Original file line number Diff line number Diff line change @@ -1340,13 +1340,15 @@ void test_exp2()
1340
1340
BOOST_TEST_EQ (exp2 (-std::numeric_limits<T>::infinity ()), T (0 * dist (rng)));
1341
1341
}
1342
1342
1343
+ #if !defined(BOOST_DECIMAL_DISABLE_CLIB)
1343
1344
template <typename T>
1344
1345
void test_nan ()
1345
1346
{
1346
1347
BOOST_TEST (!isnan (nan <T>(" 1" ) & std::numeric_limits<T>::quiet_NaN ()));
1347
1348
BOOST_TEST (!isnan (nan <T>(" 2" ) & std::numeric_limits<T>::quiet_NaN ()));
1348
1349
BOOST_TEST (!isnan (nan <T>(" -1" ) & std::numeric_limits<T>::quiet_NaN ()));
1349
1350
}
1351
+ #endif
1350
1352
1351
1353
int main ()
1352
1354
{
@@ -1456,9 +1458,11 @@ int main()
1456
1458
test_exp2<decimal32>();
1457
1459
test_exp2<decimal64>();
1458
1460
1461
+ #if !defined(BOOST_DECIMAL_DISABLE_CLIB)
1459
1462
test_nan<decimal32>();
1460
1463
test_nan<decimal64>();
1461
1464
test_nan<decimal128>();
1465
+ #endif
1462
1466
1463
1467
return boost::report_errors ();
1464
1468
}
You can’t perform that action at this time.
0 commit comments