1 dnl HP
-PA mpn_sub_n
-- Subtract two limb vectors of the same
length > 0 and
2 dnl store difference
in a third limb vector. Optimized for the PA7100
, where
3 dnl is runs at
4.25 cycles
/limb.
5 dnl Copyright
1992, 1994, 2000-2003 Free Software Foundation
, Inc.
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
either:
12 dnl
* the GNU Lesser General
Public License as published by the Free
13 dnl Software Foundation
; either version 3 of the License, or (at your
14 dnl option
) any later version.
18 dnl
* the GNU General
Public License as published by the Free Software
19 dnl Foundation
; either version 2 of the License, or (at your option) any
22 dnl
or both
in parallel
, as here.
24 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
25 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
26 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
29 dnl You should have received copies of the GNU General
Public License
and the
30 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
31 dnl see
https://www.gnu.
org/licenses
/.
33 include(`..
/config.m4
')
43 ldws,ma 4(0,%r25),%r20
44 ldws,ma 4(0,%r24),%r19
46 addib,<= -5,%r23,L(rest)
47 sub %r20,%r19,%r28 C subtract first limbs ignoring cy
50 ldws,ma 4(0,%r25),%r20
51 ldws,ma 4(0,%r24),%r19
52 stws,ma %r28,4(0,%r26)
54 ldws,ma 4(0,%r25),%r20
55 ldws,ma 4(0,%r24),%r19
56 stws,ma %r28,4(0,%r26)
58 ldws,ma 4(0,%r25),%r20
59 ldws,ma 4(0,%r24),%r19
60 stws,ma %r28,4(0,%r26)
62 ldws,ma 4(0,%r25),%r20
63 ldws,ma 4(0,%r24),%r19
64 stws,ma %r28,4(0,%r26)
65 addib,> -4,%r23,L(loop)
73 ldws,ma 4(0,%r25),%r20
74 ldws,ma 4(0,%r24),%r19
75 stws,ma %r28,4(0,%r26)
76 addib,> -1,%r23,L(eloop)