diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-05-10 06:44:30 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-05-10 06:44:30 +0000 |
commit | 96bad006f14ac46ca7a59dc4c5ba5ed9ef7a1560 (patch) | |
tree | 9e209798f73466fb9622bf0a9b14f4fabf00eb29 /sysdeps/s390/fpu/feholdexcpt.c | |
parent | 2a0a747e57ec96bab9d4a6b7c0b32df82a41316e (diff) |
Updated to fedora-glibc-20070510T0634cvs/fedora-glibc-2_5_90-23
Diffstat (limited to 'sysdeps/s390/fpu/feholdexcpt.c')
-rw-r--r-- | sysdeps/s390/fpu/feholdexcpt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/s390/fpu/feholdexcpt.c b/sysdeps/s390/fpu/feholdexcpt.c index dee44dcee3..5631560bcd 100644 --- a/sysdeps/s390/fpu/feholdexcpt.c +++ b/sysdeps/s390/fpu/feholdexcpt.c @@ -1,5 +1,5 @@ /* Store current floating-point environment and clear exceptions. - Copyright (C) 2000, 2005 Free Software Foundation, Inc. + Copyright (C) 2000, 2005, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com). @@ -23,13 +23,14 @@ int feholdexcept (fenv_t *envp) { + fexcept_t fpc; /* Store the environment. */ fegetenv (envp); /* Clear the current sticky bits as more than one exception may be generated. */ - envp->fpc &= ~(FPC_FLAGS_MASK | FPC_DXC_MASK); + fpc = envp->fpc & ~(FPC_FLAGS_MASK | FPC_DXC_MASK); /* Hold from generating fpu exceptions temporarily. */ - _FPU_SETCW ((envp->fpc & ~(FE_ALL_EXCEPT << FPC_EXCEPTION_MASK_SHIFT))); + _FPU_SETCW ((fpc & ~(FE_ALL_EXCEPT << FPC_EXCEPTION_MASK_SHIFT))); return 0; } libm_hidden_def (feholdexcept) |