Lines Matching refs:Half
436 class Half class in deqp::gls::__anond14e03d00111::GLValue
439 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; } in create()
442 …inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFl… in operator +()
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 -()
447 …inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue… 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 -=()
452 inline bool operator== (const Half& other) const { return m_value == other.m_value; } 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 halfToFloat(m_value) < halfToFloat(oth… 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(o… in operator <=()
457 …inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(o… in operator >=()
508 explicit GLValue (Half value) : type(DrawTestSpec::INPUTTYPE_HALF), h(value) {} in GLValue()
529 Half h;
533 inline deFloat16 GLValue::Half::floatToHalf (float f) in floatToHalf()
541 inline float GLValue::Half::halfToFloat (deFloat16 h) in halfToFloat()
614 rangesHi[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
632 rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
649 template<> struct GLValueTypeTraits<GLValue::Half> { static const DrawTestSpec::InputType Type = D…
663 template<> GLValue::Half inline extractGLValue<GLValue::Half> (const GLValue& v) { return v.h; }; in extractGLValue()
732 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom()
739 GLValue::Half h = GLValue::Half::create(fMin + deRandom_getFloat(&rnd) * (fMax - fMin)); in getRandom()
820 inline GLValue::Half minValue (void) in minValue()
822 return GLValue::Half::create(4 * 1.0f); in minValue()
883 inline GLValue::Half abs (GLValue::Half val) in abs()
885 return GLValue::Half::create(std::fabs(val.to<float>())); in abs()
1601 alignmentSafeAssignment<deFloat16>(data, getRandom<GLValue::Half>(rnd, min.h, max.h).getValue()); in setData()
1632 …case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, ele… in generateBasicArray()