Lines Matching refs:shiftWords
79 inline void ShiftWordsLeftByWords(word *r, size_t n, size_t shiftWords)
81 shiftWords = STDMIN(shiftWords, n);
82 if (shiftWords)
84 for (size_t i=n-1; i>=shiftWords; i--)
85 r[i] = r[i-shiftWords];
86 SetWords(r, 0, shiftWords);
90 inline void ShiftWordsRightByWords(word *r, size_t n, size_t shiftWords)
92 shiftWords = STDMIN(shiftWords, n);
93 if (shiftWords)
95 for (size_t i=0; i+shiftWords<n; i++)
96 r[i] = r[i+shiftWords];
97 SetWords(r+n-shiftWords, 0, shiftWords);