1 dnl PowerPC
-64 mpn_copyi.
3 dnl Copyright
2004, 2005, 2013 Free Software Foundation
, Inc.
5 dnl
This file is part of the GNU MP Library.
7 dnl The GNU MP Library is free software
; you can redistribute it and/or modify
8 dnl it under the terms of
either:
10 dnl
* the GNU Lesser General
Public License as published by the Free
11 dnl Software Foundation
; either version 3 of the License, or (at your
12 dnl option
) any later version.
16 dnl
* the GNU General
Public License as published by the Free Software
17 dnl Foundation
; either version 2 of the License, or (at your option) any
20 dnl
or both
in parallel
, as here.
22 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
23 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
24 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
27 dnl You should have received copies of the GNU General
Public License
and the
28 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
29 dnl see
https://www.gnu.
org/licenses
/.
31 include(`..
/config.m4
')
46 C * Try rolling the two loop leading std to the end, allowing the code to
48 C * Consider using 4 pointers, schedule ptr update early wrt use.
53 ifdef(`HAVE_ABI_mode32',
64 rlwinm r11, n, 0,30,30
65 rlwinm r12, n, 0,29,29
75 L(xx0): bne cr6, L(x10)
79 L(000): addi rp, rp, -32
81 L(100): addi up, up, -32
86 L(010): addi up, up, 16
89 L(110): addi up, up, -16
93 L(sml): cmpdi cr0, n, 0
104 L(top): std r6, 0(rp)
110 L(lo0): ld r8, 16(up)
114 L(lo6): ld r6, 32(up)
119 L(lo4): ld r8, 48(up)
124 L(end): std r6, 0(rp)