Commit 930177d9 by Alexander Kabaev Committed by Loren J. Rittle

* real.c (encode_ieee_single): Ensure proper promotion.

From-SVN: r73232
parent 2b2de389
2003-11-03 Alexander Kabaev <ak03@gte.com>
* real.c (encode_ieee_single): Ensure proper promotion.
2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
......
......@@ -2536,9 +2536,10 @@ encode_ieee_single (const struct real_format *fmt, long *buf,
const REAL_VALUE_TYPE *r)
{
unsigned long image, sig, exp;
unsigned long sign = r->sign;
bool denormal = (r->sig[SIGSZ-1] & SIG_MSB) == 0;
image = r->sign << 31;
image = sign << 31;
sig = (r->sig[SIGSZ-1] >> (HOST_BITS_PER_LONG - 24)) & 0x7fffff;
switch (r->class)
......
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