Home
last modified time | relevance | path

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

/lib/math/
Ddiv64.c73 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument
78 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
79 *remainder = -*remainder; in div_s64_rem()
83 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
104 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
112 *remainder = rem32; in div64_u64_rem()
120 *remainder = dividend - quot * divisor; in div64_u64_rem()
121 if (*remainder >= divisor) { in div64_u64_rem()
123 *remainder -= divisor; in div64_u64_rem()
190 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in iter_div_u64_rem() argument
[all …]
Dtest_div64.c57 u32 remainder; member
152 static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j) in test_div64_verify() argument
155 remainder == test_div64_results[i][j].remainder); in test_div64_verify()
166 u32 remainder; \
169 remainder = do_div(quotient, divisor); \
170 if (!test_div64_verify(quotient, remainder, i, j)) { \
172 dividend, divisor, quotient, remainder); \
175 test_div64_results[i][j].remainder); \
/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()