summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-08 09:14:03 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-08 09:14:03 +0000
commit886a4c107dcbbb2b7e3f227d4635b0ab46ddc040 (patch)
tree87981da889da89ee00f67c4780e11cf8030adc9f
parentd0af1663a26c7e3c5a97cd407698e1417ba77225 (diff)
downloadppe42-gcc-886a4c107dcbbb2b7e3f227d4635b0ab46ddc040.tar.gz
ppe42-gcc-886a4c107dcbbb2b7e3f227d4635b0ab46ddc040.zip
* fp-bit.c (_fpmul_parts): Use USItype variables as inputs
for multiplies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38130 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/fp-bit.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 66c9723fa3d..a66a33e29a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 8 08:23:29 2000 J"orn Rennecke <amylaar@redhat.com>
+
+ * fp-bit.c (_fpmul_parts): Use USItype variables as inputs
+ for multiplies.
+
2000-12-07 Mike Stump <mrs@wrs.com>
* Makefile.in (distclean): Remove alloca.c hashtab.c.
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c
index 5f88518982f..4269970dbc7 100644
--- a/gcc/config/fp-bit.c
+++ b/gcc/config/fp-bit.c
@@ -665,14 +665,14 @@ _fpmul_parts ( fp_number_type * a,
#else
/* Doing a 64*64 to 128 */
{
- UDItype nl = a->fraction.ll & 0xffffffff;
- UDItype nh = a->fraction.ll >> 32;
- UDItype ml = b->fraction.ll & 0xffffffff;
- UDItype mh = b->fraction.ll >>32;
- UDItype pp_ll = ml * nl;
- UDItype pp_hl = mh * nl;
- UDItype pp_lh = ml * nh;
- UDItype pp_hh = mh * nh;
+ USItype nl = a->fraction.ll & 0xffffffff;
+ USItype nh = a->fraction.ll >> 32;
+ USItype ml = b->fraction.ll & 0xffffffff;
+ USItype mh = b->fraction.ll >>32;
+ UDItype pp_ll = (UDItype) ml * nl;
+ UDItype pp_hl = (UDItype) mh * nl;
+ UDItype pp_lh = (UDItype) ml * nh;
+ UDItype pp_hh = (UDItype) mh * nh;
UDItype res2 = 0;
UDItype res0 = 0;
UDItype ps_hh__ = pp_hl + pp_lh;
OpenPOWER on IntegriCloud