Commit c402b6bf by Richard Henderson Committed by Richard Henderson

real.c (sticky_rshift_significand): Collect sticky as unsigned long, not bool.

        * real.c (sticky_rshift_significand): Collect sticky as
        unsigned long, not bool.

From-SVN: r57284
parent dea09b1b
2002-09-18 Richard Henderson <rth@redhat.com>
* real.c (sticky_rshift_significand): Collect sticky as
unsigned long, not bool.
2002-09-18 Ulrich Weigand <uweigand@de.ibm.com> 2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_address_cost): New function. * config/s390/s390.c (s390_address_cost): New function.
...@@ -239,7 +239,7 @@ sticky_rshift_significand (r, a, n) ...@@ -239,7 +239,7 @@ sticky_rshift_significand (r, a, n)
const struct real_value *a; const struct real_value *a;
unsigned int n; unsigned int n;
{ {
bool sticky = false; unsigned long sticky = 0;
unsigned int i, ofs = 0; unsigned int i, ofs = 0;
if (n >= HOST_BITS_PER_LONG) if (n >= HOST_BITS_PER_LONG)
...@@ -268,7 +268,7 @@ sticky_rshift_significand (r, a, n) ...@@ -268,7 +268,7 @@ sticky_rshift_significand (r, a, n)
r->sig[i] = 0; r->sig[i] = 0;
} }
r->sig[0] |= sticky; r->sig[0] |= (sticky != 0);
} }
/* Right-shift the significand of A by N bits; put the result in the /* Right-shift the significand of A by N bits; put the result in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment