Lines Matching defs:bits
66 return str << v.value << " / " << tcu::toHex(tcu::Float32(v.value).bits());
706 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision)));
708 m_spec.source = "extracted = bitfieldExtract(value, offset, bits);";
724 const int bits = rnd.getInt(0, numBits);
725 const int offset = rnd.getInt(0, numBits-bits);
728 inBits[valueNdx] = bits;
740 const int bits = *((const int*)inputs[2]);
747 // From the bitfieldExtract spec: "If bits is zero, the result will be zero.".
748 if (bits == 0)
755 const deUint32 valMask = (bits == 32 ? ~0u : ((1u<<bits)-1u));
757 ref = baseVal | ((isSigned && (baseVal & (1 << (bits - 1)))) ? ~valMask : 0u);
780 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision)));
782 m_spec.source = "result = bitfieldInsert(base, insert, offset, bits);";
798 const int bits = rnd.getInt(0, numBits);
799 const int offset = rnd.getInt(0, numBits-bits);
802 inBits[valueNdx] = bits;
817 const int bits = *((const int*)inputs[3]);
825 const deUint32 mask = bits == 32 ? ~0u : (1u<<bits)-1;