Lines Matching refs:clamp
639 // The tcu::Vectors we use as pixels are 32-bit, so clamp to that.
3863 const int clampedBits = de::clamp<int>(srcBits, 0, 32);
3867 return de::clamp<float>(error, 0.0f, 1.0f);
4098 deUint64 threshold64 = 1 + de::max( ( ( UINT64_C(1) << dstBitDepth[i] ) - 1 ) / de::clamp((UINT64_C(1) << srcBitDepth[i]) - 1, UINT64_C(1), UINT64_C(256)), UINT64_C(1));
4159 // we need to clamp some formats to <0;1> range as it has
4187 resultTexel = tcu::clamp(resultTexel, filteredResultMinValue, filteredResultMaxValue);
4188 clampedReferenceTexel = tcu::clamp(clampedReferenceTexel, filteredResultMinValue, filteredResultMaxValue);
4189 unclampedReferenceTexel = tcu::clamp(unclampedReferenceTexel, filteredResultMinValue, filteredResultMaxValue);
4513 // format we need to clamp source to <-1;1> range as this will be done on
4516 // for this format we also need to clamp the result as precision of
4527 // clamp source for all non float formats
4535 // is unsigned we need to clamp source to <0; x> so that proper
4560 texel = tcu::clamp(texel, tcu::Vec4(clampSourceMinValue), tcu::Vec4(clampSourceMaxValue));
4575 texel = tcu::clamp(texel, tcu::Vec4(-1.0f), tcu::Vec4(1.0f));
5563 deUint64 threshold64 = 1 + de::max( ( ( UINT64_C(1) << dstBitDepth[i] ) - 1 ) / de::clamp((UINT64_C(1) << srcBitDepth[i]) - 1, UINT64_C(1), UINT64_C(256)), UINT64_C(1));