• Home
  • Raw
  • Download

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 (int)(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()
137 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
138 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (void) in Float()
143 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
144 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (StorageType valu… in Float()
149 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
150 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (float value) in Float()
158 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
159 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::Float (double value) in Float()
167 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
168 inline float Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asFloat (void) co… in asFloat()
176 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
177 inline double Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asDouble (void) … in asDouble()
185 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
186 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in zero()
189 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
192 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
193 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in inf()
196 …ype(((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits)) | (((1ull<<ExponentBits)-1) << Manti… in inf()
199 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
200 …ne Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, Exponent… in nan()
202 return Float(StorageType((1ull<<(ExponentBits+MantissaBits))-1)); in nan()
205 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
206 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
207 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct in construct()
215 const bool isDenormOrZero = (exponent == 1 - ExponentBias) && (mantissa >> MantissaBits == 0); in construct()
216 …pe s = StorageType((StorageType(sign < 0 ? 1 : 0)) << (StorageType(ExponentBits+MantissaBits))); in construct()
220 DE_ASSERT(isShorthandZero || isDenormOrZero || mantissa >> MantissaBits == 1); in construct()
223 …return Float(StorageType(s | (exp << MantissaBits) | (mantissa & ((StorageType(1)<<MantissaBits)-1… in construct()
226 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
227 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
228 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::constructBits in constructBits()
236 DE_ASSERT(mantissaBits >> MantissaBits == 0); in constructBits()
238 …return Float(StorageType((signBit << (ExponentBits+MantissaBits)) | (exponentBits << MantissaBits)… in constructBits()
241 template <typename StorageType, int ExponentBits, int MantissaBits, int ExponentBias, deUint32 Flag…
243 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>
244 Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::convert in convert()
269 …orageType((StorageType(other.signBit())) << (StorageType(ExponentBits+MantissaBits))); // \note No… in convert()
283 if ((Flags & FLOAT_SUPPORT_DENORM) && (eMin-e-1 <= MantissaBits)) in convert()
286 int bitDiff = (OtherMantissaBits-MantissaBits) + (eMin-e); in convert()
300 if (MantissaBits < OtherMantissaBits) in convert()
303 int bitDiff = OtherMantissaBits-MantissaBits; in convert()
309 if (m & (1ull<<MantissaBits)) in convert()
318 int bitDiff = MantissaBits-OtherMantissaBits; in convert()
331 DE_ASSERT((m & ~((1ull<<MantissaBits)-1)) == 0); in convert()
333 return Float(StorageType(s | (StorageType(e + ExponentBias) << MantissaBits) | m)); in convert()