ruby: message buffer: removes some unecessary functions.
[gem5.git] / src / base / fenv.c
index 269913a601d3ee18c9b51290e424d223a77c0629..ed06e220da8268d429468d17410a910890ccde00 100644 (file)
@@ -29,8 +29,8 @@
  */
 
 #include <assert.h>
-#include <stdlib.h>
 #include <fenv.h>
+#include <stdlib.h>
 
 void m5_fesetround(int rm);
 int m5_fegetround();
@@ -39,7 +39,7 @@ static const int m5_round_ops[] =  {FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE
 
 void m5_fesetround(int rm)
 {
-    assert(rm > 0 && rm < 4);
+    assert(rm >= 0 && rm < 4);
     fesetround(m5_round_ops[rm]);
 }