Define FP_TRAPPING_EXCEPTIONS for MIPS.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 30 May 2012 21:35:11 +0000 (21:35 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 30 May 2012 21:35:11 +0000 (21:35 +0000)
ChangeLog.mips
sysdeps/mips/mips64/soft-fp/sfp-machine.h

index 7d07aa6..a63f051 100644 (file)
@@ -1,5 +1,8 @@
 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/mips/mips64/soft-fp/sfp-machine.h
+       (FP_TRAPPING_EXCEPTIONS): Define.
+
        * sysdeps/unix/sysv/linux/mips/Makefile (syscall-list-variants):
        Rename to abi-variants.
        (syscall-list-includes): Rename to abi-includes.
index 9c1ee3b..c81067d 100644 (file)
@@ -69,6 +69,7 @@ do {                                          \
   if (__builtin_expect (_fex, 0))              \
     _FPU_SETCW (_fcw | _fex | (_fex << 10));   \
 } while (0)
+#define FP_TRAPPING_EXCEPTIONS ((_fcw >> 5) & 0x7c)
 #else
 #define FP_INIT_ROUNDMODE      _fcw = FP_RND_NEAREST
 #endif