1 dnl HP-PA mpn_lshift -- Shift a number left.
2 dnl Optimized for the PA7100, where is runs at 3.25 cycles/limb.
4 dnl Copyright 1992, 1994, 2000, 2001, 2002, 2003 Free Software Foundation,
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')
34 ldws,mb -4(0,%r25),%r22
37 addib,= -1,%r24,L(0004)
38 vshd %r0,%r22,%r28 C compute carry out limb
39 ldws,mb -4(0,%r25),%r29
40 addib,<= -5,%r24,L(rest)
44 ldws,mb -4(0,%r25),%r22
45 stws,mb %r20,-4(0,%r26)
47 ldws,mb -4(0,%r25),%r29
48 stws,mb %r20,-4(0,%r26)
50 ldws,mb -4(0,%r25),%r22
51 stws,mb %r20,-4(0,%r26)
53 ldws,mb -4(0,%r25),%r29
54 stws,mb %r20,-4(0,%r26)
55 addib,> -4,%r24,L(loop)
59 addib,= 4,%r24,L(end1)
63 ldws,mb -4(0,%r25),%r22
64 stws,mb %r20,-4(0,%r26)
65 addib,<= -1,%r24,L(end2)
67 ldws,mb -4(0,%r25),%r29
68 stws,mb %r20,-4(0,%r26)
69 addib,> -1,%r24,L(eloop)
73 stws,mb %r20,-4(0,%r26)
79 stws,mb %r20,-4(0,%r26)