Home | History | Annotate | Download | only in common

Lines Matching full:mantissa

75 	 * \param mantissa	Mantissa bits with implicit leading bit explicitly set
79 * The normally implicit leading bit of the mantissa must be explicitly set.
81 * values are specified with the leading mantissa bit of zero and the lowest
83 * mantissa set to zero is a shorthand notation for the correctly signed
85 * exponent of ExponentBias+1 and the appropriate mantissa (with leading
88 static inline Float construct (int sign, int exponent, StorageType mantissa);
94 * \param mantissa Mantissa bits
115 inline StorageType mantissa (void) const { return isZero() || isDenorm() ? mantissaBits() : (mantissaBits() | (StorageType(1)<<MantissaBits)); }
206 (int sign, int exponent, StorageType mantissa)
209 const bool isShorthandZero = exponent == 0 && mantissa == 0;
211 // Handles the typical notation for zero (min exponent, mantissa 0). Note that the exponent usually used exponent (-ExponentBias) for zero/subnormals is not used.
212 // Instead zero/subnormals have the (normally implicit) leading mantissa bit set to zero.
213 const bool isDenormOrZero = (exponent == 1 - ExponentBias) && (mantissa >> MantissaBits == 0);
218 DE_ASSERT(isShorthandZero || isDenormOrZero || mantissa >> MantissaBits == 1);
221 return Float(StorageType(s | (exp << MantissaBits) | (mantissa & ((StorageType(1)<<MantissaBits)-1))));
269 deUint64 m = other.mantissa();
300 // Round mantissa (round to nearest even).
309 // Overflow in mantissa.