Home | History | Annotate | Download | only in dist

Lines Matching refs:dividend

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) ?
175 # - is (hi(dividend) == 0 && (divisor <= lo(dividend))) ? (32-bit div)
177 tst.l %d5 # is (hi(dividend) == 0)
180 tst.l %d6 # is (lo(dividend) == 0), too
181 beq.w lddone # yes, so (dividend == 0)
183 cmp.l %d7,%d6 # is (divisor <= lo(dividend))
186 exg %d5,%d6 # q = 0, r = dividend
196 # - is hi(dividend) >= divisor ? if yes, then overflow
210 beq.b ldcc # as dividend.
211 neg.l %d5 # sgn(rem) = sgn(dividend)
251 # the result should be the unchanged dividend
253 mov.l 0xc(%a6), %d5 # get dividend hi
254 mov.l 0x10(%a6), %d6 # get dividend lo
282 # where U,V are words of the quadword dividend and longword divisor, #
285 # The most sig. longword of the 64 bit dividend must be in %d5, least #
289 # v (overflow) bit is set in the saved %ccr. If overflow, the dividend #
299 # Since the divisor is only a word (and larger than the mslw of the dividend),
302 # dividing the divisor word into each dividend word. In this case,
305 # longword of the dividend as (0) remainder (see Knuth) and merely complete
331 # which is divided into a 3 digit (word) dividend to get one quotient
332 # digit (word). After subtraction, the dividend is shifted and the
353 mov.l %d5, %d2 # dividend mslw
398 # the 3 digit (word) result with the current dividend words
406 mov.l (%sp)+, %d5 # restore dividend
412 # need to add back divisor longword to current ms 3 digits of dividend
414 # divisor, dividend selection.
419 add.l %d3, %d6 # aligned with 3rd word of dividend
423 swap %d3 # aligned with 2nd word of dividend
429 # (subtracted) dividend