about summary refs log tree commit diff
path: root/sysdeps/mips/fpu/roundf_to_integer.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mips/fpu/roundf_to_integer.h')
-rw-r--r--sysdeps/mips/fpu/roundf_to_integer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mips/fpu/roundf_to_integer.h b/sysdeps/mips/fpu/roundf_to_integer.h
index f1a7fefda9..cd30c8de94 100644
--- a/sysdeps/mips/fpu/roundf_to_integer.h
+++ b/sysdeps/mips/fpu/roundf_to_integer.h
@@ -28,6 +28,7 @@ enum round_mode
   CEIL,
   FLOOR,
   TRUNC,
+  ROUNDEVEN,
 };
 
 static inline float
@@ -51,6 +52,8 @@ round_to_integer_float (enum round_mode mode, float x)
   case TRUNC:
     asm ("trunc.l.s %0, %0" : "+f" (r));
     break;
+  case ROUNDEVEN:
+    asm ("round.l.s %0, %0" : "+f" (r));
     break;
   }
   libc_fesetenvf (&fe);