Searched refs:divisor (Results 1 – 5 of 5) sorted by relevance
/lib/math/ |
D | div64.c | 73 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() 80 if (divisor > 0) in div_s64_rem() 83 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 84 if (divisor < 0) in div_s64_rem() 104 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 106 u32 high = divisor >> 32; in div64_u64_rem() 111 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem() 115 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem() 120 *remainder = dividend - quot * divisor; in div64_u64_rem() [all …]
|
D | test_div64.c | 163 #define test_div64_one(dividend, divisor, i, j) ({ \ argument 169 remainder = do_div(quotient, divisor); \ 172 dividend, divisor, quotient, remainder); \
|
/lib/mpi/ |
D | mpi-div.c | 18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor); 20 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_r() argument 22 int divisor_sign = divisor->sign; in mpi_fdiv_r() 29 if (rem == divisor) { in mpi_fdiv_r() 30 temp_divisor = mpi_copy(divisor); in mpi_fdiv_r() 31 divisor = temp_divisor; in mpi_fdiv_r() 34 mpi_tdiv_r(rem, dividend, divisor); in mpi_fdiv_r() 37 mpi_add(rem, rem, divisor); in mpi_fdiv_r() 43 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor) in mpi_fdiv_q() argument 46 mpi_fdiv_qr(quot, tmp, dividend, divisor); in mpi_fdiv_q() [all …]
|
D | mpi-mod.c | 25 void mpi_mod(MPI rem, MPI dividend, MPI divisor) in mpi_mod() argument 27 mpi_fdiv_r(rem, dividend, divisor); in mpi_mod()
|
/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()
|