Home
last modified time | relevance | path

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

/lib/
Ddiv64.c62 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()
69 if (divisor > 0) in div_s64_rem()
72 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
73 if (divisor < 0) in div_s64_rem()
93 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
95 u32 high = divisor >> 32; in div64_u64_rem()
100 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
104 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
109 *remainder = dividend - quot * divisor; in div64_u64_rem()
[all …]
Dstring_helpers.c42 static const unsigned int divisor[] = { in string_get_size() local
71 do_div(blk_size, divisor[units]); in string_get_size()
76 do_div(size, divisor[units]); in string_get_size()
85 while (size >= divisor[units]) { in string_get_size()
86 remainder = do_div(size, divisor[units]); in string_get_size()