16 mForBSNumber(forBSNumber)
30 mNumBits = std::numeric_limits<float>::digits;
32 std::numeric_limits<float>::min_exponent -
mNumBits;
33 mMaxExponent = std::numeric_limits<float>::max_exponent - 1;
37 mNumBits = std::numeric_limits<double>::digits;
39 std::numeric_limits<double>::min_exponent -
mNumBits;
40 mMaxExponent = std::numeric_limits<double>::max_exponent - 1;
50 mNumBits = std::numeric_limits<float>::digits;
52 std::numeric_limits<float>::min_exponent -
mNumBits;
57 mNumBits = std::numeric_limits<double>::digits;
59 std::numeric_limits<double>::min_exponent -
mNumBits;
65 int32_t maxExponent,
bool forBSNumber)
107 int32_t minBiasedExponent =
116 int32_t minBiasedExponent =
118 int32_t maxExponent =
120 int32_t numBits = maxExponent - minBiasedExponent;
121 return BSPrecision(numBits, minBiasedExponent, maxExponent,
BSPrecision operator/(BSPrecision const &precision)
BSPrecision operator<(BSPrecision const &precision)
BSPrecision operator*(BSPrecision const &precision)
BSPrecision operator<=(BSPrecision const &precision)
int32_t GetMaxExponent() const
BSPrecision operator+(BSPrecision const &precision)
BSPrecision operator-(BSPrecision const &precision)
BSPrecision operator==(BSPrecision const &precision)
int32_t GetNumBits() const
int32_t GetNumWords() const
GLenum GLint GLint * precision
int32_t GetMinExponent() const
BSPrecision operator>(BSPrecision const &precision)
int32_t GetMinBiasedExponent() const
int32_t mMinBiasedExponent
BSPrecision(bool isFloat, bool forBSNumber)
BSPrecision operator!=(BSPrecision const &precision)
BSPrecision operator>=(BSPrecision const &precision)