1 dnl ARM mpn_mul_1 -- Multiply a limb vector with a limb and store the result
2 dnl in a second limb vector.
3 dnl Contributed by Robert Harley.
5 dnl Copyright 1998, 2000, 2001, 2003 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 3 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. If not, see http://www.gnu.org/licenses/.
22 include(`../config.m4')
25 C StrongARM: 6-8 (dependent on vl value)
28 C We should rewrite this along the lines of addmul_1.asm. That should save a
29 C cycle on StrongARM, and several cycles on XScale.
39 stmfd sp!, { r8, r9, lr }
49 ldmia up!, { r12, lr }
61 ldmia up!, { r8, r9, r12, lr }
62 ldr r7, [rp, #12] C cache allocate
72 stmia rp!, { r6, r7, r8, r9 }
77 ldmfd sp!, { r8, r9, pc }