projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0323c17
)
* m68k/fpgnulib.c (__fixdfsi): Catch values < 0.5 in magnitude.
author
Doug Evans
<dje@gnu.org>
Fri, 10 Mar 1995 18:46:44 +0000
(18:46 +0000)
committer
Doug Evans
<dje@gnu.org>
Fri, 10 Mar 1995 18:46:44 +0000
(18:46 +0000)
From-SVN: r9157
gcc/config/m68k/fpgnulib.c
patch
|
blob
|
history
diff --git
a/gcc/config/m68k/fpgnulib.c
b/gcc/config/m68k/fpgnulib.c
index bd54058e77e5aa42c264a2899e661d4e12fa89bd..0559b628c87a473ad10053b17fad8d6d3b222ae4 100644
(file)
--- a/
gcc/config/m68k/fpgnulib.c
+++ b/
gcc/config/m68k/fpgnulib.c
@@
-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);