aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/mips/fpu_control.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4146d99..d4dc8a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-28 Maciej W. Rozycki <macro@imgtec.com>
+
+ * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
+ (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
+
2015-11-27 Carlos O'Donell <carlos@redhat.com>
[BZ #14259]
diff --git a/sysdeps/mips/fpu_control.h b/sysdeps/mips/fpu_control.h
index cfb4e6a..3347c28 100644
--- a/sysdeps/mips/fpu_control.h
+++ b/sysdeps/mips/fpu_control.h
@@ -93,20 +93,20 @@ extern fpu_control_t __fpu_control;
/* Mask for rounding control. */
#define _FPU_RC_MASK 0x3
-#define _FPU_RESERVED 0xfe840000 /* Reserved bits in cw, incl NAN2008. */
+#define _FPU_RESERVED 0xfe8c0000 /* Reserved bits in cw, incl ABS/NAN2008. */
/* The fdlibm code requires strict IEEE double precision arithmetic,
and no interrupts for exceptions, rounding to nearest. */
#ifdef __mips_nan2008
-# define _FPU_DEFAULT 0x00040000
+# define _FPU_DEFAULT 0x000C0000
#else
# define _FPU_DEFAULT 0x00000000
#endif
/* IEEE: same as above, but exceptions. */
#ifdef __mips_nan2008
-# define _FPU_IEEE 0x00040F80
+# define _FPU_IEEE 0x000C0F80
#else
# define _FPU_IEEE 0x00000F80
#endif