Home
last modified time | relevance | path

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

/external/deqp/framework/delibs/debase/
DdeFloat16.c109 static deUint32 roundToNearestEven (deUint32 val, const deUint32 numBitsToDiscard) in roundToNearestEven() argument
111 const deUint32 lastBits = val & ((1 << numBitsToDiscard) - 1); in roundToNearestEven()
112 const deUint32 headBit = val & (1 << (numBitsToDiscard - 1)); in roundToNearestEven()
114 DE_ASSERT(numBitsToDiscard > 0 && numBitsToDiscard < 32); /* Make sure no overflow. */ in roundToNearestEven()
115 val >>= numBitsToDiscard; in roundToNearestEven()