Searched refs:numSrcBits (Results 1 – 1 of 1) sorted by relevance
81 inline deUint32 bitReplicationScale (deUint32 src, int numSrcBits, int numDstBits) in bitReplicationScale() argument83 DE_ASSERT(numSrcBits <= numDstBits); in bitReplicationScale()84 DE_ASSERT((src & ((1<<numSrcBits)-1)) == src); in bitReplicationScale()86 for (int shift = numDstBits-numSrcBits; shift > -numSrcBits; shift -= numSrcBits) in bitReplicationScale()91 inline deInt32 signExtend (deInt32 src, int numSrcBits) in signExtend() argument93 DE_ASSERT(de::inRange(numSrcBits, 2, 31)); in signExtend()94 const bool negative = (src & (1 << (numSrcBits-1))) != 0; in signExtend()95 return src | (negative ? ~((1 << numSrcBits) - 1) : 0); in signExtend()