diff mbox series

[4/4] Use libc_fe* macros in k_standardl.c.

Message ID 20200325100628.883397-4-stli@linux.ibm.com
State New
Headers show
Series [1/4] Use libc_fe* macros in ldbl-128/s_nearbyintl.c. | expand

Commit Message

develop--- via Libc-alpha March 25, 2020, 10:06 a.m. UTC
The calls to feholdexcept and fesetenv are replaced
by the libc_fe* macros.
---
 sysdeps/ieee754/k_standardl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/sysdeps/ieee754/k_standardl.c b/sysdeps/ieee754/k_standardl.c
index a93d53cde9..286741879d 100644
--- a/sysdeps/ieee754/k_standardl.c
+++ b/sysdeps/ieee754/k_standardl.c
@@ -34,6 +34,7 @@ 
 #include <math-barriers.h>
 #include <math-svid-compat.h>
 #include <fenv.h>
+#include <fenv_private.h>
 #include <float.h>
 #include <errno.h>
 
@@ -53,12 +54,12 @@  __kernel_standard_l (long double x, long double y, int type)
   struct exception exc;
   fenv_t env;
 
-  feholdexcept (&env);
+  libc_feholdexceptl (&env);
   dx = x;
   dy = y;
   math_force_eval (dx);
   math_force_eval (dy);
-  fesetenv (&env);
+  libc_fesetenvl (&env);
 
   switch (type)
     {