patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / m68k / fpsp040 / sint.S
index f04653e..0f9bd28 100644 (file)
@@ -1,8 +1,8 @@
 |
 |      sint.sa 3.1 12/10/90
 |
-|      The entry point sINT computes the rounded integer 
-|      equivalent of the input argument, sINTRZ computes 
+|      The entry point sINT computes the rounded integer
+|      equivalent of the input argument, sINTRZ computes
 |      the integer rounded to zero of the input argument.
 |
 |      Entry points sint and sintrz are called from do_func
 |
 |      Algorithm: (sint and sintrz)
 |
-|      1. If exp(X) >= 63, return X. 
+|      1. If exp(X) >= 63, return X.
 |         If exp(X) < 0, return +/- 0 or +/- 1, according to
 |         the rounding mode.
-|      
+|
 |      2. (X is in range) set rsc = 63 - exp(X). Unnormalize the
 |         result to the exponent $403e.
 |
@@ -51,8 +51,8 @@
 |              Copyright (C) Motorola, Inc. 1990
 |                      All Rights Reserved
 |
-|      THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MOTOROLA 
-|      The copyright notice above does not evidence any  
+|      THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MOTOROLA
+|      The copyright notice above does not evidence any
 |      actual or intended publication of such source code.
 
 |SINT    idnt    2,1 | Motorola 040 Floating Point Software Package
@@ -78,9 +78,9 @@
 sint:
        bfextu  FPCR_MODE(%a6){#2:#2},%d1       |use user's mode for rounding
 |                                      ;implicitly has extend precision
-|                                      ;in upper word. 
+|                                      ;in upper word.
        movel   %d1,L_SCR1(%a6)         |save mode bits
-       bras    sintexc                 
+       bras    sintexc
 
 |
 |      FINT with extended denorm inputs.
@@ -115,13 +115,13 @@ sintmz:
 sintrz:
        movel   #1,L_SCR1(%a6)          |use rz mode for rounding
 |                                      ;implicitly has extend precision
-|                                      ;in upper word. 
-       bras    sintexc                 
+|                                      ;in upper word.
+       bras    sintexc
 |
 |      SINTDO
 |
 |      Input:  a0 points to an IEEE extended format operand
-|      Output: fp0 has the result 
+|      Output: fp0 has the result
 |
 | Exceptions:
 |
@@ -133,7 +133,7 @@ sintrz:
 sintdo:
        bfextu  FPCR_MODE(%a6){#2:#2},%d1       |use user's mode for rounding
 |                                      ;implicitly has ext precision
-|                                      ;in upper word. 
+|                                      ;in upper word.
        movel   %d1,L_SCR1(%a6)         |save mode bits
 |
 | Real work of sint is in sintexc
@@ -141,7 +141,7 @@ sintdo:
 sintexc:
        bclrb   #sign_bit,LOCAL_EX(%a0) |convert to internal extended
 |                                      ;format
-       sne     LOCAL_SGN(%a0)          
+       sne     LOCAL_SGN(%a0)
        cmpw    #0x403e,LOCAL_EX(%a0)   |check if (unbiased) exp > 63
        bgts    out_rnge                        |branch if exp < 63
        cmpw    #0x3ffd,LOCAL_EX(%a0)   |check if (unbiased) exp < 0
@@ -187,7 +187,7 @@ un_rnrz:
 un_rnrz_neg:
        bsr     ld_mzero
        bra     t_inx2
-       
+
 |
 | Input is greater than 2^63.  All bits are significant.  Return
 | the input.
@@ -206,7 +206,7 @@ intps:
        rts
 
 in_rnge:
-|                                      ;shift off fraction bits
+|                                      ;shift off fraction bits
        clrl    %d0                     |clear d0 - initial g,r,s for
 |                                      ;dnrm_lp
        movel   #0x403e,%d1             |set threshold for dnrm_lp