3
* Copyright (C) 1992, 1994, 1998,
4
* 2001 Free Software Foundation, Inc.
6
* This file is part of GnuPG.
8
* GnuPG is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* GnuPG 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 General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
28
* mpihelp_rshift( mpi_ptr_t wp, (gr26)
29
* mpi_ptr_t up, (gr25)
30
* mpi_size_t usize, (gr24)
31
* unsigned cnt) (gr23)
35
.export mpihelp_rshift
38
.callinfo frame=64,no_calls
41
ldws,ma 4(0,%r25),%r22
43
addib,= -1,%r24,L$r004
44
vshd %r22,%r0,%r28 ; compute carry out limb
45
ldws,ma 4(0,%r25),%r29
46
addib,= -1,%r24,L$r002
50
ldws,ma 4(0,%r25),%r22
51
stws,ma %r20,4(0,%r26)
52
addib,= -1,%r24,L$r003
54
ldws,ma 4(0,%r25),%r29
55
stws,ma %r20,4(0,%r26)
56
addib,<> -1,%r24,L$roop
60
stws,ma %r20,4(0,%r26)
65
stws,ma %r20,4(0,%r26)