1 dnl HP-PA mpn_add_n -- Add two limb vectors of the same length > 0 and store
2 dnl sum in a third limb vector. Optimized for the PA7100, where is runs at
5 dnl Copyright 1992, 1994, 2000, 2001, 2002, 2003 Free Software Foundation,
8 dnl This file is part of the GNU MP Library.
10 dnl The GNU MP Library is free software; you can redistribute it and/or modify
11 dnl it under the terms of the GNU Lesser General Public License as published
12 dnl by the Free Software Foundation; either version 3 of the License, or (at
13 dnl your option) any later version.
15 dnl The GNU MP Library is distributed in the hope that it will be useful, but
16 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 dnl License for more details.
20 dnl You should have received a copy of the GNU Lesser General Public License
21 dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
23 include(`../config.m4')
33 ldws,ma 4(0,%r25),%r20
34 ldws,ma 4(0,%r24),%r19
36 addib,<= -5,%r23,L(rest)
37 add %r20,%r19,%r28 C add first limbs ignoring cy
40 ldws,ma 4(0,%r25),%r20
41 ldws,ma 4(0,%r24),%r19
42 stws,ma %r28,4(0,%r26)
44 ldws,ma 4(0,%r25),%r20
45 ldws,ma 4(0,%r24),%r19
46 stws,ma %r28,4(0,%r26)
48 ldws,ma 4(0,%r25),%r20
49 ldws,ma 4(0,%r24),%r19
50 stws,ma %r28,4(0,%r26)
52 ldws,ma 4(0,%r25),%r20
53 ldws,ma 4(0,%r24),%r19
54 stws,ma %r28,4(0,%r26)
55 addib,> -4,%r23,L(loop)
63 ldws,ma 4(0,%r25),%r20
64 ldws,ma 4(0,%r24),%r19
65 stws,ma %r28,4(0,%r26)
66 addib,> -1,%r23,L(eloop)