(+cflags): Append to this instead of CFLAGS.
[glibc.git] / sysdeps / vax / add_n.s
blobc89b2260511ddbc77fc284c2b66e985d6e735c33
1 # VAX __mpn_add_n -- Add two limb vectors of the same length > 0 and store
2 # sum in a third limb vector.
4 # Copyright (C) 1992, 1994 Free Software Foundation, Inc.
6 # This file is part of the GNU MP Library.
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
23 # INPUT PARAMETERS
24 # res_ptr (sp + 4)
25 # s1_ptr (sp + 8)
26 # s2_ptr (sp + 12)
27 # size (sp + 16)
29 .text
30 .align 1
31 .globl ___mpn_add_n
32 ___mpn_add_n:
33 .word 0x0
34 movl 16(ap),r0
35 movl 12(ap),r1
36 movl 8(ap),r2
37 movl 4(ap),r3
38 subl2 r4,r4
40 Loop:
41 movl (r2)+,r4
42 adwc (r1)+,r4
43 movl r4,(r3)+
44 jsobgtr r0,Loop
46 adwc r0,r0
47 ret