Home
last modified time | relevance | path

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

/third_party/vk-gl-cts/framework/delibs/debase/
DdeFloat16.c182 static deUint32 roundToNearestEven (deUint32 val, const deUint32 numBitsToDiscard) in roundToNearestEven() argument
184 const deUint32 lastBits = val & ((1 << numBitsToDiscard) - 1); in roundToNearestEven()
185 const deUint32 headBit = val & (1 << (numBitsToDiscard - 1)); in roundToNearestEven()
187 DE_ASSERT(numBitsToDiscard > 0 && numBitsToDiscard < 32); /* Make sure no overflow. */ in roundToNearestEven()
188 val >>= numBitsToDiscard; in roundToNearestEven()
339 static deUint64 roundToNearestEven64 (deUint64 val, const deUint64 numBitsToDiscard) in roundToNearestEven64() argument
341 const deUint64 lastBits = val & (((deUint64)1 << numBitsToDiscard) - 1); in roundToNearestEven64()
342 const deUint64 headBit = val & ((deUint64)1 << (numBitsToDiscard - 1)); in roundToNearestEven64()
344 DE_ASSERT(numBitsToDiscard > 0 && numBitsToDiscard < 64); /* Make sure no overflow. */ in roundToNearestEven64()
345 val >>= numBitsToDiscard; in roundToNearestEven64()