Lines Matching defs:high
55 inline deUint32 getBits (deUint32 src, int low, int high)
57 const int numBits = (high-low) + 1;
221 deUint32 getBits (int low, int high) const
224 DE_ASSERT(de::inBounds(high, 0, 128));
225 DE_ASSERT(de::inRange(high-low+1, 0, 32));
227 if (high-low+1 == 0)
231 const int word1Ndx = high / WORD_BITS;
236 return (deUint32)((m_words[word0Ndx] & ((((Word)1 << high%WORD_BITS << 1) - 1))) >> ((Word)low % WORD_BITS));
242 (deUint32)((m_words[word1Ndx] & (((Word)1 << high%WORD_BITS << 1) - 1)) << (high-low - high%WORD_BITS));
278 const int high = m_ndx + numBitsFromSrc - 1;
282 return m_forward ? m_src.getBits(m_startNdxInSrc + low, m_startNdxInSrc + high)
283 : reverseBits(m_src.getBits(m_startNdxInSrc - high, m_startNdxInSrc - low), numBitsFromSrc);
1643 void setBits (int low, int high, deUint32 bits)
1646 DE_ASSERT(de::inBounds(high, 0, 128));
1647 DE_ASSERT(de::inRange(high-low+1, 0, 32));
1648 DE_ASSERT((bits & (((Word)1 << (high-low+1)) - 1)) == bits);
1650 if (high-low+1 == 0)
1654 const int word1Ndx = high / WORD_BITS;
1658 m_words[word0Ndx] = (m_words[word0Ndx] & ~((((Word)1 << (high-low+1)) - 1) << lowNdxInW0)) | ((Word)bits << lowNdxInW0);
1663 const int highNdxInW1 = high % WORD_BITS;
1716 const int high = m_ndx + numBitsToDst - 1;
1721 return m_forward ? m_dst.setBits(m_startNdxInSrc + low, m_startNdxInSrc + high, actualBits)
1722 : m_dst.setBits(m_startNdxInSrc - high, m_startNdxInSrc - low, reverseBits(actualBits, numBitsToDst));