Lines Matching refs:MantissaBits
54 template <typename StorageType_, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Fla…
63 MANTISSA_BITS = MantissaBits,
76 …static inline Float convert (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias,… in convert() argument
116 …inline int signBit (void) const { return (int)(m_value >> (ExponentBits+MantissaBits)) & 1; … in signBit()
117 …inline StorageType exponentBits (void) const { return (m_value >> MantissaBits) & ((StorageType(1… in exponentBits()
118 …inline StorageType mantissaBits (void) const { return m_value & ((StorageType(1)<<MantissaBits)-1… in mantissaBits()
122 …turn isZero() || isDenorm() ? mantissaBits() : (mantissaBits() | (StorageType(1)<<MantissaBits)); } in mantissa()
129 …inline bool operator< (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flag… in operator <() argument
149 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
150 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (void) in Float()
155 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
156 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (StorageType valu… in Float()
161 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
162 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (float value, Rou… in Float()
170 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
171 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (double value, Ro… in Float()
179 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
180 inline float Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asFloat (void) co… in asFloat()
188 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
189 inline double Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asDouble (void) … in asDouble()
197 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
198 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in zero()
201 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
204 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
205 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in inf()
208 …ype(((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits)) | (((1ull<<ExponentBits)-1) << Manti… in inf()
211 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
212 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in nan()
214 return Float(StorageType((1ull<<(ExponentBits+MantissaBits))-1)); in nan()
217 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
218 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in largestNormal()
221 …eType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct(sign, ExponentBias, (static_cas… in largestNormal()
224 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
225 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in smallestNormal()
228 …ype, ExponentBits, MantissaBits, ExponentBias, Flags>::construct(sign, 1 - ExponentBias, (static_c… in smallestNormal()
231 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
232 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
233 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct in construct()
241 const bool isDenormOrZero = (exponent == 1 - ExponentBias) && (mantissa >> MantissaBits == 0); in construct()
242 …pe s = StorageType((StorageType(sign < 0 ? 1 : 0)) << (StorageType(ExponentBits+MantissaBits))); in construct()
246 DE_ASSERT(isShorthandZero || isDenormOrZero || mantissa >> MantissaBits == 1); in construct()
249 …return Float(StorageType(s | (exp << MantissaBits) | (mantissa & ((StorageType(1)<<MantissaBits)-1… in construct()
252 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
253 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
254 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::constructBits in constructBits()
262 DE_ASSERT(mantissaBits >> MantissaBits == 0); in constructBits()
264 …return Float(StorageType((signBit << (ExponentBits+MantissaBits)) | (exponentBits << MantissaBits)… in constructBits()
267 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
269 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
270 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::convert in convert()
297 …orageType((StorageType(other.signBit())) << (StorageType(ExponentBits+MantissaBits))); // \note No… in convert()
311 if ((Flags & FLOAT_SUPPORT_DENORM) && (eMin-e-1 <= MantissaBits)) in convert()
314 int bitDiff = (OtherMantissaBits-MantissaBits) + (eMin-e); in convert()
353 if (MantissaBits < OtherMantissaBits) in convert()
356 int bitDiff = OtherMantissaBits-MantissaBits; in convert()
389 if (m & (1ull<<MantissaBits)) in convert()
398 int bitDiff = MantissaBits-OtherMantissaBits; in convert()
410 DE_ASSERT((m & ~((1ull<<MantissaBits)-1)) == 0); in convert()
412 return Float(StorageType(s | (StorageType(e + ExponentBias) << MantissaBits) | m)); in convert()