Lines Matching refs:shiftBits
51 inline word ShiftWordsLeftByBits(word *r, size_t n, unsigned int shiftBits)
53 assert (shiftBits<WORD_BITS);
55 if (shiftBits)
59 r[i] = (u << shiftBits) | carry;
60 carry = u >> (WORD_BITS-shiftBits);
65 inline word ShiftWordsRightByBits(word *r, size_t n, unsigned int shiftBits)
67 assert (shiftBits<WORD_BITS);
69 if (shiftBits)
73 r[i-1] = (u >> shiftBits) | carry;
74 carry = u << (WORD_BITS-shiftBits);