aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/fpu/feenablxcpt.c
diff options
context:
space:
mode:
authorPaul A. Clarke <pc@us.ibm.com>2019-09-19 09:13:14 -0500
committerPaul A. Clarke <pc@us.ibm.com>2019-09-27 08:48:56 -0500
commite3d85df50b083c9ba68a40f5d45b201cbec4e68b (patch)
treef56af21b923f1dcbd3a04137808c01643a2c9b68 /sysdeps/powerpc/fpu/feenablxcpt.c
parent9a44050e745685c1e703b4402ef3df855ef6de80 (diff)
downloadglibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.zip
glibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.tar.gz
glibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.tar.bz2
[powerpc] fenv_private.h clean up
fenv_private.h includes unused functions, magic macro constants, and some replicated common code fragments. Remove unused functions, replace magic constants with constants from fenv_libc.h, and refactor replicated code. Suggested-by: Paul E. Murphy <murphyp@linux.ibm.com> Reviewed-By: Paul E Murphy <murphyp@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/fpu/feenablxcpt.c')
-rw-r--r--sysdeps/powerpc/fpu/feenablxcpt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/powerpc/fpu/feenablxcpt.c b/sysdeps/powerpc/fpu/feenablxcpt.c
index fc96b24..cf670b8 100644
--- a/sysdeps/powerpc/fpu/feenablxcpt.c
+++ b/sysdeps/powerpc/fpu/feenablxcpt.c
@@ -43,8 +43,7 @@ feenableexcept (int excepts)
if (fe.l != curr.l)
fesetenv_mode (fe.fenv);
- if (new != 0 && result == 0)
- (void) __fe_nomask_env_priv ();
+ __TEST_AND_EXIT_NON_STOP (0ULL, fe.l);
return result;
}