patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / m68k / fpsp040 / kernel_ex.S
index 2cc0976..476b711 100644 (file)
@@ -1,19 +1,19 @@
 |
-|      kernel_ex.sa 3.3 12/19/90 
+|      kernel_ex.sa 3.3 12/19/90
 |
-| This file contains routines to force exception status in the 
+| This file contains routines to force exception status in the
 | fpu for exceptional cases detected or reported within the
 | transcendental functions.  Typically, the t_xx routine will
 | set the appropriate bits in the USER_FPSR word on the stack.
 | The bits are tested in gen_except.sa to determine if an exceptional
-| situation needs to be created on return from the FPSP. 
+| situation needs to be created on return from the FPSP.
 |
 
 |              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.
 
 KERNEL_EX:    |idnt    2,1 | Motorola 040 Floating Point Software Package
@@ -31,7 +31,7 @@ huge:     .long 0x7ffe0000,0xffffffff,0xffffffff
        |xref     unf_sub
        |xref     nrm_set
 
-       .global           t_dz
+       .global   t_dz
        .global      t_dz2
        .global      t_operr
        .global      t_unfl
@@ -49,7 +49,7 @@ huge:     .long 0x7ffe0000,0xffffffff,0xffffffff
 |
 |      if dz trap disabled
 |              store properly signed inf (use sign of etemp) into fp0
-|              set FPSR exception status dz bit, condition code 
+|              set FPSR exception status dz bit, condition code
 |              inf bit, and accrued dz bit
 |              return
 |              frestore the frame into the machine (done by unimp_hd)
@@ -61,7 +61,7 @@ huge:     .long 0x7ffe0000,0xffffffff,0xffffffff
 |              frestore the frame into the machine (done by unimp_hd)
 |
 | t_dz2 is used by monadic functions such as flogn (from do_func).
