Lines Matching defs:exponent
82 * \param exponent Exponent in range [1-ExponentBias, ExponentBias+1]
88 * The exponent normally used for zero/subnormals is an invalid input. Such
90 * normal exponent (1-ExponentBias). Additionally having both exponent and
93 * exponent of ExponentBias+1 and the appropriate mantissa (with leading
96 static inline Float construct (int sign, int exponent, StorageType mantissa);
101 * \param exponent Exponent in range [-ExponentBias, ExponentBias+1]
107 * The sign is turned into a sign bit and the exponent bias is added.
111 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
122 inline int exponent (void) const { return isDenorm() ? 1 - ExponentBias : (int)exponentBits() - ExponentBias; }
235 (int sign, int exponent, StorageType mantissa)
238 const bool isShorthandZero = exponent == 0 && mantissa == 0;
240 // Handles the typical notation for zero (min exponent, mantissa 0). Note that the exponent usually used exponent (-ExponentBias) for zero/subnormals is not used.
242 const bool isDenormOrZero = (exponent == 1 - ExponentBias) && (mantissa >> MantissaBits == 0);
244 const StorageType exp = (isShorthandZero || isDenormOrZero) ? StorageType(0) : StorageType(exponent + ExponentBias);
256 (int sign, int exponent, StorageType mantissaBits)
259 const StorageType exponentBits = static_cast<StorageType>(exponent + ExponentBias);
299 int e = other.exponent();