1 # PowerPC-32 __mpn_mul_1 -- Multiply a limb vector with a limb and store
2 # the result in a second limb vector.
4 # Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
6 # This file is part of the GNU MP Library.
8 # The GNU MP Library is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Library General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or (at your
11 # option) any later version.
13 # The GNU MP Library is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
16 # License for more details.
18 # You should have received a copy of the GNU Library General Public License
19 # along with the GNU MP Library; see the file COPYING.LIB. If not, write to
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
30 # This is a fairly straightforward implementation. The timing of the PC601
31 # is hard to understand, so I will wait to optimize this until I have some
32 # hardware to play with.
34 # The code trivially generalizes to 64 bit limbs for the PC620.
37 .csect .__mpn_mul_1[PR]
41 .csect __mpn_mul_1[DS]
43 .long .__mpn_mul_1[PR], TOC[tc0], 0
44 .csect .__mpn_mul_1[PR]
51 addi 3,3,-4 # adjust res_ptr
52 addic 5,5,0 # clear cy with dummy insn