1
dnl ARM mpn_addmul_1 -- Multiply a limb vector with a limb and add the result
2
dnl to a second limb vector.
3
dnl Contributed by Robert Harley.
5
dnl Copyright 1998, 2000, 2001 Free Software Foundation, Inc.
7
dnl This file is part of the GNU MP Library.
9
dnl The GNU MP Library is free software; you can redistribute it and/or modify
10
dnl it under the terms of the GNU Lesser General Public License as published
11
dnl by the Free Software Foundation; either version 2.1 of the License, or (at
12
dnl your option) any later version.
14
dnl The GNU MP Library is distributed in the hope that it will be useful, but
15
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17
dnl License for more details.
19
dnl You should have received a copy of the GNU Lesser General Public License
20
dnl along with the GNU MP Library; see the file COPYING.LIB. If not, write to
21
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22
dnl MA 02111-1307, USA.
24
include(`../config.m4')
26
C This runs at 10 cycles/limb in the StrongARM. Should make this look more
27
C like the submul code, since that uses fewer registers and runs slightly
37
PROLOGUE(mpn_addmul_1)
38
stmfd sp!, { r8-r11, lr }
64
ldmia rp, { r5, r6, r7, r8 }
67
ldmia up!, { r9, r10, ip, lr }
79
stmia rp!, { r4, r5, r6, r7 }
84
ldmfd sp!, { r8-r11, pc }
85
EPILOGUE(mpn_addmul_1)