.
[glibc/history.git] / sysdeps / vax / sub_n.s
bloba891c4425a1c1a82ea98f1d740d281b86311c45b
1 # VAX __mpn_sub_n -- Subtract two limb vectors of the same length > 0 and store
2 # difference 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., 59 Temple Place - Suite 330, Boston,
21 # MA 02111-1307, USA.
24 # INPUT PARAMETERS
25 # res_ptr (sp + 4)
26 # s1_ptr (sp + 8)
27 # s2_ptr (sp + 12)
28 # size (sp + 16)
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
41 Loop:
42 movl (r2)+,r4
43 sbwc (r1)+,r4
44 movl r4,(r3)+
45 jsobgtr r0,Loop
47 adwc r0,r0
48 ret