Lines Matching defs:shift
3426 int shift;
3429 * Work out how far we have to shift the block count down to make it fit.
3430 * Note that it's possible to have to shift so far that the resulting
3437 for (shift = 0; shift < 32; shift++) {
3438 if ((sp->f_blocks >> shift) <= INT_MAX)
3440 if ((((long long)sp->f_bsize) << (shift + 1)) > INT_MAX)
3444 sfs.f_blocks = (user32_long_t)__SHIFT_OR_CLIP(sp->f_blocks, shift);
3445 sfs.f_bfree = (user32_long_t)__SHIFT_OR_CLIP(sp->f_bfree, shift);
3446 sfs.f_bavail = (user32_long_t)__SHIFT_OR_CLIP(sp->f_bavail, shift);
3448 sfs.f_bsize = (user32_long_t)(sp->f_bsize << shift);