diff options
author | Paul A. Clarke <pc@us.ibm.com> | 2019-09-19 09:13:14 -0500 |
---|---|---|
committer | Paul A. Clarke <pc@us.ibm.com> | 2019-09-27 08:48:56 -0500 |
commit | e3d85df50b083c9ba68a40f5d45b201cbec4e68b (patch) | |
tree | f56af21b923f1dcbd3a04137808c01643a2c9b68 /sysdeps/powerpc/fpu/fesetmode.c | |
parent | 9a44050e745685c1e703b4402ef3df855ef6de80 (diff) | |
download | glibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.tar.gz glibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.tar.xz glibc-e3d85df50b083c9ba68a40f5d45b201cbec4e68b.zip |
[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/fesetmode.c')
-rw-r--r-- | sysdeps/powerpc/fpu/fesetmode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/powerpc/fpu/fesetmode.c b/sysdeps/powerpc/fpu/fesetmode.c index 92fc15c46d..90d86a969f 100644 --- a/sysdeps/powerpc/fpu/fesetmode.c +++ b/sysdeps/powerpc/fpu/fesetmode.c @@ -33,11 +33,8 @@ fesetmode (const femode_t *modep) if (old.l == new.l) return 0; - if ((old.l & FPSCR_ENABLES_MASK) == 0 && (new.l & FPSCR_ENABLES_MASK) != 0) - (void) __fe_nomask_env_priv (); - - if ((old.l & FPSCR_ENABLES_MASK) != 0 && (new.l & FPSCR_ENABLES_MASK) == 0) - (void) __fe_mask_env (); + __TEST_AND_EXIT_NON_STOP (old.l, new.l); + __TEST_AND_ENTER_NON_STOP (old.l, new.l); fesetenv_mode (new.fenv); return 0; |