HomeSort by: relevance | last modified time | path
    Searched refs:dividend (Results 1 - 25 of 71) sorted by relevancy

1 2 3

  /src/external/bsd/zstd/dist/contrib/linux-kernel/test/include/linux/
math64.h 13 #define div_u64(dividend, divisor) ((dividend) / (divisor))
  /src/external/bsd/jemalloc/dist/test/unit/
div.c 13 for (size_t dividend = 0; dividend < 1000 * divisor;
14 dividend += divisor) {
16 &div_info, dividend);
17 expect_zu_eq(dividend, quotient * divisor,
18 "With divisor = %zu, dividend = %zu, "
19 "got quotient %zu", divisor, dividend, quotient);
  /src/external/bsd/jemalloc.old/dist/test/unit/
div.c 13 for (size_t dividend = 0; dividend < 1000 * divisor;
14 dividend += divisor) {
16 &div_info, dividend);
17 assert_zu_eq(dividend, quotient * divisor,
18 "With divisor = %zu, dividend = %zu, "
19 "got quotient %zu", divisor, dividend, quotient);
  /src/sys/external/bsd/drm2/include/linux/
math64.h 42 div64_u64(int64_t dividend, uint64_t divisor)
44 return dividend / divisor;
48 div_u64(int64_t dividend, uint32_t divisor)
50 return dividend / divisor;
54 div64_s64(int64_t dividend, int64_t divisor)
56 return dividend / divisor;
60 DIV64_U64_ROUND_UP(uint64_t dividend, uint64_t divisor)
62 return (dividend + (divisor - 1))/divisor;
66 div_s64(int64_t dividend, int32_t divisor)
68 return dividend / divisor
    [all...]
  /src/external/gpl3/gcc.old/dist/libgcc/config/tilepro/
