Lines Matching refs:quotient
87 # 0x10(sp) = pointer to location to place quotient/remainder #
90 # 0x10(sp) = points to location of remainder/quotient. #
91 # remainder is in first longword, quotient is in 2nd. #
214 eor.b %d0, NDIVIDEND(%a6) # chk if quotient is negative
231 # if the register numbers are the same, only the quotient gets saved.
232 # so, if we always save the quotient second, we save ourselves a cmp&beq
288 # The quotient is returned in %d6, remainder in %d5, unless the #
301 # In the general case, four quotient words would be created by
303 # the first two quotient words must be zero, or overflow would occur.
306 # the last two divisions to get a quotient longword and word remainder:
315 mov.w %d5, %d1 # first quotient word
322 mov.w %d5, %d1 # 2nd quotient 'digit'
325 mov.l %d1, %d6 # and quotient
331 # which is divided into a 3 digit (word) dividend to get one quotient
333 # process repeated. Before beginning, the divisor and quotient are
334 # 'normalized' so that the process of estimating the quotient digit
338 clr.b DDSECOND(%a6) # clear flag for quotient digits
339 clr.l %d1 # %d1 will hold trial quotient
350 # Now calculate an estimate of the quotient words (msw first, then lsw).
351 # The comments use subscripts for the first quotient digit determination.
358 mov.w &0xffff, %d1 # use max trial quotient word
363 divu.w %d3, %d1 # use quotient of mslw/msw
368 # now test the trial quotient and adjust. This step plus the
370 # quotient will be at worst 1 too large.
410 bcc ldd2nd # no carry, do next quotient digit
428 # first quotient digit now correct. store digit and shift the
439 # add 2nd word to quotient, get the remainder.
454 mov.l DDQUOTIENT(%a6), %d6 # quotient