aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorStephen L Moshier <moshier@world.std.com>1998-11-25 11:06:07 -0700
committerJeff Law <law@gcc.gnu.org>1998-11-25 11:06:07 -0700
commita46f03ea151890ac0cfc96b843a857172fde23f8 (patch)
treed72c15b3df06205fd04c15aab9ac5157d1e6a8ca /gcc/real.c
parentc85c32322e6be7fd3e82a46bba31268510304584 (diff)
downloadgcc-a46f03ea151890ac0cfc96b843a857172fde23f8.zip
gcc-a46f03ea151890ac0cfc96b843a857172fde23f8.tar.gz
gcc-a46f03ea151890ac0cfc96b843a857172fde23f8.tar.bz2
emit-rtl.c (gen_lowpart_common): Remove earlier change.
* emit-rtl.c (gen_lowpart_common): Remove earlier change. * real.c (make_nan): Make SIGN arg actually specify the sign bit. From-SVN: r23874
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/real.c b/gcc/real.c
index 7fac64d..d40a0f3 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -6205,11 +6205,11 @@ make_nan (nan, sign, mode)
abort ();
}
if (REAL_WORDS_BIG_ENDIAN)
- *nan++ = (sign << 15) | *p++;
+ *nan++ = (sign << 15) | (*p++ & 0x7fff);
while (--n != 0)
*nan++ = *p++;
if (! REAL_WORDS_BIG_ENDIAN)
- *nan = (sign << 15) | *p;
+ *nan = (sign << 15) | (*p & 0x7fff);
}
/* This is the inverse of the function `etarsingle' invoked by