*** empty log message ***
[fw/sdcc] / device / lib / _fslt.c
index 2e55f83afceffecdcf4226d29917e74ae771ac76..510d6352126cc2c87c47f9d84dec8dcfffbcb2b7 100644 (file)
@@ -32,11 +32,12 @@ char __fslt (float a1, float a2)
   fl1.f = a1;
   fl2.f = a2;
 
-  if (fl1.l<0 && fl2.l<0)
-    {
-      fl1.l ^= SIGNBIT;
-      fl2.l ^= SIGNBIT;
-    }
+  if (fl1.l<0 && fl2.l<0) {
+    if (fl2.l < fl1.l)
+      return (1);
+    return (0);
+  }
+
   if (fl1.l < fl2.l)
     return (1);
   return (0);