| /openbsd/src/gnu/usr.bin/gcc/gcc/config/arm/ |
| D | lib1funcs.asm | 154 dividend .req r0 label 172 @ larger than the dividend. 174 cmplo divisor, dividend 183 cmplo divisor, dividend 190 @ subtract too much from the dividend ... 196 cmp dividend, divisor 197 subhs dividend, dividend, divisor 198 cmp dividend, divisor, lsr #1 199 subhs dividend, dividend, divisor, lsr #1 201 cmp dividend, divisor, lsr #2 [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/arm/ |
| D | lib1funcs.asm | 326 dividend .req r0 label 342 .macro ARM_DIV_BODY dividend, divisor, result, curbit 346 clz \curbit, \dividend 357 cmp \dividend, \divisor, lsl #shift 359 subcs \dividend, \dividend, \divisor, lsl #shift 366 clz \result, \dividend 387 @ larger than the dividend. 389 cmplo \divisor, \dividend 397 cmplo \divisor, \dividend 407 1: cmp \dividend, \divisor [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/builtins/ |
| D | udivmodti4.c | 102 utwords dividend; in __udivmodti4() local 103 dividend.all = a; in __udivmodti4() 108 if (divisor.all > dividend.all) { in __udivmodti4() 110 *rem = dividend.all; in __udivmodti4() 116 if (dividend.s.high < divisor.s.low) { in __udivmodti4() 118 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4() 124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4() 125 dividend.s.high = dividend.s.high % divisor.s.low; in __udivmodti4() 126 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4() 135 __builtin_clzll(divisor.s.high) - __builtin_clzll(dividend.s.high); in __udivmodti4() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/xtensa/ |
| D | lib1funcs.asm | 207 mov a6, a2 # keep dividend in a6 209 nsau a5, a6 # dividend_shift = nsau(dividend) 212 nsau a5, a6, a2, a7 # dividend_shift = nsau(dividend) 240 addi a2, a2, 1 # increment quotient if dividend >= divisor 245 # return dividend >= divisor 253 beqz a3, .Lerror # if divisor == 1, return the dividend 270 xor a7, a2, a3 # sign = dividend ^ divisor 271 abs a6, a2 # udividend = abs(dividend) 314 bltu a6, a3, .Lreturn2 # if dividend < divisor, return 0 344 nsau a5, a2 # dividend_shift = nsau(dividend) [all …]
|
| /openbsd/src/lib/libc/arch/sparc64/gen/ |
| D | divrem.m4 | 41 * Input: dividend and divisor in %o0 and %o1 respectively. 58 * R the remainder so far, initially the dividend 65 * Current estimate for non-large dividend is 67 * A large dividend is one greater than 2^(31-TOPBITS) and takes a 77 define(dividend, `%o0') macro 127 orcc divisor, dividend, %g0 ! either negative? 130 `xor divisor, dividend, SIGN', 131 `mov dividend, SIGN') ! compute sign in any case 134 tst dividend 135 ! divisor is definitely negative; dividend might also be negative [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/c4x/ |
| D | libgcc.S | 43 ; result by the dividend. 60 ; r2 dividend, r3 divisor, r0 quotient 75 ; r0 = estimate of r, r1 = tmp, r2 = dividend, r3 = divisor 90 mpyf *-ar0(1), r0 ; Multiply by the dividend 92 mpyf r2, r0 ; Multiply by the dividend 107 ; r0 = estimate of r, r1 = tmp, r2 = dividend, r3 = divisor 152 rnd r2 ; Minimize error in reg dividend's LSBs
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/c4x/ |
| D | libgcc.S | 43 ; result by the dividend. 60 ; r2 dividend, r3 divisor, r0 quotient 75 ; r0 = estimate of r, r1 = tmp, r2 = dividend, r3 = divisor 90 mpyf *-ar0(1), r0 ; Multiply by the dividend 92 mpyf r2, r0 ; Multiply by the dividend 107 ; r0 = estimate of r, r1 = tmp, r2 = dividend, r3 = divisor 152 rnd r2 ; Minimize error in reg dividend's LSBs
|
| /openbsd/src/gnu/gcc/gcc/config/xtensa/ |
| D | lib1funcs.asm | 265 mov a6, a2 # keep dividend in a6 266 do_nsau a5, a6, a2, a7 # dividend_shift = nsau(dividend) 293 addi a2, a2, 1 # increment quotient if dividend >= divisor 298 beqz a3, .Lerror # if divisor == 1, return the dividend 302 # return dividend >= divisor 324 xor a7, a2, a3 # sign = dividend ^ divisor 325 do_abs a6, a2, a4 # udividend = abs(dividend) 368 bltu a6, a3, .Lreturn0 # if dividend < divisor, return 0 393 do_nsau a5, a2, a6, a7 # dividend_shift = nsau(dividend) 418 sub a2, a2, a3 # subtract once more if dividend >= divisor [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/avr/ |
| D | libgcc.S | 320 rol r_rem ; shift dividend into remainder 325 rol r_arg1 ; shift dividend (with CARRY) 338 bst r_arg1,7 ; store sign of dividend 342 neg r_arg1 ; dividend negative : negate 387 rol r_remL ; shift dividend into remainder 395 rol r_arg1L ; shift dividend (with CARRY) 416 bst r_arg1H,7 ; store sign of dividend 419 rcall __divmodhi4_neg1 ; dividend negative : negate 435 neg r_arg1L ; correct dividend/remainder sign 486 rol r_remL ; shift dividend into remainder [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/avr/ |
| D | libgcc.S | 320 rol r_rem ; shift dividend into remainder 325 rol r_arg1 ; shift dividend (with CARRY) 338 bst r_arg1,7 ; store sign of dividend 342 neg r_arg1 ; dividend negative : negate 387 rol r_remL ; shift dividend into remainder 395 rol r_arg1L ; shift dividend (with CARRY) 416 bst r_arg1H,7 ; store sign of dividend 419 rcall __divmodhi4_neg1 ; dividend negative : negate 435 neg r_arg1L ; correct dividend/remainder sign 486 rol r_remL ; shift dividend into remainder [all …]
|
| /openbsd/src/sys/arch/hppa/spmath/ |
| D | divu.S | 31 rem .reg %r3 ; remainder and upper part of dividend 32 quo .reg %r4 ; quotient and lower part of dividend 45 addi 0,arg1,quo ; get lower dividend 46 addi 0,arg0,rem ; get upper dividend 139 comb,<<,n rem,dvr,nosub ; if upper dividend > dvr,
|
| /openbsd/src/sys/dev/ |
| D | spdmem.c | 620 uint8_t rows, cols, dividend, divisor; in spdmem_fbdimm_decode() local 636 dividend = s->sm_data[SPDMEM_FBDIMM_MTB_DIVIDEND]; in spdmem_fbdimm_decode() 639 cycle_time = (1000 * dividend + (divisor / 2)) / divisor; in spdmem_fbdimm_decode() 665 uint8_t mtype, chipsize, dividend, divisor; in spdmem_ddr3_decode() local 697 dividend = s->sm_data[SPDMEM_DDR3_MTB_DIVIDEND]; in spdmem_ddr3_decode() 699 cycle_time = (1000 * dividend + (divisor / 2)) / divisor; in spdmem_ddr3_decode()
|
| /openbsd/src/gnu/gcc/gcc/config/h8300/ |
| D | lib1funcs.asm | 177 ; dividend in A1 191 _lab1: or A1H,A1H ; look at dividend 207 _lab7: or A1H,A1H ; look at dividend 650 ;; er0 contains shifted dividend 653 ;; er3 contains dividend, later remainder 660 sub.w r2,e3 ; dividend - 65536 * er2 663 sub.l er2,er3 ; er3 = dividend - (AQ - 1) * divisor
|
| /openbsd/src/sys/dev/pci/drm/amd/amdgpu/ |
| D | amdgpu_vpe.c | 46 static inline uint16_t div16_u16_rem(uint16_t dividend, uint16_t divisor, uint16_t *remainder) in div16_u16_rem() argument 48 *remainder = dividend % divisor; in div16_u16_rem() 49 return dividend / divisor; in div16_u16_rem() 53 uint16_t dividend, in complete_integer_division_u16() argument 57 return div16_u16_rem(dividend, divisor, (uint16_t *)remainder); in complete_integer_division_u16()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/basics/ |
| D | fixpt31_32.c | 48 unsigned long long dividend, in complete_integer_division_u64() argument 56 result = div64_u64_rem(dividend, divisor, remainder); in complete_integer_division_u64()
|
| /openbsd/src/gnu/llvm/llvm/lib/ProfileData/ |
| D | GCOV.cpp | 523 static uint32_t formatPercentage(uint64_t dividend, uint64_t divisor) { in formatPercentage() argument 524 if (!dividend || !divisor) in formatPercentage() 526 dividend *= 100; in formatPercentage() 527 return dividend < divisor ? 1 : dividend / divisor; in formatPercentage()
|
| /openbsd/src/gnu/llvm/llvm/lib/Support/ |
| D | APFloat.cpp | 1249 integerPart *lhsSignificand, *dividend, *divisor; in divideSignificand() local 1260 dividend = new integerPart[partsCount * 2]; in divideSignificand() 1262 dividend = scratch; in divideSignificand() 1264 divisor = dividend + partsCount; in divideSignificand() 1268 dividend[i] = lhsSignificand[i]; in divideSignificand() 1285 bit = precision - APInt::tcMSB(dividend, partsCount) - 1; in divideSignificand() 1288 APInt::tcShiftLeft(dividend, partsCount, bit); in divideSignificand() 1294 if (APInt::tcCompare(dividend, divisor, partsCount) < 0) { in divideSignificand() 1296 APInt::tcShiftLeft(dividend, partsCount, 1); in divideSignificand() 1297 assert(APInt::tcCompare(dividend, divisor, partsCount) >= 0); in divideSignificand() [all …]
|
| D | APInt.cpp | 1356 uint64_t dividend = Make_64(u[j+n], u[j+n-1]); in KnuthDiv() local 1357 DEBUG_KNUTH(dbgs() << "KnuthDiv: dividend == " << dividend << '\n'); in KnuthDiv() 1358 uint64_t qp = dividend / v[n-1]; in KnuthDiv() 1359 uint64_t rp = dividend % v[n-1]; in KnuthDiv()
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/h8300/ |
| D | lib1funcs.asm | 175 ; dividend in A1 190 _lab1: or A1H,A1H ; look at dividend 207 _lab7: or A1H,A1H ; look at dividend
|
| /openbsd/src/gnu/gcc/gcc/config/mmix/ |
| D | mmix.opt | 46 Generate divide results with reminder having the same sign as the divisor (not the dividend)
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/sparc/ |
| D | lb1spc.asm | 167 ! Here the dividend is >= 2**(31-N) or so. We must be careful here, 514 ! Here the dividend is >= 2**(31-N) or so. We must be careful here,
|
| /openbsd/src/gnu/gcc/gcc/config/sparc/ |
| D | lb1spc.asm | 167 ! Here the dividend is >= 2**(31-N) or so. We must be careful here, 514 ! Here the dividend is >= 2**(31-N) or so. We must be careful here,
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Math-BigInt/t/ |
| D | bigintpm.inc | 1876 # Numerator (dividend) is +/-inf, and denominator is finite and non-zero. 1988 # Numerator (dividend) is +/-inf, and denominator is finite and non-zero. 2116 # Numerator (dividend) is +/-inf, and denominator is finite and non-zero. 2194 # Numerator (dividend) is +/-inf, and denominator is finite and non-zero. 2488 # Numerator (dividend) is +/-inf, and denominator is finite and non-zero.
|
| /openbsd/src/sys/lib/libkern/arch/hppa/ |
| D | milli.S | 588 ; Compute: if( dividend>=divisor) quotient=1; else quotient=0; 589 ; Note: dividend>==divisor iff dividend-divisor does not borrow 1693 add,>= 0,arg0,retreg ; move dividend, if retreg < 0, 1808 sub 0,arg0,retreg ; result is negation of dividend 1810 addo arg0,arg1,r0 ; trap iff dividend==0x80000000 && divisor==-1
|
| /openbsd/src/gnu/gcc/gcc/config/sh/ |
| D | sh.md | 2047 rtx dividend = operands[1]; 2073 if (! arith_reg_or_0_operand (dividend, SImode)) 2074 dividend = force_reg (SImode, dividend); 2110 emit_insn (gen_divsi_inv_m3 (result, dividend, inv1, inv2, shift, 2115 emit_insn (gen_divsi_inv_call (operands[0], dividend, divisor, result)); 2117 emit_insn (gen_divsi_inv_fp (operands[0], dividend, divisor, result, 2347 r0: result r1: shift r4: dividend r18: inv1 r19: inv2 2360 rtx dividend = operands[1]; 2368 emit_insn (gen_mulsidi3_media (scratch0, inv1, dividend)); 2369 emit_insn (gen_mulsidi3_media (scratch1, inv2, dividend)); [all …]
|