From c652a2edcbf58cbf3f299143ea2bd5b84870db4b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 10 Sep 2002 11:27:29 +0000 Subject: Update 2002-09-10 Hartvig Ekner * 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. --- sysdeps/mips/fpu/fgetexcptflg.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'sysdeps/mips/fpu/fgetexcptflg.c') 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 #include -#include 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); -- cgit 1.4.1