diff options
author | Andreas Jaeger <aj@suse.de> | 2002-09-10 11:27:29 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-09-10 11:27:29 +0000 |
commit | c652a2edcbf58cbf3f299143ea2bd5b84870db4b (patch) | |
tree | 6f4691b329edca4d8edee94fab3ef49a8b009cc6 /sysdeps/mips/fpu/fgetexcptflg.c | |
parent | 9f70d804bffbaf8db95a99ec238c6797d6ea65a0 (diff) | |
download | glibc-c652a2edcbf58cbf3f299143ea2bd5b84870db4b.tar.gz glibc-c652a2edcbf58cbf3f299143ea2bd5b84870db4b.tar.xz glibc-c652a2edcbf58cbf3f299143ea2bd5b84870db4b.zip |
Update
2002-09-10 Hartvig Ekner <hartvige@mips.com> * sysdeps/mips/memcpy.S: New file. * sysdeps/mips/memset.S: New file. * sysdeps/mips/fpu/e_sqrt.c: New file. * sysdeps/mips/fpu/e_sqrtf.c: New file. * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not functional before. Also removed all SHLIB_COMPAT stuff. * fpu/fegetenv.c: Likewise. * fpu/fesetenv.c:: Likewise. * fpu/feupdateenv.c: Likewise. * fpu/fgetexcptflg.c: Likewise. * fpu/fraiseexcpt.c: Likewise. * sysdeps/mips/fpu/fsetexcptflg.c: New file.
Diffstat (limited to 'sysdeps/mips/fpu/fgetexcptflg.c')
-rw-r--r-- | sysdeps/mips/fpu/fgetexcptflg.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sysdeps/mips/fpu/fgetexcptflg.c b/sysdeps/mips/fpu/fgetexcptflg.c index 4f802afb40..3412159816 100644 --- a/sysdeps/mips/fpu/fgetexcptflg.c +++ b/sysdeps/mips/fpu/fgetexcptflg.c @@ -20,27 +20,21 @@ #include <fenv.h> #include <fpu_control.h> -#include <shlib-compat.h> int -__fegetexceptflag (fexcept_t *flagp, int excepts) +fegetexceptflag (fexcept_t *flagp, int excepts) { fexcept_t temp; /* Get the current exceptions. */ _FPU_GETCW (temp); - /* It is important that the CAUSE bits are not saved here. If they - were, a call to fesetexceptflag() would generate an - exception. */ + /* We only save the relevant bits here. In particular, care has to be + taken with the CAUSE bits, as an inadvertent restore later on could + generate unexpected exceptions. */ *flagp = temp & excepts & FE_ALL_EXCEPT; /* Success. */ return 0; } -#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) -strong_alias (__fegetexceptflag, __old_fegetexceptflag) -compat_symbol (libm, __old_fegetexceptflag, fegetexceptflag, GLIBC_2_1); -#endif -versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2); |