3 dnl Contributed to the GNU project by Torbjörn Granlund.
5 dnl Copyright
2012 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
either:
12 dnl
* the GNU Lesser General
Public License as published by the Free
13 dnl Software Foundation
; either version 3 of the License, or (at your
14 dnl option
) any later version.
18 dnl
* the GNU General
Public License as published by the Free Software
19 dnl Foundation
; either version 2 of the License, or (at your option) any
22 dnl
or both
in parallel
, as here.
24 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
25 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
26 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
29 dnl You should have received copies of the GNU General
Public License
and the
30 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
31 dnl see
https://www.gnu.
org/licenses
/.
33 include(`..
/config.m4
')
45 C * This is a trivial edit of the addmul_2 code. Check for simplifications,
46 C and possible speedups to 2.0 c/l.
64 push { r4, r5, r6, r7, r8, r9 }
77 L(fi3): sub up, up, #12
89 L(fi0): sub up, up, #8
97 L(top): ldr u0, [up, #4]
101 umaal r5, cyb, u1, v1
102 L(lo1): ldr u1, [up, #8]
103 umaal r5, cya, u0, v0
106 umaal r4, cyb, u0, v1
107 L(lo0): ldr u0, [up, #12]
108 umaal r4, cya, u1, v0
111 umaal r5, cyb, u1, v1
112 L(lo3): ldr u1, [up, #16]!
113 umaal r5, cya, u0, v0
116 umaal r4, cyb, u0, v1
120 L(end): umaal r4, cya, u1, v0
122 umaal r5, cyb, u1, v1
124 umaal r5, cya, u0, v0
125 umaal cya, cyb, u0, v1
130 pop { r4, r5, r6, r7, r8, r9 }