about summary refs log tree commit diff
path: root/ports/sysdeps/aarch64/fpu
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>2014-01-07 16:16:35 +0000
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>2014-01-07 16:17:52 +0000
commit196f456b842ee96e1bf1e5ae6ed21ba427dee3f3 (patch)
treefb882be8637c0d895494c60e71d6c1c3025847e0 /ports/sysdeps/aarch64/fpu
parent07d55c6c3777499bdc0228ef820d5b647f2af71c (diff)
downloadglibc-196f456b842ee96e1bf1e5ae6ed21ba427dee3f3.tar.gz
glibc-196f456b842ee96e1bf1e5ae6ed21ba427dee3f3.tar.xz
glibc-196f456b842ee96e1bf1e5ae6ed21ba427dee3f3.zip
[AArch64] Fix FP_ROUNDMODE.
[BZ #16387] Fix FP_ROUNDMODE to extract the correct bits from FPCR.
Diffstat (limited to 'ports/sysdeps/aarch64/fpu')
-rw-r--r--ports/sysdeps/aarch64/fpu/fpu_control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/sysdeps/aarch64/fpu/fpu_control.h b/ports/sysdeps/aarch64/fpu/fpu_control.h
index 79ab5fb95d..6a265e89b5 100644
--- a/ports/sysdeps/aarch64/fpu/fpu_control.h
+++ b/ports/sysdeps/aarch64/fpu/fpu_control.h
@@ -59,6 +59,9 @@
                    E E D D
                        E E
  */
+
+#define _FPU_FPCR_RM_MASK  0xc00000
+
 #define _FPU_FPCR_MASK_IXE 0x1000
 #define _FPU_FPCR_MASK_UFE 0x0800
 #define _FPU_FPCR_MASK_OFE 0x0400