-| t_dz is used by monadic functions such as satanh (from the 
+| t_dz is used by monadic functions such as satanh (from the
 | transcendental function).
 |
 t_dz2:
@@ -104,10 +104,10 @@ dz_ena_end:
 |      OPERR exception
 |
 |      if (operr trap disabled)
-|              set FPSR exception status operr bit, condition code 
+|              set FPSR exception status operr bit, condition code
 |              nan bit; Store default NAN into fp0
 |              frestore the frame into the machine (done by unimp_hd)
-|      
+|
 |      else (operr trap enabled)
 |              set FPSR exception status operr bit, accrued operr bit
 |              set flag to disable sto_res from corrupting fp register
@@ -159,13 +159,13 @@ unfl_ena:
 
 unfl_dis:
        bfextu  FPCR_MODE(%a6){#0:#2},%d0       |get round precision
-       
+
        bclrb   #sign_bit,LOCAL_EX(%a0)
        sne     LOCAL_SGN(%a0)          |convert to internal ext format
 
        bsr     unf_sub                 |returns IEEE result at a0
 |                                      ;and sets FPSR_CC accordingly
-       
+
        bfclr   LOCAL_SGN(%a0){#0:#8}   |convert back to IEEE ext format
        beqs    unfl_fin
 
@@ -175,7 +175,7 @@ unfl_dis:
 unfl_fin:
        fmovemx (%a0),%fp0-%fp0         |store result in fp0
        rts
-       
+
 
 |
 |      t_ovfl2 --- OVFL exception (without inex2 returned)
@@ -280,7 +280,7 @@ no_uacc1:
 |      DST_NAN
 |
 | Determine if the destination nan is signalling or non-signalling,
-| and set the FPSR bits accordingly.  See the MC68040 User's Manual 
+| and set the FPSR bits accordingly.  See the MC68040 User's Manual
 | section 3.2.2.5 NOT-A-NUMBERS.
 |
 dst_nan:
@@ -288,7 +288,7 @@ dst_nan:
        beqs    dst_pos                 |if clr, it was positive
        bsetb   #neg_bit,FPSR_CC(%a6)   |set N bit
 dst_pos:
-       btstb   #signan_bit,FPTEMP_HI(%a6) |check if signalling 
+       btstb   #signan_bit,FPTEMP_HI(%a6) |check if signalling
        beqs    dst_snan                |branch if signalling
 
        fmovel  %d1,%fpcr                       |restore user's rmode/prec
@@ -300,14 +300,14 @@ dst_pos:
        andib   #0xe0,%d0
        cmpib   #0x60,%d0
        bnes    no_snan
-       btstb   #signan_bit,ETEMP_HI(%a6) |check if signalling 
+       btstb   #signan_bit,ETEMP_HI(%a6) |check if signalling
        bnes    no_snan
        orl     #snaniop_mask,USER_FPSR(%a6) |set NAN, SNAN, AIOP
 no_snan:
-       rts     
+       rts
 
 dst_snan:
-       btstb   #snan_bit,FPCR_ENABLE(%a6) |check if trap enabled 
+       btstb   #snan_bit,FPCR_ENABLE(%a6) |check if trap enabled
        beqs    dst_dis                 |branch if disabled
 
        orb     #nan_tag,DTAG(%a6)      |set up dtag for nan
@@ -316,9 +316,9 @@ dst_snan:
        rts
 
 dst_dis:
-       bsetb   #signan_bit,FPTEMP_HI(%a6) |set SNAN bit in sop 
+       bsetb   #signan_bit,FPTEMP_HI(%a6) |set SNAN bit in sop
        fmovel  %d1,%fpcr                       |restore user's rmode/prec
-       fmovex FPTEMP(%a6),%fp0         |load non-sign. nan 
+       fmovex FPTEMP(%a6),%fp0         |load non-sign. nan
        orl     #snaniop_mask,USER_FPSR(%a6) |set NAN, SNAN, AIOP
        rts
 
@@ -326,7 +326,7 @@ dst_dis:
 |      SRC_NAN
 |
 | Determine if the source nan is signalling or non-signalling,
-| and set the FPSR bits accordingly.  See the MC68040 User's Manual 
+| and set the FPSR bits accordingly.  See the MC68040 User's Manual
 | section 3.2.2.5 NOT-A-NUMBERS.
 |
 src_nan:
@@ -334,16 +334,16 @@ src_nan:
        beqs    src_pos                 |if clr, it was positive
        bsetb   #neg_bit,FPSR_CC(%a6)   |set N bit
 src_pos:
-       btstb   #signan_bit,ETEMP_HI(%a6) |check if signalling 
+       btstb   #signan_bit,ETEMP_HI(%a6) |check if signalling
        beqs    src_snan                |branch if signalling
        fmovel  %d1,%fpcr                       |restore user's rmode/prec
        fmovex ETEMP(%a6),%fp0          |return the non-signalling nan
-       rts     
+       rts
 
 src_snan:
-       btstb   #snan_bit,FPCR_ENABLE(%a6) |check if trap enabled 
+       btstb   #snan_bit,FPCR_ENABLE(%a6) |check if trap enabled
        beqs    src_dis                 |branch if disabled
-       bsetb   #signan_bit,ETEMP_HI(%a6) |set SNAN bit in sop 
+       bsetb   #signan_bit,ETEMP_HI(%a6) |set SNAN bit in sop
        orb     #norm_tag,DTAG(%a6)     |set up dtag for norm
        orb     #nan_tag,STAG(%a6)      |set up stag for nan
        st      STORE_FLG(%a6)          |do not store a result
@@ -351,9 +351,9 @@ src_snan:
        rts
 
 src_dis:
-       bsetb   #signan_bit,ETEMP_HI(%a6) |set SNAN bit in sop 
+       bsetb   #signan_bit,ETEMP_HI(%a6) |set SNAN bit in sop
        fmovel  %d1,%fpcr                       |restore user's rmode/prec
-       fmovex ETEMP(%a6),%fp0          |load non-sign. nan 
+       fmovex ETEMP(%a6),%fp0          |load non-sign. nan
        orl     #snaniop_mask,USER_FPSR(%a6) |set NAN, SNAN, AIOP
        rts
 
@@ -367,7 +367,7 @@ t_extdnrm:
        bras    xdnrm_con
 |
 | Entry point for scale with extended denorm.  The function does
-| not set inex2, aunfl, or ainex.  
+| not set inex2, aunfl, or ainex.
 |
 t_resdnrm:
        orl     #unfl_mask,USER_FPSR(%a6)
@@ -402,7 +402,7 @@ xdnrm_dn:
        bfclr   LOCAL_SGN(%a0){#0:#8}   |change back to IEEE ext format
        beqs    xdep
        bsetb   #sign_bit,LOCAL_EX(%a0)
-xdep:  
+xdep:
        bfclr   STAG(%a6){#5:#3}                |clear wbtm66,wbtm1,wbtm0
        bsetb   #wbtemp15_bit,WB_BYTE(%a6) |set wbtemp15
        bclrb   #sticky_bit,STICKY(%a6) |clear sticky bit
@@ -439,7 +439,7 @@ xdnrm_store:
 |
        .global t_avoid_unsupp
 t_avoid_unsupp:
-       link    %a2,#-LOCAL_SIZE                |so that a2 fpsp.h negative 
+       link    %a2,#-LOCAL_SIZE                |so that a2 fpsp.h negative
 |                                      ;offsets may be used
        fsave   -(%a7)
        tstb    1(%a7)                  |check if idle, exit if so