/kernel/linux/linux-5.10/arch/arm/lib/ |
D | lib1funcs.S | 40 .macro ARM_DIV_BODY dividend, divisor, result, curbit 45 clz \result, \dividend 66 @ larger than the dividend. 68 cmplo \divisor, \dividend 76 cmplo \divisor, \dividend 86 1: cmp \dividend, \divisor 87 subhs \dividend, \dividend, \divisor 89 cmp \dividend, \divisor, lsr #1 90 subhs \dividend, \dividend, \divisor, lsr #1 92 cmp \dividend, \divisor, lsr #2 [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | math64.h | 25 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument 27 *remainder = dividend % divisor; in div_u64_rem() 28 return dividend / divisor; in div_u64_rem() 39 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 41 *remainder = dividend % divisor; in div_s64_rem() 42 return dividend / divisor; in div_s64_rem() 53 static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 55 *remainder = dividend % divisor; in div64_u64_rem() 56 return dividend / divisor; in div64_u64_rem() 66 static inline u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument [all …]
|
D | mpi.h | 106 void mpi_mod(MPI rem, MPI dividend, MPI divisor); 154 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor); 155 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor);
|
/kernel/linux/linux-5.10/lib/math/ |
D | div64.c | 71 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 75 if (dividend < 0) { in div_s64_rem() 76 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)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 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() 142 u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument 148 quot = div_u64(dividend, divisor); in div64_u64() [all …]
|
/kernel/uniproton/src/arch/cpu/armv7-m/cortex-m4/ |
D | prt_div64.c | 40 OS_SEC_TEXT void OsU64Div(U64 dividend, U64 divisor, U64 *quotient, U64 *remainder) in OsU64Div() argument 52 if (dividend < divisor) { in OsU64Div() 54 *remainder = dividend; in OsU64Div() 59 alignShift = OsleadingZeroCount(divisor) - OsleadingZeroCount(dividend); in OsU64Div() 61 tmpRemainder = dividend; in OsU64Div() 79 OS_SEC_TEXT U64 OsU64DivGetQuotient(U64 dividend, U64 divisor) in OsU64DivGetQuotient() argument 84 OsU64Div(dividend, divisor, "ient, &remainder); in OsU64DivGetQuotient() 89 OS_SEC_TEXT U64 OsU64DivGetRemainder(U64 dividend, U64 divisor) in OsU64DivGetRemainder() argument 94 OsU64Div(dividend, divisor, "ient, &remainder); in OsU64DivGetRemainder()
|
/kernel/linux/linux-5.10/include/vdso/ |
D | math64.h | 6 __iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in __iter_div_u64_rem() argument 10 while (dividend >= divisor) { in __iter_div_u64_rem() 13 asm("" : "+rm"(dividend)); in __iter_div_u64_rem() 15 dividend -= divisor; in __iter_div_u64_rem() 19 *remainder = dividend; in __iter_div_u64_rem()
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | c6x_ksyms.c | 15 extern int __c6xabi_divi(int dividend, int divisor); 18 extern unsigned __c6xabi_divu(unsigned dividend, unsigned divisor); 21 extern int __c6xabi_remi(int dividend, int divisor); 24 extern unsigned __c6xabi_remu(unsigned dividend, unsigned divisor); 27 extern int __c6xabi_divremi(int dividend, int divisor); 30 extern unsigned __c6xabi_divremu(unsigned dividend, unsigned divisor);
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
D | utmath.c | 256 acpi_ut_short_divide(u64 dividend, in acpi_ut_short_divide() argument 272 dividend_ovl.full = dividend; in acpi_ut_short_divide() 315 union uint64_overlay dividend; in acpi_ut_divide() local 335 dividend.full = in_dividend; in acpi_ut_divide() 347 ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo, in acpi_ut_divide() 350 ACPI_DIV_64_BY_32(partial1, dividend.part.lo, divisor.part.lo, in acpi_ut_divide() 360 normalized_dividend = dividend; in acpi_ut_divide() 392 if (partial3.part.lo >= dividend.part.hi) { in acpi_ut_divide() 393 if (partial3.part.lo == dividend.part.hi) { in acpi_ut_divide() 394 if (partial2.part.lo > dividend.part.lo) { in acpi_ut_divide() [all …]
|
/kernel/linux/linux-5.10/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 34 mpi_tdiv_r(rem, dividend, divisor); in mpi_fdiv_r() 36 if (((divisor_sign?1:0) ^ (dividend->sign?1:0)) && rem->nlimbs) 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() 50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() argument 60 mpi_tdiv_qr(quot, rem, dividend, divisor); in mpi_fdiv_qr() 62 if ((divisor_sign ^ dividend->sign) && rem->nlimbs) { in mpi_fdiv_qr()
|
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()
|
/kernel/linux/linux-5.10/arch/powerpc/lib/ |
D | div64.S | 16 lwz r5,0(r3) # get the dividend into r5/r6 22 divwu r7,r5,r4 # if dividend.hi >= divisor, 23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor 24 subf. r5,r0,r5 # dividend.hi %= divisor 26 1: mr r11,r5 # here dividend.hi != 0 29 cntlzw r0,r5 # we are shifting the dividend right
|
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/ |
D | ilsp.S | 75 # 0x8(sp) = hi(dividend) # 76 # 0xc(sp) = lo(dividend) # 138 mov.l 0xc(%a6), %d5 # get dividend hi 139 mov.l 0x10(%a6), %d6 # get dividend lo 155 tst.l %d5 # chk sign of hi(dividend) 156 slt NDIVIDEND(%a6) # save sign of dividend 160 negx.l %d6 # complement signed dividend 164 # - is (dividend == 0) ? 165 # - is (hi(dividend) == 0 && (divisor <= lo(dividend))) ? (32-bit div) 167 tst.l %d5 # is (hi(dividend) == 0) [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | div64.S | 16 lwz r5,0(r3) # get the dividend into r5/r6 22 divwu r7,r5,r4 # if dividend.hi >= divisor, 23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor 24 subf. r5,r0,r5 # dividend.hi %= divisor 26 1: mr r11,r5 # here dividend.hi != 0 29 cntlzw r0,r5 # we are shifting the dividend right
|
/kernel/linux/linux-5.10/drivers/clk/versatile/ |
D | icst.c | 29 u64 dividend = p->ref * 2 * (u64)(vco.v + 8); in icst_hz() local 32 do_div(dividend, divisor); in icst_hz() 33 return (unsigned long)dividend; in icst_hz()
|
/kernel/linux/linux-5.10/arch/h8300/lib/ |
D | udivsi3.S | 55 ;; er0 contains shifted dividend 58 ;; er3 contains dividend, later remainder 65 sub.w r2,e3 ; dividend - 65536 * er2 68 sub.l er2,er3 ; er3 = dividend - (AQ - 1) * divisor
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ptp.c | 232 u64 dividend; in xgbe_ptp_register() local 256 dividend = 50000000; in xgbe_ptp_register() 257 dividend <<= 32; in xgbe_ptp_register() 258 pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); in xgbe_ptp_register()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
D | string.c | 201 static inline u64 __div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in __div_u64_rem() argument 206 } d = { dividend }; in __div_u64_rem() 220 static inline u64 __div_u64(u64 dividend, u32 divisor) in __div_u64() argument 224 return __div_u64_rem(dividend, divisor, &remainder); in __div_u64()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | div64.h | 43 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument 48 } d = { dividend }; in div_u64_rem()
|
/kernel/uniproton/src/arch/cpu/armv7-m/common/ |
D | os_cpu_armv7_m_external.h | 68 extern U64 OsU64DivGetQuotient(U64 dividend, U64 divisor); 69 extern U64 OsU64DivGetRemainder(U64 dividend, U64 divisor);
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | max2165.c | 150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument 159 q = dividend / divisor; in fixpt_div32() 160 remainder = dividend - q * divisor; in fixpt_div32()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | cx24113.c | 292 u64 dividend; in cx24113_calc_pll_nf() local 337 dividend = F; in cx24113_calc_pll_nf() 338 do_div(dividend, state->config->xtal_khz * 1000 * factor * 2); in cx24113_calc_pll_nf() 339 F = dividend; in cx24113_calc_pll_nf()
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | rawnand.h | 738 #define __DIVIDE(dividend, divisor) ({ \ argument 739 (__typeof__(dividend))(sizeof(dividend) <= sizeof(unsigned long) ? \ 740 DIV_ROUND_UP(dividend, divisor) : \ 741 DIV_ROUND_UP_ULL(dividend, divisor)); \
|
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 76 static void simple_div(int dividend, int divisor, int *whole, in simple_div() argument 87 *whole = dividend/divisor; in simple_div() 88 rem = dividend % divisor; in simple_div()
|
/kernel/linux/linux-5.10/drivers/clk/sirf/ |
D | clk-atlas7.c | 540 u64 dividend = rate * DTO_RESL_DOUBLE; in dto_clk_round_rate() local 542 do_div(dividend, *parent_rate); in dto_clk_round_rate() 543 dividend *= *parent_rate; in dto_clk_round_rate() 544 do_div(dividend, DTO_RESL_DOUBLE); in dto_clk_round_rate() 546 return dividend; in dto_clk_round_rate() 552 u64 dividend = rate * DTO_RESL_DOUBLE; in dto_clk_set_rate() local 555 do_div(dividend, parent_rate); in dto_clk_set_rate() 557 clkc_writel(dividend, clk->inc_offset); in dto_clk_set_rate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_phy_8996.c | 146 u64 dividend = HDMI_PLL_CMP_CNT * fdata; in pll_get_pll_cmp() local 150 rem = do_div(dividend, divisor); in pll_get_pll_cmp() 152 dividend++; in pll_get_pll_cmp() 154 return dividend - 1; in pll_get_pll_cmp()
|