Home
last modified time | relevance | path

Searched refs:remainder (Results 1 – 2 of 2) sorted by relevance

/lib/math/
Ddiv64.c71 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument
76 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
77 *remainder = -*remainder; in div_s64_rem()
81 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
102 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
110 *remainder = rem32; in div64_u64_rem()
118 *remainder = dividend - quot * divisor; in div64_u64_rem()
119 if (*remainder >= divisor) { in div64_u64_rem()
121 *remainder -= divisor; in div64_u64_rem()
188 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in iter_div_u64_rem() argument
[all …]
/lib/
Dstring_helpers.c53 u32 remainder = 0, sf_cap; in string_get_size() local
91 remainder = do_div(size, divisor[units]); in string_get_size()
105 remainder *= 1000; in string_get_size()
106 remainder >>= 10; in string_get_size()
111 remainder += rounding[j]; in string_get_size()
112 if (remainder >= 1000) { in string_get_size()
113 remainder -= 1000; in string_get_size()
118 snprintf(tmp, sizeof(tmp), ".%03u", remainder); in string_get_size()