• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m68k/ifpsp060/src/

Lines Matching refs:quotient

77 #	0x10(sp) = pointer to location to place quotient/remainder	#
80 # 0x10(sp) = points to location of remainder/quotient. #
81 # remainder is in first longword, quotient is in 2nd. #
204 eor.b %d0, NDIVIDEND(%a6) # chk if quotient is negative
221 # if the register numbers are the same, only the quotient gets saved.
222 # so, if we always save the quotient second, we save ourselves a cmp&beq
278 # The quotient is returned in %d6, remainder in %d5, unless the #
291 # In the general case, four quotient words would be created by
293 # the first two quotient words must be zero, or overflow would occur.
296 # the last two divisions to get a quotient longword and word remainder:
305 mov.w %d5, %d1 # first quotient word
312 mov.w %d5, %d1 # 2nd quotient 'digit'
315 mov.l %d1, %d6 # and quotient
321 # which is divided into a 3 digit (word) dividend to get one quotient
323 # process repeated. Before beginning, the divisor and quotient are
324 # 'normalized' so that the process of estimating the quotient digit
328 clr.b DDSECOND(%a6) # clear flag for quotient digits
329 clr.l %d1 # %d1 will hold trial quotient
340 # Now calculate an estimate of the quotient words (msw first, then lsw).
341 # The comments use subscripts for the first quotient digit determination.
348 mov.w &0xffff, %d1 # use max trial quotient word
353 divu.w %d3, %d1 # use quotient of mslw/msw
358 # now test the trial quotient and adjust. This step plus the
360 # quotient will be at worst 1 too large.
400 bcc ldd2nd # no carry, do next quotient digit
418 # first quotient digit now correct. store digit and shift the
429 # add 2nd word to quotient, get the remainder.
444 mov.l DDQUOTIENT(%a6), %d6 # quotient