aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/aarch64/soft-fp/sfp-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/aarch64/soft-fp/sfp-machine.h')
-rw-r--r--ports/sysdeps/aarch64/soft-fp/sfp-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/sysdeps/aarch64/soft-fp/sfp-machine.h b/ports/sysdeps/aarch64/soft-fp/sfp-machine.h
index d21d00a934..9bb94e5ccc 100644
--- a/ports/sysdeps/aarch64/soft-fp/sfp-machine.h
+++ b/ports/sysdeps/aarch64/soft-fp/sfp-machine.h
@@ -47,7 +47,7 @@
#define _FP_DECL_EX fpu_control_t _fcw
-#define FP_ROUNDMODE (_fcw & 0x3)
+#define FP_ROUNDMODE (_fcw & _FPU_FPCR_RM_MASK)
#define FP_RND_NEAREST FE_TONEAREST
#define FP_RND_ZERO FE_TOWARDZERO