/openbmc/linux/lib/math/ |
H A D | test_div64.c | 56 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, \
|
H A D | div64.c | 69 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()
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utmath.c | 260 union uint64_overlay quotient; in acpi_ut_short_divide() local 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() 317 union uint64_overlay quotient; in acpi_ut_divide() local 348 quotient.part.hi, partial1); in acpi_ut_divide() 351 quotient.part.lo, remainder.part.lo); in acpi_ut_divide() 359 quotient.part.hi = 0; in acpi_ut_divide() 377 normalized_divisor.part.lo, quotient.part.lo, in acpi_ut_divide() 384 partial1 = quotient.part.lo * divisor.part.hi; in acpi_ut_divide() [all …]
|
H A D | hwtimer.c | 123 u64 quotient; in ACPI_EXPORT_SYMBOL() local 168 ACPI_PM_TIMER_FREQUENCY, "ient, NULL); in ACPI_EXPORT_SYMBOL() 170 *time_elapsed = (u32)quotient; in ACPI_EXPORT_SYMBOL()
|
H A D | utstrsuppt.c | 373 u64 quotient; in acpi_ut_strtoul_multiply64() local 390 acpi_ut_short_divide(ACPI_UINT64_MAX, base, "ient, NULL); in acpi_ut_strtoul_multiply64() 391 if (multiplicand > quotient) { in acpi_ut_strtoul_multiply64()
|
/openbmc/u-boot/lib/ |
H A D | div64.c | 66 u64 quotient; in div_s64_rem() local 69 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 72 quotient = -quotient; in div_s64_rem() 74 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 76 quotient = -quotient; in div_s64_rem() 78 return quotient; in div_s64_rem()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | util.h | 45 s32 quotient; in s32_div_u32_round_down() local 47 quotient = dividend / i_divisor; in s32_div_u32_round_down() 51 quotient--; in s32_div_u32_round_down() 57 return quotient; in s32_div_u32_round_down()
|
/openbmc/u-boot/drivers/ddr/marvell/a38x/ |
H A D | mv_ddr_common.c | 32 int round_div(unsigned int dividend, unsigned int divisor, unsigned int *quotient) in round_div() argument 34 if (quotient == NULL) { in round_div() 43 *quotient = (dividend + divisor / 2) / divisor; in round_div()
|
H A D | mv_ddr_common.h | 52 int round_div(unsigned int dividend, unsigned int divisor, unsigned int *quotient);
|
/openbmc/linux/arch/alpha/lib/ |
H A D | divide.S | 66 #define quotient $27 macro 74 #define quotient $2 macro 108 bis $31,$31,quotient 139 2: DIV_ONLY(addq quotient,mask,tmp2) 143 DIV_ONLY(cmovne compare,tmp2,quotient)
|
H A D | ev6-divide.S | 76 #define quotient $27 macro 84 #define quotient $2 macro 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
|
/openbmc/qemu/tests/tcg/mips/user/isa/r5900/ |
H A D | test_r5900_divu1.c | 9 struct quotient_remainder { uint32_t quotient, remainder; }; member 25 return (struct quotient_remainder) { .quotient = lo, .remainder = hi }; in divu1() 34 assert(qr.quotient == expected_quotient); in verify_divu1()
|
H A D | test_r5900_div1.c | 9 struct quotient_remainder { int32_t quotient, remainder; }; member 25 return (struct quotient_remainder) { .quotient = lo, .remainder = hi }; in div1() 34 assert(qr.quotient == expected_quotient); in verify_div1()
|
/openbmc/linux/arch/m68k/ifpsp060/src/ |
H A D | ilsp.S | 77 # 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 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 longword and word remainder: 305 mov.w %d5, %d1 # first quotient word 312 mov.w %d5, %d1 # 2nd quotient 'digit' [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | div64.S | 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
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | div64.S | 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
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | empty.py | 82 quotient, remainder = divmod(size, bs) 84 for _ in range(quotient):
|
/openbmc/linux/drivers/media/tuners/ |
H A D | max2165.c | 150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument 171 *quotient = q; in fixpt_div32() 182 u32 quotient, fraction; in max2165_set_rf() local 187 "ient, &fraction); in max2165_set_rf() 194 max2165_write_reg(priv, REG_NDIV_INT, quotient); in max2165_set_rf()
|
/openbmc/qemu/tests/tcg/alpha/system/ |
H A D | boot.S | 227 #define quotient $27 macro 232 mov $31, quotient 243 2: addq quotient, mask, tmp2 247 cmovne compare, tmp2, quotient 265 #undef quotient
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_sifive.c | 56 unsigned long quotient = in uart_min_clk_divisor() local 59 if (quotient == 0) in uart_min_clk_divisor() 62 return quotient - 1; in uart_min_clk_divisor()
|
/openbmc/linux/arch/m68k/math-emu/ |
H A D | fp_emu.h | 56 #define fp_set_quotient(quotient) ({ \ argument 58 FPDATA->fpsr |= ((quotient) & 0xff) << 16; \
|
/openbmc/qemu/target/m68k/ |
H A D | fpu_helper.c | 590 static void make_quotient(CPUM68KState *env, int sign, uint32_t quotient) in make_quotient() argument 592 quotient = (sign << 7) | (quotient & 0x7f); in make_quotient() 593 env->fpsr = (env->fpsr & ~FPSR_QT_MASK) | (quotient << FPSR_QT_SHIFT); in make_quotient() 598 uint64_t quotient; in HELPER() local 601 res->d = floatx80_modrem(val1->d, val0->d, true, "ient, in HELPER() 608 make_quotient(env, sign, quotient); in HELPER() 619 uint32_t quotient; in HELPER() local 630 quotient = floatx80_to_int32(floatx80_abs(fp_quot.d), &env->fp_status); in HELPER() 631 make_quotient(env, sign, quotient); in HELPER()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | time_64.c | 821 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()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.c | 54 u32 quotient, reminder; in stmmac_adjust_time() local 66 quotient = div_u64_rem(delta, 1000000000ULL, &reminder); in stmmac_adjust_time() 67 sec = quotient; in stmmac_adjust_time()
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | clk-alpha-pll.c | 604 u64 quotient; in alpha_pll_round_rate() local 606 quotient = rate; in alpha_pll_round_rate() 607 remainder = do_div(quotient, prate); in alpha_pll_round_rate() 608 *l = quotient; in alpha_pll_round_rate() 616 quotient = remainder << ALPHA_SHIFT(alpha_width); in alpha_pll_round_rate() 618 remainder = do_div(quotient, prate); in alpha_pll_round_rate() 621 quotient++; in alpha_pll_round_rate() 623 *a = quotient; in alpha_pll_round_rate() 811 u64 quotient; in alpha_huayra_pll_round_rate() local 813 quotient = rate; in alpha_huayra_pll_round_rate() [all …]
|