Lines Matching refs:Half
437 class Half class in deqp::gls::__anon5a04624d0111::GLValue
440 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; } in create()
443 …inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFl… in operator +()
444 …inline Half operator* (const Half& other) const { return create(halfToFloat(m_value) * halfToFl… in operator *()
445 …inline Half operator/ (const Half& other) const { return create(halfToFloat(m_value) / halfToFl… in operator /()
446 …inline Half operator- (const Half& other) const { return create(halfToFloat(m_value) - halfToFl… in operator -()
448 …inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue… in operator +=()
449 …inline Half& operator*= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue… in operator *=()
450 …inline Half& operator/= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue… in operator /=()
451 …inline Half& operator-= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue… in operator -=()
453 inline bool operator== (const Half& other) const { return m_value == other.m_value; } in operator ==()
454 inline bool operator!= (const Half& other) const { return m_value != other.m_value; } in operator !=()
455 …inline bool operator< (const Half& other) const { return halfToFloat(m_value) < halfToFloat(oth… in operator <()
456 …inline bool operator> (const Half& other) const { return halfToFloat(m_value) > halfToFloat(oth… in operator >()
457 …inline bool operator<= (const Half& other) const { return halfToFloat(m_value) <= halfToFloat(o… in operator <=()
458 …inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(o… in operator >=()
509 explicit GLValue (Half value) : type(DrawTestSpec::INPUTTYPE_HALF), h(value) {} in GLValue()
530 Half h;
534 inline deFloat16 GLValue::Half::floatToHalf (float f) in floatToHalf()
542 inline float GLValue::Half::halfToFloat (deFloat16 h) in halfToFloat()
615 rangesHi[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
633 rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
650 template<> struct GLValueTypeTraits<GLValue::Half> { static const DrawTestSpec::InputType Type = D…
664 template<> GLValue::Half inline extractGLValue<GLValue::Half> (const GLValue& v) { return v.h; }; in extractGLValue()
733 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom()
740 GLValue::Half h = GLValue::Half::create(fMin + deRandom_getFloat(&rnd) * (fMax - fMin)); in getRandom()
821 inline GLValue::Half minValue (void) in minValue()
823 return GLValue::Half::create(4 * 1.0f); in minValue()
884 inline GLValue::Half abs (GLValue::Half val) in abs()
886 return GLValue::Half::create(std::fabs(val.to<float>())); in abs()
1549 …case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, ele… in generateBasicArray()