1 @ ARM mpn_add -- Add two limb vectors of the same length > 0 and store sum in
3 @ Contributed by Robert Harley.
5 @ Copyright (C) 1997, 2000 Free Software Foundation, Inc.
7 @ This file is part of the GNU MP Library.
9 @ The GNU MP Library is free software; you can redistribute it and/or modify
10 @ it under the terms of the GNU Lesser General Public License as published by
11 @ the Free Software Foundation; either version 2.1 of the License, or (at your
12 @ option) any later version.
14 @ The GNU MP Library is distributed in the hope that it will be useful, but
15 @ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 @ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 @ License for more details.
19 @ You should have received a copy of the GNU Lesser General Public License
20 @ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
21 @ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
39 .type __gmpn_add_n,%function
41 stmfd sp!, { r8, r9, lr }
59 stmfd sp!, { r4, r5, r6, r7 }
61 ldmia a!, { r4, r5, r6, r7 }
62 ldmia b!, { r8, r9, ip, lr }
64 ldr r8, [s] /* Bring stuff into cache. */
68 stmia s!, { r4, r5, r6, r7 }
72 ldmfd sp!, { r4, r5, r6, r7 }
75 ldmfd sp!, { r8, r9, pc }
77 .size __gmpn_add_n, end - __gmpn_add_n