1 dnl HP
-PA
2.0 64-bit mpn_sqr_diagonal.
3 dnl Copyright
2001-2003 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
/.
32 dnl
This code runs at
7.25 cycles
/limb on PA8000
and 7.75 cycles
/limb on
33 dnl PA8500. The cache would saturate at
5 cycles
/limb
, so there is some room
36 include(`..
/config.m4
')
49 ifdef(`HAVE_ABI_2_0w',
53 PROLOGUE
(mpn_sqr_diagonal
)
60 xmpyu
%fr8l
,%fr8r
,%fr10
62 xmpyu
%fr8r
,%fr8r
,%fr9
64 xmpyu
%fr8l
,%fr8l
,%fr11
70 fldds
,ma
8(up
),%fr8 C load next up limb
71 xmpyu
%fr4l
,%fr4r
,%fr6
73 xmpyu
%fr4r
,%fr4r
,%fr5 C multiply
in fp regs
75 xmpyu
%fr4l
,%fr4l
,%fr7
78 ldd
-16(rp
),p00 C accumulate
in int regs
90 xmpyu
%fr8l
,%fr8r
,%fr10
92 xmpyu
%fr8r
,%fr8r
,%fr9
94 xmpyu
%fr8l
,%fr8l
,%fr11
105 addib
,<> -1,n
,L
(loop)
109 xmpyu
%fr4l
,%fr4r
,%fr6
111 xmpyu
%fr4r
,%fr4r
,%fr5
113 xmpyu
%fr4l
,%fr4l
,%fr7
138 xmpyu
%fr8l
,%fr8r
,%fr10
139 fstd
%fr10
,-120(%r30
)
140 xmpyu
%fr8r
,%fr8r
,%fr9
142 xmpyu
%fr8l
,%fr8l
,%fr11
171 xmpyu
%fr8l
,%fr8r
,%fr10
172 fstd
%fr10
,-128(%r30
)
173 xmpyu
%fr8r
,%fr8r
,%fr9
175 xmpyu
%fr8l
,%fr8l
,%fr11
191 EPILOGUE
(mpn_sqr_diagonal
)