Home
last modified time | relevance | path

Searched refs:quotient (Results 1 - 25 of 55) sorted by relevance

123

/kernel/uniproton/src/arch/cpu/armv7-m/cortex-m4/
H A Dprt_div64.c40 OS_SEC_TEXT void OsU64Div(U64 dividend, U64 divisor, U64 *quotient, U64 *remainder) in OsU64Div() argument
55 *quotient = 0; in OsU64Div()
73 *quotient = tmpQuotient; in OsU64Div()
81 U64 quotient = 0; in OsU64DivGetQuotient() local
84 OsU64Div(dividend, divisor, &quotient, &remainder); in OsU64DivGetQuotient()
86 return quotient; in OsU64DivGetQuotient()
91 U64 quotient; in OsU64DivGetRemainder() local
94 OsU64Div(dividend, divisor, &quotient, &remainder); in OsU64DivGetRemainder()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dutmath.c244 * out_quotient - Pointer to where the quotient is returned
250 * divide and modulo. The result is a 64-bit quotient and a
260 union uint64_overlay quotient; in acpi_ut_short_divide() local
275 * The quotient is 64 bits, the remainder is always 32 bits, in acpi_ut_short_divide()
279 quotient.part.hi, remainder32); in acpi_ut_short_divide()
282 quotient.part.lo, remainder32); in acpi_ut_short_divide()
287 *out_quotient = quotient.full; in acpi_ut_short_divide()
302 * out_quotient - Pointer to where the quotient is returned
317 union uint64_overlay quotient; in acpi_ut_divide() local
344 * The quotient i in acpi_ut_divide()
[all...]
H A Dhwtimer.c123 u64 quotient; in ACPI_EXPORT_SYMBOL() local
168 ACPI_PM_TIMER_FREQUENCY, &quotient, NULL); in ACPI_EXPORT_SYMBOL()
170 *time_elapsed = (u32)quotient; in ACPI_EXPORT_SYMBOL()
H A Dutstrsuppt.c373 u64 quotient; in acpi_ut_strtoul_multiply64() local
390 acpi_ut_short_divide(ACPI_UINT64_MAX, base, &quotient, NULL); in acpi_ut_strtoul_multiply64()
391 if (multiplicand > quotient) { in acpi_ut_strtoul_multiply64()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dutmath.c244 * out_quotient - Pointer to where the quotient is returned
250 * divide and modulo. The result is a 64-bit quotient and a
260 union uint64_overlay quotient; in acpi_ut_short_divide() local
275 * The quotient is 64 bits, the remainder is always 32 bits, in acpi_ut_short_divide()
279 quotient.part.hi, remainder32); in acpi_ut_short_divide()
282 quotient.part.lo, remainder32); in acpi_ut_short_divide()
287 *out_quotient = quotient.full; in acpi_ut_short_divide()
302 * out_quotient - Pointer to where the quotient is returned
317 union uint64_overlay quotient; in acpi_ut_divide() local
344 * The quotient i in acpi_ut_divide()
[all...]
H A Dhwtimer.c123 u64 quotient; in ACPI_EXPORT_SYMBOL() local
168 ACPI_PM_TIMER_FREQUENCY, &quotient, NULL); in ACPI_EXPORT_SYMBOL()
170 *time_elapsed = (u32)quotient; in ACPI_EXPORT_SYMBOL()
H A Dutstrsuppt.c373 u64 quotient; in acpi_ut_strtoul_multiply64() local
390 acpi_ut_short_divide(ACPI_UINT64_MAX, base, &quotient, NULL); in acpi_ut_strtoul_multiply64()
391 if (multiplicand > quotient) { in acpi_ut_strtoul_multiply64()
/kernel/linux/linux-6.6/lib/math/
H A Dtest_div64.c56 u64 quotient; member
152 static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j) in test_div64_verify() argument
154 return (quotient == test_div64_results[i][j].quotient && in test_div64_verify()
165 u64 quotient; \
168 quotient = dividend; \
169 remainder = do_div(quotient, divisor); \
170 if (!test_div64_verify(quotient, remainder, i, j)) { \
172 dividend, divisor, quotient, remainder); \
174 test_div64_results[i][j].quotient, \
[all...]
H A Ddiv64.c69 u64 quotient; in div_s64_rem() local
72 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
75 quotient = -quotient; in div_s64_rem()
77 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
79 quotient = -quotient; in div_s64_rem()
81 return quotient; in div_s64_rem()
/kernel/linux/linux-5.10/lib/math/
H A Ddiv64.c73 u64 quotient; in div_s64_rem() local
76 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
79 quotient = -quotient; in div_s64_rem()
81 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
83 quotient = -quotient; in div_s64_rem()
85 return quotient; in div_s64_rem()
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/
H A Dutil.h27 s32 quotient; in s32_div_u32_round_down() local
29 quotient = dividend / i_divisor; in s32_div_u32_round_down()
33 quotient--; in s32_div_u32_round_down()
39 return quotient; in s32_div_u32_round_down()
/kernel/linux/linux-5.10/arch/alpha/lib/
H A Ddivide.S39 * $2 - modulus/quotient
45 * $27 - quotient/modulus
66 #define quotient $27 define
74 #define quotient $2 define
108 bis $31,$31,quotient
139 2: DIV_ONLY(addq quotient,mask,tmp2)
143 DIV_ONLY(cmovne compare,tmp2,quotient)
H A Dev6-divide.S39 * $2 - modulus/quotient
45 * $27 - quotient/modulus
76 #define quotient $27 define
84 #define quotient $2 define
119 bis $31,$31,quotient # E :
167 DIV_ONLY(addq quotient,mask,tmp2) # E :
176 DIV_ONLY(cmovne compare,tmp2,quotient) # E : Latency 2, extra map slot
/kernel/linux/linux-6.6/arch/alpha/lib/
H A Ddivide.S39 * $2 - modulus/quotient
45 * $27 - quotient/modulus
66 #define quotient $27 define
74 #define quotient $2 define
108 bis $31,$31,quotient
139 2: DIV_ONLY(addq quotient,mask,tmp2)
143 DIV_ONLY(cmovne compare,tmp2,quotient)
H A Dev6-divide.S39 * $2 - modulus/quotient
45 * $27 - quotient/modulus
76 #define quotient $27 define
84 #define quotient $2 define
119 bis $31,$31,quotient # E :
167 DIV_ONLY(addq quotient,mask,tmp2) # E :
176 DIV_ONLY(cmovne compare,tmp2,quotient) # E : Latency 2, extra map slot
/kernel/liteos_a/drivers/char/random/src/
H A Drandom.c42 long quotient, remainder, t; in DoRand() local
44 quotient = *value / 127773L; in DoRand()
46 t = 16807L * remainder - 2836L * quotient; in DoRand()
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/
H A Dilsp.S77 # 0x10(sp) = pointer to location to place quotient/remainder #
80 # 0x10(sp) = points to location of remainder/quotient. #
81 # remainder is in first longword, quotient is in 2nd. #
204 eor.b %d0, NDIVIDEND(%a6) # chk if quotient is negative
221 # if the register numbers are the same, only the quotient gets saved.
222 # so, if we always save the quotient second, we save ourselves a cmp&beq
278 # The quotient is returned in %d6, remainder in %d5, unless the #
291 # In the general case, four quotient words would be created by
293 # the first two quotient words must be zero, or overflow would occur.
296 # the last two divisions to get a quotient longwor
[all...]
/kernel/linux/linux-6.6/arch/m68k/ifpsp060/src/
H A Dilsp.S77 # 0x10(sp) = pointer to location to place quotient/remainder #
80 # 0x10(sp) = points to location of remainder/quotient. #
81 # remainder is in first longword, quotient is in 2nd. #
204 eor.b %d0, NDIVIDEND(%a6) # chk if quotient is negative
221 # if the register numbers are the same, only the quotient gets saved.
222 # so, if we always save the quotient second, we save ourselves a cmp&beq
278 # The quotient is returned in %d6, remainder in %d5, unless the #
291 # In the general case, four quotient words would be created by
293 # the first two quotient words must be zero, or overflow would occur.
296 # the last two divisions to get a quotient longwor
[all...]
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Ddiv64.S7 * the 64-bit quotient, and r4 contains the divisor.
23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor
40 2: mullw r10,r11,r4 # to get an estimate of the quotient,
44 subfe. r5,r9,r5 # quotient
52 4: stw r7,0(r3) # return the quotient in *r3
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Ddiv64.S7 * the 64-bit quotient, and r4 contains the divisor.
23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor
40 2: mullw r10,r11,r4 # to get an estimate of the quotient,
44 subfe. r5,r9,r5 # quotient
52 4: stw r7,0(r3) # return the quotient in *r3
/kernel/linux/linux-5.10/arch/m68k/math-emu/
H A Dfp_emu.h56 #define fp_set_quotient(quotient) ({ \
58 FPDATA->fpsr |= ((quotient) & 0xff) << 16; \
/kernel/linux/linux-6.6/arch/m68k/math-emu/
H A Dfp_emu.h56 #define fp_set_quotient(quotient) ({ \
58 FPDATA->fpsr |= ((quotient) & 0xff) << 16; \
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Dtime_64.c821 unsigned long freq, quotient, tick; in init_tick_ops() local
824 quotient = clocksource_hz2mult(freq, SPARC64_NSEC_PER_CYC_SHIFT); in init_tick_ops()
827 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()
828 ops->ticks_per_nsec_quotient = quotient; in init_tick_ops()
882 unsigned long quotient = tick_operations.ticks_per_nsec_quotient; in sched_clock() local
892 return ((get_tick() * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT) - offset; in sched_clock()
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dtime_64.c821 unsigned long freq, quotient, tick; in init_tick_ops() local
824 quotient = clocksource_hz2mult(freq, SPARC64_NSEC_PER_CYC_SHIFT); in init_tick_ops()
827 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()
828 ops->ticks_per_nsec_quotient = quotient; in init_tick_ops()
882 unsigned long quotient = tick_operations.ticks_per_nsec_quotient; in sched_clock() local
892 return ((get_tick() * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT) - offset; in sched_clock()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c62 u32 quotient, reminder; in stmmac_adjust_time() local
73 quotient = div_u64_rem(delta, 1000000000ULL, &reminder); in stmmac_adjust_time()
74 sec = quotient; in stmmac_adjust_time()

Completed in 15 milliseconds

123