[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9358220b 1/5: Test certain long double calcul
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9358220b 1/5: Test certain long double calculations even with x86_64 |
Date: |
Wed, 18 May 2022 15:54:20 -0400 (EDT) |
branch: master
commit 9358220b20d45864824aed1aca7fe7e8d8ef1989
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Test certain long double calculations even with x86_64
---
math_functions_test.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/math_functions_test.cpp b/math_functions_test.cpp
index ce05a782..db3c15ae 100644
--- a/math_functions_test.cpp
+++ b/math_functions_test.cpp
@@ -172,13 +172,14 @@ void sample_results()
;
#if defined LMI_X87
fenv_precision(fe_ldblprec);
+#endif // defined LMI_X87
std::cout
<< " " << i_upper_n_over_n_from_i_T <long double,365>()(0.01)
<< " long double precision, std::expm1 and std::log1p\n"
<< " " << i_upper_n_over_n_from_i_naive<long double,365>()(0.01)
<< " long double precision, std::pow\n"
;
-
+#if defined LMI_X87
fenv_initialize();
fenv_precision(fe_dblprec);
#endif // defined LMI_X87