[BACK]Return to sub_n.s CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / mpn / ns32k

Annotation of OpenXM_contrib/gmp/mpn/ns32k/sub_n.s, Revision 1.1.1.2

1.1.1.2 ! maekawa     1: # ns32000 __gmpn_sub_n -- Subtract two limb vectors of the same length > 0 and
1.1       maekawa     2: # store difference in a third limb vector.
                      3:
1.1.1.2 ! maekawa     4: # Copyright (C) 1992, 1994, 2000 Free Software Foundation, Inc.
1.1       maekawa     5:
                      6: # This file is part of the GNU MP Library.
                      7:
                      8: # The GNU MP Library is free software; you can redistribute it and/or modify
1.1.1.2 ! maekawa     9: # it under the terms of the GNU Lesser General Public License as published by
        !            10: # the Free Software Foundation; either version 2.1 of the License, or (at your
1.1       maekawa    11: # option) any later version.
                     12:
                     13: # The GNU MP Library is distributed in the hope that it will be useful, but
                     14: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1.1.1.2 ! maekawa    15: # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1.1       maekawa    16: # License for more details.
                     17:
1.1.1.2 ! maekawa    18: # You should have received a copy of the GNU Lesser General Public License
1.1       maekawa    19: # along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
                     20: # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
                     21: # MA 02111-1307, USA.
                     22:
                     23:
                     24:        .align 1
1.1.1.2 ! maekawa    25: .globl ___gmpn_sub_n
        !            26: ___gmpn_sub_n:
1.1       maekawa    27:        save    [r3,r4,r5]
                     28:        negd    28(sp),r3
                     29:        movd    r3,r0
                     30:        lshd    2,r0
                     31:        movd    24(sp),r4
                     32:        subd    r0,r4                   # r4 -> to end of S2
                     33:        movd    20(sp),r5
                     34:        subd    r0,r5                   # r5 -> to end of S1
                     35:        movd    16(sp),r2
                     36:        subd    r0,r2                   # r2 -> to end of RES
                     37:        subd    r0,r0                   # cy = 0
                     38:
                     39: Loop:  movd    r5[r3:d],r0
                     40:        subcd   r4[r3:d],r0
                     41:        movd    r0,r2[r3:d]
                     42:        acbd    1,r3,Loop
                     43:
                     44:        scsd    r0                      # r0 = cy.
                     45:        restore [r5,r4,r3]
                     46:        ret     0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>