Searched refs:numBitsToDiscard (Results 1 – 1 of 1) sorted by relevance
109 static deUint32 roundToNearestEven (deUint32 val, const deUint32 numBitsToDiscard) in roundToNearestEven() argument111 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()