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

1 2

  /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/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/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/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') macro
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') macro
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') macro
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 in function:test__muldc3
57 __real__ dividend = a; local in function:test__muldc3
58 __imag__ dividend = b; local in function:test__muldc3
62 switch (classify(dividend))
multc3_test.c 57 long double _Complex dividend; local in function:test__multc3
60 __real__ dividend = a; local in function:test__multc3
61 __imag__ dividend = b; local in function:test__multc3
65 switch (classify(dividend))
mulxc3_test.c 57 long double _Complex dividend; local in function:test__mulxc3
60 __real__ dividend = a; local in function:test__mulxc3
61 __imag__ dividend = b; local in function:test__mulxc3
65 switch (classify(dividend))
divdc3_test.c 54 double _Complex dividend; local in function:test__divdc3
57 __real__ dividend = a; local in function:test__divdc3
58 __imag__ dividend = b; local in function:test__divdc3
62 switch (classify(dividend))
divsc3_test.c 54 float _Complex dividend; local in function:test__divsc3
57 __real__ dividend = a; local in function:test__divsc3
58 __imag__ dividend = b; local in function:test__divsc3
62 switch (classify(dividend))
divtc3_test.c 58 long double _Complex dividend; local in function:test__divtc3
61 __real__ dividend = a; local in function:test__divtc3
62 __imag__ dividend = b; local in function:test__divtc3
66 switch (classify(dividend))
divxc3_test.c 57 long double _Complex dividend; local in function:test__divxc3
60 __real__ dividend = a; local in function:test__divxc3
61 __imag__ dividend = b; local in function:test__divxc3
65 switch (classify(dividend))
mulsc3_test.c 54 float _Complex dividend; local in function:test__mulsc3
57 __real__ dividend = a; local in function:test__mulsc3
58 __imag__ dividend = b; local in function:test__mulsc3
62 switch (classify(dividend))
  /src/sys/external/bsd/compiler_rt/dist/test/builtins/Unit/
muldc3_test.c 55 double _Complex dividend; local in function:test__muldc3
58 __real__ dividend = a; local in function:test__muldc3
59 __imag__ dividend = b; local in function:test__muldc3
63 switch (classify(dividend))
mulxc3_test.c 57 long double _Complex dividend; local in function:test__mulxc3
60 __real__ dividend = a; local in function:test__mulxc3
61 __imag__ dividend = b; local in function:test__mulxc3
65 switch (classify(dividend))
divdc3_test.c 55 double _Complex dividend; local in function:test__divdc3
58 __real__ dividend = a; local in function:test__divdc3
59 __imag__ dividend = b; local in function:test__divdc3
63 switch (classify(dividend))
divsc3_test.c 55 float _Complex dividend; local in function:test__divsc3
58 __real__ dividend = a; local in function:test__divsc3
59 __imag__ dividend = b; local in function:test__divsc3
63 switch (classify(dividend))
divtc3_test.c 57 long double _Complex dividend; local in function:test__divtc3
60 __real__ dividend = a; local in function:test__divtc3
61 __imag__ dividend = b; local in function:test__divtc3
65 switch (classify(dividend))
divxc3_test.c 57 long double _Complex dividend; local in function:test__divxc3
60 __real__ dividend = a; local in function:test__divxc3
61 __imag__ dividend = b; local in function:test__divxc3
65 switch (classify(dividend))
  /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 49 milliseconds

1 2