softdivide.c 40 __udivsi3_inline (uint32_t dividend, uint32_t divisor)
42 /* Divide out any power of two factor from dividend and divisor.
47 dividend >>= power_of_two_factor;
57 return dividend;
82 uint32_t remainder = dividend;
103 __udivdi3_inline (uint64_t dividend, uint64_t divisor)
105 /* Divide out any power of two factor from dividend and divisor.
110 dividend >>= power_of_two_factor;
120 return dividend;
124 if (((uint32_t) (dividend >> 32) | ((uint32_t) (divisor >> 32))) == 0
    [all...]
  /src/common/lib/libc/arch/vax/gen/
udiv.S 40 * udiv() takes an ordinary dividend/divisor pair;
41 * audiv() takes a pointer to a dividend and an ordinary divisor.
44 #define DIVIDEND 4(%ap)
50 movl DIVIDEND,%r0
51 jlss Lhard # big dividend: extended division
52 divl2 %r2,%r0 # small divisor and dividend: signed division
59 cmpl DIVIDEND,%r2
60 jgequ Lone # if dividend is as big or bigger, return 1
69 movl DIVIDEND,%r3
73 jlss La_hard # big dividend: extended divisio
    [all...]
urem.S 40 * urem() takes an ordinary dividend/divisor pair;
41 * aurem() takes a pointer to a dividend and an ordinary divisor.
44 #define DIVIDEND 4(%ap)
50 movl DIVIDEND,%r0
51 jlss Lhard # big dividend: need extended division
52 divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
61 subl3 %r2,DIVIDEND,%r0
63 movl DIVIDEND,%r0 # if divisor is bigger, return dividend
69 movl DIVIDEND,%r
    [all...]
  /src/external/gpl3/gcc.old/dist/libgcc/config/arm/
lib1funcs.S 482 dividend .req r0 label
499 .macro ARM_DIV_BODY dividend, divisor, result, curbit
504 clz \curbit, \dividend
517 cmp.w \dividend, \divisor, lsl #shift
521 subcs.w \dividend, \dividend, \divisor, lsl #shift
524 clz \curbit, \dividend
535 cmp \dividend, \divisor, lsl #shift
537 subcs \dividend, \dividend, \divisor, lsl #shif
    [all...]
  /src/sys/lib/libkern/arch/m68k/
divsi3.S 57 movel 4(%sp), %d1 | load the dividend
59 negl 4(%sp) | store abs(dividend)
64 bpl 3f | branch if sgn(divisor) == sgn(dividend)
udivsi3.S 58 movel 8(%sp), %d1 | load dividend
60 | first, we divide the divisor and dividend by two until
72 movew %d1, %d2 | save low(dividend)
74 swap %d1 | %d1 = dividend >> 16
77 movew %d2, %d1 | concat(remainder, low(dividend))
89 | (dividend - divisor) <= dividendB <= dividend
96 | divisor and subtract the result from the original dividend.
122 movel 8(%sp), %d1 | load original dividend
modsi3.S 67 1: movel (%sp), %d0 | load the dividend
70 negl 4(%sp) | store abs(dividend)
  /src/external/bsd/zstd/dist/contrib/linux-kernel/
zstd_deps.h 60 * U64 ZSTD_div64(U64 dividend, U32 divisor)
68 static uint64_t ZSTD_div64(uint64_t dividend, uint32_t divisor) {
69 return div_u64(dividend, divisor);
  /src/external/bsd/zstd/dist/lib/common/
zstd_deps.h 64 * U64 ZSTD_div64(U64 dividend, U32 divisor)
70 #define ZSTD_div64(dividend, divisor) ((dividend) / (divisor))
  /src/lib/libc/arch/sparc/gen/
divrem.m4 47 * Input: dividend and divisor in %o0 and %o1 respectively.
64 * R the remainder so far, initially the dividend
71 * Current estimate for non-large dividend is
73 * A large dividend is one greater than 2^(31-TOPBITS) and takes a
83 define(dividend, `%o0')
133 orcc divisor, dividend, %g0 ! either negative?
136 `xor divisor, dividend, SIGN',
137 `mov dividend, SIGN') ! compute sign in any case
140 tst dividend
141 ! divisor is definitely negative; dividend might also be negativ
    [all...]
  /src/sys/lib/libkern/arch/sparc/
divrem.m4 47 * Input: dividend and divisor in %o0 and %o1 respectively.
64 * R the remainder so far, initially the dividend
71 * Current estimate for non-large dividend is
73 * A large dividend is one greater than 2^(31-TOPBITS) and takes a
83 define(dividend, `%o0')
133 orcc divisor, dividend, %g0 ! either negative?
136 `xor divisor, dividend, SIGN',
137 `mov dividend, SIGN') ! compute sign in any case
140 tst dividend
141 ! divisor is definitely negative; dividend might also be negativ
    [all...]
  /src/sys/lib/libkern/arch/sparc64/
divrem.m4 51 * Input: dividend and divisor in %o0 and %o1 respectively.
68 * R the remainder so far, initially the dividend
75 * Current estimate for non-large dividend is
77 * A large dividend is one greater than 2^(31-TOPBITS) and takes a
87 define(dividend, `%o0')
134 orcc divisor, dividend, %g0 ! either negative?
137 `xor divisor, dividend, SIGN',
138 `mov dividend, SIGN') ! compute sign in any case
141 tst dividend
142 ! divisor is definitely negative; dividend might also be negativ
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/test/Unit/
muldc3_test.c 54 double _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
multc3_test.c 57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
mulxc3_test.c 57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
divdc3_test.c 54 double _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
  /src/sys/external/bsd/compiler_rt/dist/test/builtins/Unit/
muldc3_test.c 55 double _Complex dividend; local
58 __real__ dividend = a; local
59 __imag__ dividend = b; local
63 switch (classify(dividend))
mulxc3_test.c 57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
  /src/external/gpl3/gcc.old/dist/gcc/
lto-streamer.cc 182 const float dividend = (float) lto_stats.num_compressed_il_bytes; local
184 fprintf (stderr, " (ratio: %f)", dividend / divisor);
217 const float dividend = (float) lto_stats.num_uncompressed_il_bytes; local
219 fprintf (stderr, " (ratio: %f)", dividend / divisor);
  /src/sys/arch/hppa/stand/common/
milli_tiny.S 34 ; %r26 dividend
53 comclr,<< %r26,%r25,%r29 ; if dividend >= divisor
78 ; %r26 dividend
99 sub,>>= %r26,%r25,%r29 ; if dividend < divisor
100 copy %r26,%r29 ; the remainder is dividend
  /src/sys/arch/m68k/060sp/dist/
ilsp.s 85 # 0x8(sp) = hi(dividend) #
86 # 0xc(sp) = lo(dividend) #
148 mov.l 0xc(%a6), %d5 # get dividend hi
149 mov.l 0x10(%a6), %d6 # get dividend lo
162 # save the sign of the dividend
163 # make dividend unsigned if it's negative
165 tst.l %d5 # chk sign of hi(dividend)
166 slt NDIVIDEND(%a6) # save sign of dividend
170 negx.l %d6 # complement signed dividend
174 # - is (dividend == 0)
    [all...]

Completed in 50 milliseconds

1 2 3