Lines Matching refs:ROUND
532 set rn_mode, 0x0 # round-to-nearest
533 set rz_mode, 0x1 # round-to-zero
534 set rm_mode, 0x2 # round-tp-minus-infinity
535 set rp_mode, 0x3 # round-to-plus-infinity
5820 # d0 = guard,round,sticky #
5826 # mantissa bits right, maintain the value of the guard, round, and #
5882 # %d0{31:29} : initial guard,round,sticky #
5886 # %d0{31:29} : final guard,round,sticky #
6143 # _round(): round result according to precision/mode #
6180 # If (G,R,S == 0) then result is exact and round is done, else set
6186 beq.w truncate # yes; round is complete
6204 # ROUND PLUS INFINITY #
6213 swap %d1 # set up d1 for round prec.
6221 # ROUND MINUS INFINITY #
6230 swap %d1 # set up d1 for round prec.
6238 # ROUND NEAREST #
6241 # Note that this will round to even in case of a tie. #
6247 swap %d1 # set up d1 for round prec.
6332 # ext_grs(): extract guard, round and sticky bits according to
6337 # d1 = {PREC,ROUND}
6339 # d0{31:29} = guard, round, sticky
6341 # The ext_grs extract the guard/round/sticky bits according to the
6342 # selected rounding precision. It is called by the round subroutine
6344 # updated guard,round,sticky in d0{31:29}
6346 # Notes: the ext_grs uses the round PREC, and therefore has to swap d1
6348 # routine is tightly tied to the round routine and not meant to
6353 swap %d1 # have d1.w point to round precision
6803 # single round prec and extended prec mode. #
6807 # _round() - round denormalized number according to rnd prec #
6822 # according to the scale factor passed in d0. Then, round the #
6858 bsr.l _round # round the denorm
6918 bsr.l _round # round the denorm
7080 # d0 = round prec,mode #
7374 fmov.s %fp0,%d0 # store does convert and round
7402 # so, denorm and round and then use generic store single routine to
7569 bsr.l _round # round the DENORM
7612 fmov.d %fp0,L_SCR1(%a6) # store does convert and round
7631 # so, denorm and round and then use generic store double routine to
7757 # Note: no attempt is made to round the extended value to double. #
8217 # for fun, let's use only extended precision, round to zero. then, let
8474 # d0 = round prec/mode #
8716 # the INEX2 bit has already been updated by the round to the correct precision.
8717 # now, round to extended(and don't alter the FPSR).
9496 # the INEX2 bit has already been updated by the round to the correct precision.
9497 # now, round to extended(and don't alter the FPSR).
9653 # d0 = round precision/mode #
9759 # d0 = round precision/mode #
10111 # the INEX2 bit has already been updated by the round to the correct precision.
10112 # now, round to extended(and don't alter the FPSR).
10185 # d0 = round prec/mode #
12193 # the INEX2 bit has already been updated by the round to the correct precision.
12194 # now, round to extended(and don't alter the FPSR).
13496 # If INEX is set, round error occurred. This is #
13962 # If INEX is set, round error occurred. This is compensated