Home
last modified time | relevance | path

Searched refs:numMantissaBits (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/
DConvert.h82 template<UINT numMantissaBits>
104 mant = 1 << numMantissaBits; in Convert32ToSmallFloat()
114 mant = (1 << numMantissaBits) - 1; // 0x3F for 6 bit mantissa. in Convert32ToSmallFloat()
122 mant = mant >> (23 - numMantissaBits); in Convert32ToSmallFloat()
135 mant = mant >> (23 - numMantissaBits); in Convert32ToSmallFloat()
142 if ((mant & (0x3 << numMantissaBits)) != 0) // 0x60 = 0x3 << (num Mantissa Bits) in Convert32ToSmallFloat()
145 mant &= (1 << numMantissaBits) - 1; in Convert32ToSmallFloat()
149 UINT tmpVal = (exp << numMantissaBits) | mant; in Convert32ToSmallFloat()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderDerivateTests.cpp217 static float getSingleULPForExponent (int exp, int numMantissaBits) in getSingleULPForExponent() argument
219 if (numMantissaBits > 0) in getSingleULPForExponent()
221 DE_ASSERT(numMantissaBits <= 23); in getSingleULPForExponent()
223 const int ulpBitNdx = 23-numMantissaBits; in getSingleULPForExponent()
228 DE_ASSERT(numMantissaBits == 0); in getSingleULPForExponent()
233 static float getSingleULPForValue (float value, int numMantissaBits) in getSingleULPForValue() argument
236 return getSingleULPForExponent(exp, numMantissaBits); in getSingleULPForValue()
285 static float addErrorUlp (float value, float numUlps, int numMantissaBits) in addErrorUlp() argument
287 return value + numUlps * getSingleULPForValue(value, numMantissaBits); in addErrorUlp()
/external/deqp/modules/gles3/functional/
Des3fShaderDerivateTests.cpp248 static float getSingleULPForExponent (int exp, int numMantissaBits) in getSingleULPForExponent() argument
250 if (numMantissaBits > 0) in getSingleULPForExponent()
252 DE_ASSERT(numMantissaBits <= 23); in getSingleULPForExponent()
254 const int ulpBitNdx = 23-numMantissaBits; in getSingleULPForExponent()
259 DE_ASSERT(numMantissaBits == 0); in getSingleULPForExponent()
264 static float getSingleULPForValue (float value, int numMantissaBits) in getSingleULPForValue() argument
267 return getSingleULPForExponent(exp, numMantissaBits); in getSingleULPForValue()
316 static float addErrorUlp (float value, float numUlps, int numMantissaBits) in addErrorUlp() argument
318 return value + numUlps * getSingleULPForValue(value, numMantissaBits); in addErrorUlp()
/external/deqp/modules/gles31/functional/
Des31fShaderCommonFunctionTests.cpp201 const int numMantissaBits = getMinMantissaBits(precision); in makeFloatRepresentable() local
204 …2 representableMantissaMask = ((deUint32(1) << numMantissaBits) - 1) << (23 - (deUint32)numMantis… in makeFloatRepresentable()
205 …ctBits(+1, maxNormalizedValueExponent, ((1u << numMantissaBits) - 1u) << (23u - (deUint32)numManti… in makeFloatRepresentable()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderCommonFunctionTests.cpp205 const int numMantissaBits = getMinMantissaBits(precision); in makeFloatRepresentable() local
208 …2 representableMantissaMask = ((deUint32(1) << numMantissaBits) - 1) << (23 - (deUint32)numMantis… in makeFloatRepresentable()
209 …ctBits(+1, maxNormalizedValueExponent, ((1u << numMantissaBits) - 1u) << (23u - (deUint32)numManti… in makeFloatRepresentable()