1 dnl Alpha mpn_mod_34lsub1.
3 dnl Copyright
2002 Free Software Foundation
, Inc.
5 dnl
This file is part of the GNU MP Library.
7 dnl The GNU MP Library is free software
; you can redistribute it and/or modify
8 dnl it under the terms of
either:
10 dnl
* the GNU Lesser General
Public License as published by the Free
11 dnl Software Foundation
; either version 3 of the License, or (at your
12 dnl option
) any later version.
16 dnl
* the GNU General
Public License as published by the Free Software
17 dnl Foundation
; either version 2 of the License, or (at your option) any
20 dnl
or both
in parallel
, as here.
22 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
23 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
24 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
27 dnl You should have received copies of the GNU General
Public License
and the
28 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
29 dnl see
https://www.gnu.
org/licenses
/.
31 include(`..
/config.m4
')
54 PROLOGUE(mpn_mod_34lsub1)
87 $Loop: cmpult a0, l0, r0
103 $L_end: cmpult a0, l0, r0
112 C Handle the last (n mod 3) limbs
113 $L_012: lda r17, 2(r17)
125 C Align and sum our 3 main accumulators and 3 carry accumulators
128 ifdef(`HAVE_LIMB_LITTLE_ENDIAN',
129 ` insll a1
, 2, r1
', C (a1 & 0xffffffff) << 16
132 zapnot a0
, 63, r0 C a0
& 0xffffffffffff
134 ifdef
(`HAVE_LIMB_LITTLE_ENDIAN
',
135 ` inswl a2, 4, r3', C
(a2
& 0xffff) << 32
141 ifdef(`HAVE_LIMB_LITTLE_ENDIAN',
142 ` insll c0
, 2, r4
', C (c0 & 0xffffffff) << 16
149 ifdef
(`HAVE_LIMB_LITTLE_ENDIAN
',
150 ` inswl c1, 4, r2', C
(c1
& 0xffff) << 32
154 C srl c2, 48, r3 C This will be 0 in practise
155 zapnot c2, 63, r1 C r1 = c2 & 0xffffffffffff
163 EPILOGUE(mpn_mod_34lsub1)