diff options
author | Stephen Canon <scanon@apple.com> | 2010-07-01 18:02:15 +0000 |
---|---|---|
committer | Stephen Canon <scanon@apple.com> | 2010-07-01 18:02:15 +0000 |
commit | 450137986bf514396d008d246b26a93c7362b34c (patch) | |
tree | 7a80803008871882d8b2967b90922a1337b4bbf8 | |
parent | 5c6d2ecb9c43d8b836b3203a243e24703d473765 (diff) | |
download | compiler-rt-450137986bf514396d008d246b26a93c7362b34c.tar.gz compiler-rt-450137986bf514396d008d246b26a93c7362b34c.tar.bz2 compiler-rt-450137986bf514396d008d246b26a93c7362b34c.tar.xz |
... and one more fix to remove some warnings in the new double -> float conversion
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@107409 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/truncdfsf2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/truncdfsf2.c b/lib/truncdfsf2.c index 6313c87a..d289cb98 100644 --- a/lib/truncdfsf2.c +++ b/lib/truncdfsf2.c @@ -76,12 +76,10 @@ dst_t __truncdfsf2(src_t a) { const int srcExpBias = srcInfExp >> 1; const src_rep_t srcMinNormal = SRC_REP_C(1) << srcSigBits; - const src_rep_t srcSignificandMask = srcMinNormal - 1; + const src_rep_t significandMask = srcMinNormal - 1; const src_rep_t srcInfinity = (src_rep_t)srcInfExp << srcSigBits; const src_rep_t srcSignMask = SRC_REP_C(1) << (srcSigBits + srcExpBits); const src_rep_t srcAbsMask = srcSignMask - 1; - const src_rep_t srcQNaN = SRC_REP_C(1) << (srcSigBits - 1); - const src_rep_t srcNaNCode = srcQNaN - 1; const src_rep_t roundMask = (SRC_REP_C(1) << (srcSigBits - dstSigBits)) - 1; const src_rep_t halfway = SRC_REP_C(1) << (srcSigBits - dstSigBits - 1); @@ -143,7 +141,7 @@ dst_t __truncdfsf2(src_t a) { const int aExp = aAbs >> srcSigBits; const int shift = srcExpBias - dstExpBias - aExp + 1; - const src_rep_t significand = aRep & srcSignificandMask | srcMinNormal; + const src_rep_t significand = (aRep & significandMask) | srcMinNormal; // Right shift by the denormalization amount with sticky. if (shift > srcSigBits) { |