* m68k/fpgnulib.c (__fixdfsi): Catch values < 0.5 in magnitude.

From-SVN: r9157
This commit is contained in:
Doug Evans 1995-03-10 18:46:44 +00:00
parent 0323c17857
commit 63a33c9463

View 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);