Lines Matching refs:rounding
374 set FPCR_MODE, USER_FPCR+3 # FPCR rounding mode control
6990 # Notes: This will return X with the appropriate rounding #
7079 # precision and rounding modes. To avoid unnecessary #
7113 # in the user rounding precision and mode. #
8580 #--IF 1+Z > 3/2 OR 1+Z < 1/2, THEN X, WHICH IS ROUNDING 1+Z,
9188 fmov.l %d0,%fpcr # set user's rounding mode/precision
9312 fmov.l %d0,%fpcr # set user's rounding mode/precision
9328 # fp0 = the ROM constant rounded to the user's rounding mode,prec #
9365 # fetch a pointer to the answer table relating to the proper rounding
9391 # fetch a pointer to the answer table relating to the proper rounding
9433 # fetch a pointer to the answer table relating to the proper rounding
11626 # - do the multiply to the proper precision and rounding mode.
11661 # - do the multiply to the proper precision and rounding mode in order to
11667 # multiply using extended precision and the correct rounding mode. the result
11745 # - do the multiply to the proper precision and rounding mode in order to
11772 # - do the multiply to the proper precision and rounding mode in order to
11778 # multiply using extended precision and the correct rounding mode. the result
11858 # -use the correct rounding mode and precision. this code favors operations
11882 # using RZ as the rounding mode to see what the pre-rounded result is.
12087 # or overflow because of rounding to the correct precision. so...
12650 # operation using RZ as the rounding mode to see what the pre-rounded
12860 # or overflow because of rounding to the correct precision. so...
13228 # here. For norms, load the rounding mode/prec, execute a "fint", then #
13334 # here. For norms, load the rounding mode/prec, execute a "fintrz", #
13483 # or overflow because of rounding to the correct precision. so...
14177 # using RZ as the rounding mode to see what the pre-rounded result is.
14513 # operation using RZ as the rounding mode to see what the pre-rounded
14870 # 0x8000000000000000 and this mantissa is the result of rounding non-zero
14874 # so, we do this be re-executing the add using RZ as the rounding mode and
14985 # - therefore, we return +ZERO if the rounding modes are RN,RZ, or RP.
15323 # 0x8000000000000000 and this mantissa is the result of rounding non-zero
15327 # so, we do this be re-executing the add using RZ as the rounding mode and
15437 # - therefore, we return +ZERO if the rounding mode is RN,RZ, or RP
20450 # separately. otherwise, set the FPCR to the proper rounding mode and
20688 # separately. otherwise, set the FPCR to the proper rounding mode and
21691 # d0 = rounding precision #
22027 # d1(hi) = contains rounding precision: #
22031 # d1(lo) = contains rounding mode: #
22055 # ext_grs() looks at the rounding precision and sets the appropriate
22068 # Use rounding mode as an index into a jump table for these modes.
22210 # rounding precision.
22219 # selected rounding precision. It is called by the round subroutine
22689 # d1 = rounding precision/mode #
22705 # precision and the rounding mode to single. #
22746 # the number may have become zero after rounding. set ccodes accordingly.
22806 # the number may have become zero after rounding. set ccodes accordingly.
22855 # the result and the rounding mode/prec in effect. These bits are #
22882 # use the rounding mode, precision, and result sign as in index into the
23045 # greater than 10^27, a directed rounding scheme is used with #
23063 # 10**{1,2,4,8,16,32,64,128,256,512,1024,2048,4096}. No rounding
23368 # Pwrten calculates the exponent factor in the selected rounding mode
23371 # Sign of Mant Sign of Exp Rounding Mode PWRTEN Rounding Mode
23393 bfextu %d3{&26:&2},%d2 # isolate rounding mode bits
23399 mov.b (%a1,%d2),%d0 # load new rounding bits from table
23401 bfins %d0,%d3{&26:&2} # stuff new rounding bits in FPCR
23519 # 10^^(abs(ISCALE)) using a rounding mode which is a #
23520 # function of the original rounding mode and the signs #
23526 # only one rounding error. The grs bits are collected in #
23540 # Perform FINT operation in the user's rounding mode. #
23543 # A12. Calculate YINT = FINT(Y) according to user's rounding #
23789 # the rounding mode as given in the following table (see
23895 # only one rounding error. The grs bits are collected in
23902 fmov.l &rz_mode*0x10,%fpcr # set RZ rounding mode
24031 # Perform FINT operation in the user's rounding mode. Keep
24042 # A12. Calculate YINT = FINT(Y) according to user's rounding mode.