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 2.1 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; see the file COPYING.LIB. If not, write
19
dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
dnl Boston, MA 02110-1301, USA.
22
include(`../config.m4')
35
rldic. r0, r5, 3, 59 C r0 = (r5 & 3) << 3; cr0 = (n == 4t)?
36
cmpldi cr6, r0, 16 C cr6 = (n cmp 4t + 2)?
38
ifdef(`HAVE_ABI_mode32',
39
` rldic r6, r5, 3, 32', C byte count corresponding to n
40
` rldicr r6, r5, 3, 60') C byte count corresponding to n
42
addi r5, r5, 4 C compute...
43
ifdef(`HAVE_ABI_mode32',
44
` rldicl r5, r5, 62,34', C ...branch count
45
` rldicl r5, r5, 62, 2') C ...branch count
50
sub r4, r4, r0 C offset up
51
sub r3, r3, r0 C offset rp
67
L(L00): addi r4, r4, -32