1 dnl PowerPC-64 mpn_copyd
3 dnl Copyright 2004, 2005 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 the GNU Lesser General Public License as published
9 dnl by the Free Software Foundation; either version 3 of the License, or (at
10 dnl your option) any later version.
12 dnl The GNU MP Library is distributed in the hope that it will be useful, but
13 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 dnl License for more details.
17 dnl You should have received a copy of the GNU Lesser General Public License
18 dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
20 include(`../config.m4')
36 rldic. r0, r5, 3, 59 C r0 = (r5 & 3) << 3; cr0 = (n == 4t)?
37 cmpldi cr6, r0, 16 C cr6 = (n cmp 4t + 2)?
39 ifdef(`HAVE_ABI_mode32',
40 ` rldic r6, r5, 3, 32', C byte count corresponding to n
41 ` rldicr r6, r5, 3, 60') C byte count corresponding to n
43 addi r5, r5, 4 C compute...
44 ifdef(`HAVE_ABI_mode32',
45 ` rldicl r5, r5, 62,34', C ...branch count
46 ` rldicl r5, r5, 62, 2') C ...branch count
51 sub r4, r4, r0 C offset up
52 sub r3, r3, r0 C offset rp
68 L(L00): addi r4, r4, -32