diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2003-12-18 03:58:26 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2003-12-18 03:58:26 +0000 |
| commit | c1f024c3e11470a425cd6f8072c2b74a93b3e69d (patch) | |
| tree | dfab306847e8668fc1ea71fa7c0d7fbd28580121 | |
| parent | 2da72a511e59b665a77e707b82e17f851bed4d1b (diff) | |
| download | glibc-c1f024c3e11470a425cd6f8072c2b74a93b3e69d.tar.xz glibc-c1f024c3e11470a425cd6f8072c2b74a93b3e69d.zip | |
(fesetexceptflag): Set enable bits not raised exception bits.
| -rw-r--r-- | sysdeps/hppa/fpu/fsetexcptflg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/hppa/fpu/fsetexcptflg.c b/sysdeps/hppa/fpu/fsetexcptflg.c index 343ddad943..af35f5ae35 100644 --- a/sysdeps/hppa/fpu/fsetexcptflg.c +++ b/sysdeps/hppa/fpu/fsetexcptflg.c @@ -29,8 +29,7 @@ fesetexceptflag (const fexcept_t *flagp, int excepts) /* Get the current status word. */ __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - /* Install the new exception flags bits. */ - sw[0] &= ~(excepts & (FE_ALL_EXCEPT >> 27)); + /* Install new enable trap bits */ sw[0] |= (*flagp & excepts & FE_ALL_EXCEPT) << 27; /* Store the new status word. */ |
