changeset 32637:f294ba9b6122 stable

mappers.cc: Remove special handling for MinGW (bug #52627). * mappers.cc (acos, acosh, asin, asinh): The accuracy issues with the math library in MinGW have been resolved for these functions. Remove special handling for that platform.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 22 Dec 2023 20:54:26 +0100
parents 2e484f9f1f18
children ebaa3582e140
files libinterp/corefcn/mappers.cc
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc	Fri Dec 22 12:08:17 2023 -0500
+++ b/libinterp/corefcn/mappers.cc	Fri Dec 22 20:54:26 2023 +0100
@@ -130,14 +130,14 @@
 
 ## Test large magnitude arguments (bug #45507)
 ## Test fails with older versions of libm, solution is to upgrade.
-%!testif ; ! __have_feature__ ("LLVM_LIBCXX") && ! ispc ()  <*45507>
+%!testif ; ! __have_feature__ ("LLVM_LIBCXX")  <*45507>
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, pi, pi/2, pi/2];
 %! assert (real (acos (x)), v);
 
-%!testif ; __have_feature__ ("LLVM_LIBCXX") || ispc ()  <52627>
-%! ## Same test code as above, but intended for test statistics with libc++ or
-%! ## on Windows.  Their trig/hyperbolic functions have huge tolerances.
+%!testif ; __have_feature__ ("LLVM_LIBCXX")  <52627>
+%! ## Same test code as above, but intended for test statistics with libc++.
+%! ## Their trig/hyperbolic functions have huge tolerances.
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, pi, pi/2, pi/2];
 %! assert (real (acos (x)), v);
@@ -202,14 +202,14 @@
 
 ## Test large magnitude arguments (bug #45507)
 ## Test fails with older versions of libm, solution is to upgrade.
-%!testif ; ! __have_feature__ ("LLVM_LIBCXX") && ! ispc ()  <*45507>
+%!testif ; ! __have_feature__ ("LLVM_LIBCXX")  <*45507>
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, pi, pi/2, -pi/2];
 %! assert (imag (acosh (x)), v);
 
-%!testif ; __have_feature__ ("LLVM_LIBCXX") || ispc ()  <52627>
-%! ## Same test code as above, but intended for test statistics with libc++ or
-%! ## on Windows.  Their trig/hyperbolic functions have huge tolerances.
+%!testif ; __have_feature__ ("LLVM_LIBCXX")  <52627>
+%! ## Same test code as above, but intended for test statistics with libc++.
+%! ## Their trig/hyperbolic functions have huge tolerances.
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, pi, pi/2, -pi/2];
 %! assert (imag (acosh (x)), v);
@@ -336,14 +336,14 @@
 
 ## Test large magnitude arguments (bug #45507)
 ## Test fails with older versions of libm, solution is to upgrade.
-%!testif ; ! __have_feature__ ("LLVM_LIBCXX") && ! ispc ()  <*45507>
+%!testif ; ! __have_feature__ ("LLVM_LIBCXX")  <*45507>
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [pi/2, -pi/2, 0, -0];
 %! assert (real (asin (x)), v);
 
-%!testif ; __have_feature__ ("LLVM_LIBCXX") || ispc ()  <52627>
-%! ## Same test code as above, but intended for test statistics with libc++ or
-%! ## on Windows.  Their trig/hyperbolic functions have huge tolerances.
+%!testif ; __have_feature__ ("LLVM_LIBCXX")  <52627>
+%! ## Same test code as above, but intended for test statistics with libc++.
+%! ## Their trig/hyperbolic functions have huge tolerances.
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [pi/2, -pi/2, 0, -0];
 %! assert (real (asin (x)), v);
@@ -378,14 +378,14 @@
 
 ## Test large magnitude arguments (bug #45507)
 ## Test fails with older versions of libm, solution is to upgrade.
-%!testif ; ! __have_feature__ ("LLVM_LIBCXX") && ! ispc ()  <*45507>
+%!testif ; ! __have_feature__ ("LLVM_LIBCXX")  <*45507>
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, 0, pi/2, -pi/2];
 %! assert (imag (asinh (x)), v);
 
-%!testif ; __have_feature__ ("LLVM_LIBCXX") || ispc ()  <52627>
-%! ## Same test code as above, but intended for test statistics with libc++ or
-%! ## on Windows.  Their trig/hyperbolic functions have huge tolerances.
+%!testif ; __have_feature__ ("LLVM_LIBCXX")  <52627>
+%! ## Same test code as above, but intended for test statistics with libc++.
+%! ## Their trig/hyperbolic functions have huge tolerances.
 %! x = [1, -1, i, -i] .* 1e150;
 %! v = [0, 0, pi/2, -pi/2];
 %! assert (imag (asinh (x)), v);