diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-03-11 13:39:57 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2004-03-12 00:09:57 +1030 |
commit | 40131a384c12ca47a142e349af17bc14345015ff (patch) | |
tree | e977d99500e84e3d5ac691bf24d2c44db0543f58 /gcc/real.c | |
parent | 1a4f6839c05bd4e6de10f63c7f97e1a83b8da242 (diff) | |
download | gcc-40131a384c12ca47a142e349af17bc14345015ff.zip gcc-40131a384c12ca47a142e349af17bc14345015ff.tar.gz gcc-40131a384c12ca47a142e349af17bc14345015ff.tar.bz2 |
* real.c (encode_ibm_extended): Do round low word.
From-SVN: r79321
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3248,9 +3248,8 @@ encode_ibm_extended (const struct real_format *fmt, long *buf, if (u.class == rvc_normal) { do_add (&v, &normr, &u, 1); - /* The low double won't need rounding, since we round to a 106 bit - mantissa before calling this function, and we've just - subtracted off the top 54 bits. (53+1 because u is rounded.) */ + /* Call round_for_format since we might need to denormalize. */ + round_for_format (base_fmt, &v); encode_ieee_double (base_fmt, &buf[2], &v); } else |