reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
65 static __inline src_rep_t srcToRep(src_t x) { 68 src_rep_t i;projects/compiler-rt/lib/builtins/fp_trunc_impl.inc
49 const src_rep_t srcMinNormal = SRC_REP_C(1) << srcSigBits; 50 const src_rep_t srcSignificandMask = srcMinNormal - 1; 51 const src_rep_t srcInfinity = (src_rep_t)srcInfExp << srcSigBits; 52 const src_rep_t srcSignMask = SRC_REP_C(1) << (srcSigBits + srcExpBits); 53 const src_rep_t srcAbsMask = srcSignMask - 1; 54 const src_rep_t roundMask = (SRC_REP_C(1) << (srcSigBits - dstSigBits)) - 1; 55 const src_rep_t halfway = SRC_REP_C(1) << (srcSigBits - dstSigBits - 1); 56 const src_rep_t srcQNaN = SRC_REP_C(1) << (srcSigBits - 1); 57 const src_rep_t srcNaNCode = srcQNaN - 1; 66 const src_rep_t underflow = (src_rep_t)underflowExponent << srcSigBits; 67 const src_rep_t overflow = (src_rep_t)overflowExponent << srcSigBits; 73 const src_rep_t aRep = srcToRep(a); 74 const src_rep_t aAbs = aRep & srcAbsMask; 75 const src_rep_t sign = aRep & srcSignMask; 85 const src_rep_t roundBits = aAbs & roundMask; 110 const src_rep_t significand = (aRep & srcSignificandMask) | srcMinNormal; 117 src_rep_t denormalizedSignificand = significand >> shift | sticky; 119 const src_rep_t roundBits = denormalizedSignificand & roundMask;