1
dnl HP-PA 2.0 32-bit mpn_sub_n -- Subtract two limb vectors of the same
2
dnl length > 0 and store difference in a third limb vector.
4
dnl Copyright 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
6
dnl This file is part of the GNU MP Library.
8
dnl The GNU MP Library is free software; you can redistribute it and/or modify
9
dnl it under the terms of the GNU Lesser General Public License as published
10
dnl by the Free Software Foundation; either version 2.1 of the License, or (at
11
dnl your option) any later version.
13
dnl The GNU MP Library is distributed in the hope that it will be useful, but
14
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16
dnl License for more details.
18
dnl You should have received a copy of the GNU Lesser General Public License
19
dnl along with the GNU MP Library; see the file COPYING.LIB. If not, write to
20
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21
dnl MA 02111-1307, USA.
23
include(`../config.m4')
31
C This runs at 2 cycles/limb on PA8000.
36
zdep %r22,30,3,%r28 C r28 = 2 * (-n & 7)
37
zdep %r22,29,3,%r22 C r22 = 4 * (-n & 7)
38
sub %r25,%r22,%r25 C offset s1_ptr
39
sub %r24,%r22,%r24 C offset s2_ptr
40
blr %r28,%r0 C branch into loop
41
sub %r26,%r22,%r26 C offset res_ptr and set carry
92
addib,> -8,%r23,L(loop)