Searched refs:remainder (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | div64.c | 62 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 67 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 68 *remainder = -*remainder; in div_s64_rem() 72 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 93 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 101 *remainder = rem32; in div64_u64_rem() 109 *remainder = dividend - quot * divisor; in div64_u64_rem() 110 if (*remainder >= divisor) { in div64_u64_rem() 112 *remainder -= divisor; in div64_u64_rem() 179 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in iter_div_u64_rem() argument [all …]
|
D | string_helpers.c | 48 u32 remainder = 0, sf_cap; in string_get_size() local 86 remainder = do_div(size, divisor[units]); in string_get_size() 100 remainder *= 1000; in string_get_size() 101 remainder >>= 10; in string_get_size() 106 remainder += rounding[j]; in string_get_size() 107 if (remainder >= 1000) { in string_get_size() 108 remainder -= 1000; in string_get_size() 113 snprintf(tmp, sizeof(tmp), ".%03u", remainder); in string_get_size()
|