... and one more fix to remove some warnings in the new double -> float conversion

llvm-svn: 107409
This commit is contained in:
Stephen Canon 2010-07-01 18:02:15 +00:00
parent 74eaf1f66c
commit e9946d0d3f
1 changed files with 2 additions and 4 deletions

View File

@ -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) {