Lines Matching refs:Fixed
500 class Fixed
503 static Fixed create (deInt32 value) { Fixed v; v.m_value = value; return v; }
506 inline Fixed operator+ (const Fixed& other) const { return create(m_value + other.getValue()); }
507 inline Fixed operator* (const Fixed& other) const { return create(m_value * other.getValue()); }
508 inline Fixed operator/ (const Fixed& other) const { return create(m_value / other.getValue()); }
509 inline Fixed operator- (const Fixed& other) const { return create(m_value - other.getValue()); }
511 inline Fixed& operator+= (const Fixed& other) { m_value += other.getValue(); return *this; }
512 inline Fixed& operator*= (const Fixed& other) { m_value *= other.getValue(); return *this; }
513 inline Fixed& operator/= (const Fixed& other) { m_value /= other.getValue(); return *this; }
514 inline Fixed& operator-= (const Fixed& other) { m_value -= other.getValue(); return *this; }
516 inline bool operator== (const Fixed& other) const { return m_value == other.m_value; }
517 inline bool operator!= (const Fixed& other) const { return m_value != other.m_value; }
518 inline bool operator< (const Fixed& other) const { return m_value < other.m_value; }
519 inline bool operator> (const Fixed& other) const { return m_value > other.m_value; }
520 inline bool operator<= (const Fixed& other) const { return m_value <= other.m_value; }
521 inline bool operator>= (const Fixed& other) const { return m_value >= other.m_value; }
533 explicit GLValue (Fixed value) : type(DrawTestSpec::INPUTTYPE_FIXED), fi(value) {}
553 Fixed fi;
631 rangesHi[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760));
649 rangesLo[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760));
666 template<> struct GLValueTypeTraits<GLValue::Fixed> { static const DrawTestSpec::InputType Type = DrawTestSpec::INPUTTYPE_FIXED; };
680 template<> GLValue::Fixed inline extractGLValue<GLValue::Fixed> (const GLValue& v) { return v.fi; }
743 inline GLValue::Fixed getRandom (deRandom& rnd, GLValue::Fixed min, GLValue::Fixed max)
748 return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>()))));
822 inline GLValue::Fixed minValue (void)
824 return GLValue::Fixed::create(4 * 1);
849 inline GLValue::Fixed abs (GLValue::Fixed val)
851 return GLValue::Fixed::create(0x7FFFu & val.getValue());
1565 case DrawTestSpec::INPUTTYPE_FIXED: return createBasicArray<deInt32, GLValue::Fixed> (seed, elementCount, componentCount, offset, stride);