]> gcc.gnu.org Git - gcc.git/commitdiff
* m68k/fpgnulib.c (__fixdfsi): Catch values < 0.5 in magnitude.
authorDoug Evans <dje@gnu.org>
Fri, 10 Mar 1995 18:46:44 +0000 (18:46 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 10 Mar 1995 18:46:44 +0000 (18:46 +0000)
From-SVN: r9157

gcc/config/m68k/fpgnulib.c

index bd54058e77e5aa42c264a2899e661d4e12fa89bd..0559b628c87a473ad10053b17fad8d6d3b222ae4 100644 (file)
@@ -243,8 +243,11 @@ __fixdfsi (double a1)
       return SIGND (dl1) ? 0x80000000 : 0x7fffffff;
     }
 
-  /* shift down until exp = 0 or l = 0 */
-  if (exp < 0 && exp > -32 && l) 
+  if (exp <= -32)
+    return 0;
+
+  /* shift down until exp = 0 */
+  if (exp < 0)
     l >>= -exp;
 
   return (SIGND (dl1) ? -l : l);
This page took 0.059421 seconds and 5 git commands to generate.