Lines Matching defs:sign
120 return getUlpDiff(tcu::Float32::construct(tcu::Float32(b).sign(), 0, 0).asFloat(), b);
122 return getUlpDiff(a, tcu::Float32::construct(tcu::Float32(a).sign(), 0, 0).asFloat());
221 return (float32Representation.sign() == +1) ? (largestRepresentableValue) : (-largestRepresentableValue);
226 const tcu::Float32 targetRepresentation(tcu::Float32::constructBits(float32Representation.sign(),
583 : CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "sign", shaderType)
587 m_spec.source = "out0 = sign(in0);";
893 const deUint32 sign = rnd.getUint32() & 0x1u;
894 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
976 const deUint32 sign = rnd.getUint32() & 0x1u;
977 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
1311 const bool isNeg = tcu::Float32(in0).sign() < 0;
1314 // \note: trunc() function definition is a bit broad on negative zeros. Ignore result sign if zero.
1713 *significand = tcu::Float32::construct(fpValue.sign(), -1, fpValue.mantissa()).asFloat();
1718 *significand = fpValue.sign() < 0 ? -0.0f : 0.0f;
1729 return mant.sign() < 0 ? -0.0f : 0.0f;
1733 return tcu::Float32::construct(mant.sign(), exponent+mant.exponent(), mant.mantissa()).asFloat();
1911 const int sign = rnd.getBool() ? -1 : +1;
1914 const float in0 = tcu::Float32::construct(sign, fpExp, mantissa).asFloat();
2170 addFunctionCases<SignCase> (this, "sign", true, true, false, NEW_SHADERS);