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

Annotation of OpenXM_contrib/gmp/mpn/vax/sub_n.s, Revision 1.1

1.1     ! maekawa     1: # VAX __mpn_sub_n -- Subtract two limb vectors of the same length > 0 and store
        !             2: # difference in a third limb vector.
        !             3:
        !             4: # Copyright (C) 1992, 1994 Free Software Foundation, Inc.
        !             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
        !             9: # it under the terms of the GNU Library General Public License as published by
        !            10: # the Free Software Foundation; either version 2 of the License, or (at your
        !            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
        !            15: # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
        !            16: # License for more details.
        !            17:
        !            18: # You should have received a copy of the GNU Library General Public License
        !            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: # INPUT PARAMETERS
        !            25: # res_ptr      (sp + 4)
        !            26: # s1_ptr       (sp + 8)
        !            27: # s2_ptr       (sp + 12)
        !            28: # size         (sp + 16)
        !            29:
        !            30: .text
        !            31:        .align 1
        !            32: .globl ___mpn_sub_n
        !            33: ___mpn_sub_n:
        !            34:        .word   0x0
        !            35:        movl    16(ap),r0
        !            36:        movl    12(ap),r1
        !            37:        movl    8(ap),r2
        !            38:        movl    4(ap),r3
        !            39:        subl2   r4,r4
        !            40:
        !            41: Loop:
        !            42:        movl    (r2)+,r4
        !            43:        sbwc    (r1)+,r4
        !            44:        movl    r4,(r3)+
        !            45:        jsobgtr r0,Loop
        !            46:
        !            47:        adwc    r0,r0
        !            48:        ret

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