Searched refs:divisor (Results 1 – 2 of 2) sorted by relevance
/lib/math/ |
D | div64.c | 71 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() 78 if (divisor > 0) in div_s64_rem() 81 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 82 if (divisor < 0) in div_s64_rem() 102 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 104 u32 high = divisor >> 32; in div64_u64_rem() 109 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem() 113 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem() 118 *remainder = dividend - quot * divisor; in div64_u64_rem() [all …]
|
/lib/ |
D | string_helpers.c | 47 static const unsigned int divisor[] = { in string_get_size() local 76 do_div(blk_size, divisor[units]); in string_get_size() 81 do_div(size, divisor[units]); in string_get_size() 90 while (size >= divisor[units]) { in string_get_size() 91 remainder = do_div(size, divisor[units]); in string_get_size()
|