summaryrefslogtreecommitdiff
path: root/ports/sysdeps/mips/fpu/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/mips/fpu/fesetround.c')
-rw-r--r--ports/sysdeps/mips/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/sysdeps/mips/fpu/fesetround.c b/ports/sysdeps/mips/fpu/fesetround.c
index 7c25f43b79..c6fdd6622f 100644
--- a/ports/sysdeps/mips/fpu/fesetround.c
+++ b/ports/sysdeps/mips/fpu/fesetround.c
@@ -25,7 +25,7 @@ fesetround (int round)
{
fpu_control_t cw;
- if ((round & ~0x3) != 0)
+ if ((round & ~_FPU_RC_MASK) != 0)
/* ROUND is no valid rounding mode. */
return 1;
@@ -33,7 +33,7 @@ fesetround (int round)
_FPU_GETCW (cw);
/* Set rounding bits. */
- cw &= ~0x3;
+ cw &= ~_FPU_RC_MASK;
cw |= round;
/* Set new state. */
_FPU_SETCW (cw);