about summary refs log tree commit diff
path: root/ports/sysdeps/mips/fpu/fegetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/mips/fpu/fegetround.c')
-rw-r--r--ports/sysdeps/mips/fpu/fegetround.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/sysdeps/mips/fpu/fegetround.c b/ports/sysdeps/mips/fpu/fegetround.c
index 61217a7c08..17cd3e994a 100644
--- a/ports/sysdeps/mips/fpu/fegetround.c
+++ b/ports/sysdeps/mips/fpu/fegetround.c
@@ -28,5 +28,5 @@ fegetround (void)
   /* Get control word.  */
   _FPU_GETCW (cw);
 
-  return cw & 0x3;
+  return cw & _FPU_RC_MASK;
 }