Lines Matching refs:MantissaBits
47 template <typename StorageType_, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Fla…
56 MANTISSA_BITS = MantissaBits,
69 …static inline Float convert (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias,… in convert() argument
109 inline int signBit (void) const { return (m_value >> (ExponentBits+MantissaBits)) & 1; } in signBit()
110 …inline StorageType exponentBits (void) const { return (m_value >> MantissaBits) & ((StorageType(1… in exponentBits()
111 …inline StorageType mantissaBits (void) const { return m_value & ((StorageType(1)<<MantissaBits)-1… in mantissaBits()
115 …turn isZero() || isDenorm() ? mantissaBits() : (mantissaBits() | (StorageType(1)<<MantissaBits)); } in mantissa()
135 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
136 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (void) in Float()
141 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
142 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (StorageType valu… in Float()
147 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
148 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (float value) in Float()
156 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
157 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (double value) in Float()
165 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
166 inline float Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asFloat (void) co… in asFloat()
174 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
175 inline double Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asDouble (void) … in asDouble()
183 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
184 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in zero()
187 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
190 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
191 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in inf()
194 …ype(((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits)) | (((1ull<<ExponentBits)-1) << Manti… in inf()
197 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
198 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in nan()
200 return Float(StorageType((1ull<<(ExponentBits+MantissaBits))-1)); in nan()
203 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
204 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
205 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct in construct()
213 const bool isDenormOrZero = (exponent == 1 - ExponentBias) && (mantissa >> MantissaBits == 0); in construct()
214 const StorageType s = StorageType(sign < 0 ? 1 : 0) << (ExponentBits+MantissaBits); in construct()
218 DE_ASSERT(isShorthandZero || isDenormOrZero || mantissa >> MantissaBits == 1); in construct()
221 …return Float(StorageType(s | (exp << MantissaBits) | (mantissa & ((StorageType(1)<<MantissaBits)-1… in construct()
224 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
225 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
226 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::constructBits in constructBits()
234 DE_ASSERT(mantissaBits >> MantissaBits == 0); in constructBits()
236 …return Float(StorageType((signBit << (ExponentBits+MantissaBits)) | (exponentBits << MantissaBits)… in constructBits()
239 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
241 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
242 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::convert in convert()
267 …const StorageType s = StorageType(other.signBit()) << (ExponentBits+MantissaBits); // \note Not s… in convert()
281 if ((Flags & FLOAT_SUPPORT_DENORM) && (eMin-e-1 <= MantissaBits)) in convert()
284 int bitDiff = (OtherMantissaBits-MantissaBits) + (eMin-e); in convert()
298 if (MantissaBits < OtherMantissaBits) in convert()
301 int bitDiff = OtherMantissaBits-MantissaBits; in convert()
307 if (m & (1ull<<MantissaBits)) in convert()
316 int bitDiff = MantissaBits-OtherMantissaBits; in convert()
329 DE_ASSERT((m & ~((1ull<<MantissaBits)-1)) == 0); in convert()
331 return Float(StorageType(s | (StorageType(e + ExponentBias) << MantissaBits) | m)); in convert()