Lines Matching defs:value
121 inline float getEpsFromMaxUlpDiff (float value, deUint32 ulpDiff)
123 const int exp = tcu::Float32(value).exponent();
135 inline float getEpsFromBits (float value, int numAccurateBits)
137 return getEpsFromMaxUlpDiff(value, getMaxUlpDiffFromBits(numAccurateBits));
195 // if zero is not required to be representable, use smallest positive non-subnormal value
324 const float value;
325 HexFloat (const float value_) : value(value_) {}
330 return str << v.value << " / " << tcu::toHex(tcu::Float32(v.value).bits());
335 const deUint32 value;
336 HexBool (const deUint32 value_) : value(value_) {}
341 return str << (v.value ? "true" : "false") << " / " << tcu::toHex(v.value);
347 const void* value;
349 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {}
370 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break;
371 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break;
372 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break;
373 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break;
421 // \todo [2013-08-08 pyry] We probably want to log reference value as well?
423 m_testCtx.getLog() << TestLog::Message << "ERROR: comparison failed for value " << valNdx << ":\n " << m_failMsg.str() << TestLog::EndMessage;
722 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(mantissaBits); // ULP diff for rounded integer value.
854 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
856 DE_ASSERT(tcu::Float32(value).isInf() == isInf && tcu::Float32(value).isNaN() == isNan);
858 ((deUint32*)values[0])[valNdx] = value;
937 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
939 DE_ASSERT(tcu::Float32(value).isInf() == isInf && tcu::Float32(value).isNaN() == isNan);
941 ((deUint32*)values[0])[valNdx] = value;
1179 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(mantissaBits); // ULP diff for rounded integer value.
1287 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(mantissaBits); // ULP diff for rounded integer value.
1415 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(mantissaBits); // ULP diff for rounded integer value.
1513 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(mantissaBits); // ULP diff for rounded integer value.
1642 const deUint32 maxUlpDiff = getMaxUlpDiffFromBits(de::max(0, mantissaBits-bitsLost)); // ULP diff for rounded integer value.