Lines Matching defs:sign
107 return getUlpDiff(tcu::Float32::construct(tcu::Float32(b).sign(), 0, 0).asFloat(), b);
109 return getUlpDiff(a, tcu::Float32::construct(tcu::Float32(a).sign(), 0, 0).asFloat());
208 return (float32Representation.sign() == +1) ? (largestRepresentableValue) : (-largestRepresentableValue);
213 const tcu::Float32 targetRepresentation(tcu::Float32::constructBits(float32Representation.sign(),
543 : CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "sign", shaderType)
547 m_spec.source = "out0 = sign(in0);";
853 const deUint32 sign = rnd.getUint32() & 0x1u;
854 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
936 const deUint32 sign = rnd.getUint32() & 0x1u;
937 const deUint32 value = (sign << 31) | (exp << 23) | mantissa;
1271 const bool isNeg = tcu::Float32(in0).sign() < 0;
1274 // \note: trunc() function definition is a bit broad on negative zeros. Ignore result sign if zero.
1673 *significand = tcu::Float32::construct(fpValue.sign(), -1, fpValue.mantissa()).asFloat();
1678 *significand = fpValue.sign() < 0 ? -0.0f : 0.0f;
1689 return mant.sign() < 0 ? -0.0f : 0.0f;
1693 return tcu::Float32::construct(mant.sign(), exponent+mant.exponent(), mant.mantissa()).asFloat();
1871 const int sign = rnd.getBool() ? -1 : +1;
1874 const float in0 = tcu::Float32::construct(sign, fpExp, mantissa).asFloat();
2135 addFunctionCases<SignCase> (this, "sign", true, true, false, NEW_SHADERS);