Lines Matching refs:shift
256 int shift = 0; local
275 buf[bp] |= toxdigit(*end) << shift;
277 if (shift > 5) {
278 buf[--bp] = (todigit(*end) >> (8 - shift))
279 & MASK(shift-5);
281 if ((shift = (shift + 3) % 8) == 0)
285 if ((shift = (shift) ? 0 : 4) == 0)
295 if (!shift)
404 int i, shift; local
417 shift = 2 + i;
420 if (shift <= 5) {
421 *s++ = itoac((*a >> shift) & MASK(3));
422 if (shift == 0) {
426 shift += (shift < 3) ? 5 : -3;
429 i = (*a & MASK(shift-5)) << (8-shift);
430 i |= (*++a >> shift) & MASK(8-shift);
432 shift -= 3;