3
* Copyright (C) 1992, 1994, 1998
4
* 2001, 2002 Free Software Foundation, Inc.
6
* This file is part of Libgcrypt.
8
* Libgcrypt is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as
10
* published by the Free Software Foundation; either version 2.1 of
11
* the License, or (at your option) any later version.
13
* Libgcrypt is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
27
* _gcry_mpih_lshift( mpi_ptr_t wp, (gr26)
28
* mpi_ptr_t up, (gr25)
29
* mpi_size_t usize, (gr24)
30
* unsigned cnt) (gr23)
34
.export _gcry_mpih_lshift
35
.label _gcry_mpih_lshift
37
.callinfo frame=64,no_calls
42
ldws,mb -4(0,%r25),%r22
45
addib,= -1,%r24,L$0004
46
vshd %r0,%r22,%r28 ; compute carry out limb
47
ldws,mb -4(0,%r25),%r29
48
addib,= -1,%r24,L$0002
52
ldws,mb -4(0,%r25),%r22
53
stws,mb %r20,-4(0,%r26)
54
addib,= -1,%r24,L$0003
56
ldws,mb -4(0,%r25),%r29
57
stws,mb %r20,-4(0,%r26)
58
addib,<> -1,%r24,L$loop
62
stws,mb %r20,-4(0,%r26)
67
stws,mb %r20,-4(0,%r26)