1 dnl PowerPC
-64 mpn_mul_1
-- Multiply a limb vector with a limb
and store
2 dnl the result
in a second limb vector.
4 dnl Copyright
1999-2001, 2003-2006, 2010 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
either:
11 dnl
* the GNU Lesser General
Public License as published by the Free
12 dnl Software Foundation
; either version 3 of the License, or (at your
13 dnl option
) any later version.
17 dnl
* the GNU General
Public License as published by the Free Software
18 dnl Foundation
; either version 2 of the License, or (at your option) any
21 dnl
or both
in parallel
, as here.
23 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
24 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
25 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
28 dnl You should have received copies of the GNU General
Public License
and the
29 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
30 dnl see
https://www.gnu.
org/licenses
/.
32 include(`..
/config.m4
')
36 C POWER4/PPC970 7.25? not updated for last file revision
42 C * Try to reduce the number of needed live registers (at least r5 and r10
44 C * Optimize feed-in code, for speed and size.
45 C * Clean up r12/r7 usage in feed-in code.
63 li r12, 0 C cy_limb = 0
66 rldicl. r0, n, 0,62 C r0 = n & 3, set cr0
68 addic n, n, 3 C compute count...
69 srdi n, n, 2 C ...for ctr
70 mtctr n C copy count into ctr
105 L(gt1): ld r27, 8(up)
126 L(fic): ld r26, 0(up)
127 L(b10): ld r27, 8(up)
131 L(top): mulld r0, r26, r6
156 L(end): mulld r0, r26, r6