Lines Matching defs:value

60 	const float value;
61 HexFloat (const float value_) : value(value_) {}
66 return str << v.value << " / " << tcu::toHex(tcu::Float32(v.value).bits());
72 const void* value;
74 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {}
95 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break;
96 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break;
97 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break;
98 case glu::TYPE_BOOL: str << (((const deUint32*)varValue.value)[compNdx] != 0 ? "true" : "false"); break;
291 // \todo [2013-08-08 pyry] We probably want to log reference value as well?
293 m_testCtx.getLog() << TestLog::Message << "ERROR: comparison failed for value " << valNdx << ":\n " << m_failMsg.str() << TestLog::EndMessage;
704 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
708 m_spec.source = "extracted = bitfieldExtract(value, offset, bits);";
754 const deUint32 value = ((const deUint32*)inputs[0])[compNdx];
756 const deUint32 baseVal = (offset == 32) ? (0) : ((value >> offset) & valMask);
854 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
856 m_spec.source = "result = bitfieldReverse(value);";
879 const deUint32 value = ((const deUint32*)inputs[0])[compNdx];
881 const deUint32 ref = reverseBits(value);
903 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
905 m_spec.source = "count = bitCount(value);";
928 const deUint32 value = ((const deUint32*)inputs[0])[compNdx];
930 const int minRef = dePop32(value&countMask);
931 const int maxRef = dePop32(value);
944 static int findLSB (deUint32 value)
948 if (value & (1u<<i))
963 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
965 m_spec.source = "lsb = findLSB(value);";
988 const deUint32 value = ((const deUint32*)inputs[0])[compNdx];
990 const int minRef = findLSB(value&mask);
991 const int maxRef = findLSB(value);
1004 static deUint32 toPrecision (deUint32 value, int numIntegerBits)
1006 return value & getLowBitMask(numIntegerBits);
1009 static deInt32 toPrecision (deInt32 value, int numIntegerBits)
1011 return (deInt32)extendSignTo32((deUint32)value & getLowBitMask(numIntegerBits), numIntegerBits);
1023 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
1025 m_spec.source = "msb = findMSB(value);";
1048 const deUint32 value = ((const deUint32*)inputs[0])[compNdx];
1050 const int minRef = isSigned ? de::findMSB(toPrecision(deInt32(value), integerLength)) : de::findMSB(toPrecision(value, integerLength));
1051 const int maxRef = isSigned ? de::findMSB(deInt32(value)) : de::findMSB(value);