about summary refs log tree commit diff
path: root/sysdeps/arm/fpu_control.h
diff options
context:
space:
mode:
authorWilco <wdijkstr@arm.com>2014-06-24 15:02:51 +0000
committerWilco <wdijkstr@arm.com>2014-06-24 15:02:51 +0000
commitb5570d92d6bb6ba9c25ac6ed77ba170dd7f4acd3 (patch)
tree002d08b3bfb4c12e49b736b68a3646591b6d498f /sysdeps/arm/fpu_control.h
parent947bdca24d1ada7e83cf266213dba02c99d035a5 (diff)
downloadglibc-b5570d92d6bb6ba9c25ac6ed77ba170dd7f4acd3.tar.gz
glibc-b5570d92d6bb6ba9c25ac6ed77ba170dd7f4acd3.tar.xz
glibc-b5570d92d6bb6ba9c25ac6ed77ba170dd7f4acd3.zip
Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO.
2014-06-24  Wilco  <wdijkstr@arm.com>

	* sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
	* sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
	(libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
	(libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
	(libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
	* sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
	* sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
	Use _FPU_MASK_RM.
Diffstat (limited to 'sysdeps/arm/fpu_control.h')
-rw-r--r--sysdeps/arm/fpu_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/arm/fpu_control.h b/sysdeps/arm/fpu_control.h
index 0377697215..dbce935402 100644
--- a/sysdeps/arm/fpu_control.h
+++ b/sysdeps/arm/fpu_control.h
@@ -37,8 +37,8 @@ extern fpu_control_t __fpu_control;
 #define _FPU_MASK_UM	0x00000800	/* underflow */
 #define _FPU_MASK_PM	0x00001000	/* inexact */
 
-#define _FPU_MASK_NZCV	0xF0000000	/* NZCV flags */
-
+#define _FPU_MASK_NZCV	0xf0000000	/* NZCV flags */
+#define _FPU_MASK_RM	0x00c00000	/* rounding mode */
 #define _FPU_MASK_EXCEPT 0x00001f1f	/* all exception flags */
 
 /* Some bits in the FPSCR are not yet defined.  They must be preserved when