Searched refs:rem (Results 1 – 6 of 6) sorted by relevance
/lib/math/ |
D | div64.c | 31 uint64_t rem = *n; in __div64_32() local 34 uint32_t high = rem >> 32; in __div64_32() 41 rem -= (uint64_t) (high*base) << 32; in __div64_32() 44 while ((int64_t)b > 0 && b < rem) { in __div64_32() 50 if (rem >= b) { in __div64_32() 51 rem -= b; in __div64_32() 59 return rem; in __div64_32()
|
/lib/ |
D | nlattr.c | 76 int rem; in nla_validate_array() local 78 nla_for_each_attr(entry, head, len, rem) { in nla_validate_array() 364 int rem; in __nla_validate_parse() local 369 nla_for_each_attr(nla, head, len, rem) { in __nla_validate_parse() 392 if (unlikely(rem > 0)) { in __nla_validate_parse() 394 rem, current->comm); in __nla_validate_parse() 494 int rem; in nla_find() local 496 nla_for_each_attr(nla, head, len, rem) in nla_find()
|
D | bitmap.c | 105 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() local 114 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right() 120 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right() 125 lower >>= rem; in __bitmap_shift_right() 151 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() local 159 if (rem && k > 0) in __bitmap_shift_left() 160 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left() 163 upper = src[k] << rem; in __bitmap_shift_left()
|
D | random32.c | 112 u32 rem = prandom_u32_state(state); in prandom_bytes_state() local 114 *ptr++ = (u8) rem; in prandom_bytes_state() 116 rem >>= BITS_PER_BYTE; in prandom_bytes_state()
|
D | iov_iter.c | 659 unsigned long rem; in copy_pipe_to_iter_mcsafe() local 661 rem = memcpy_mcsafe_to_page(pipe->bufs[idx].page, off, addr, in copy_pipe_to_iter_mcsafe() 664 i->iov_offset = off + chunk - rem; in copy_pipe_to_iter_mcsafe() 665 xfer += chunk - rem; in copy_pipe_to_iter_mcsafe() 666 if (rem) in copy_pipe_to_iter_mcsafe() 704 unsigned long rem, curr_addr, s_addr = (unsigned long) addr; in _copy_to_iter_mcsafe() local 713 rem = memcpy_mcsafe_to_page(v.bv_page, v.bv_offset, in _copy_to_iter_mcsafe() 715 if (rem) { in _copy_to_iter_mcsafe() 717 bytes = curr_addr - s_addr - rem; in _copy_to_iter_mcsafe() 722 rem = memcpy_mcsafe(v.iov_base, (from += v.iov_len) - v.iov_len, in _copy_to_iter_mcsafe() [all …]
|
D | bch.c | 447 int rem, c, r, p, k, param[BCH_MAX_M]; in solve_linear_system() local 454 rem = 0; in solve_linear_system() 464 rem = r+1; in solve_linear_system() 468 if (rem) { in solve_linear_system() 471 for (r = rem; r < m; r++) { in solve_linear_system()
|