1 ! SPARC v9 32-bit __mpn_mul_1 -- Multiply a limb vector with a single
2 ! limb and store the product in a second limb vector.
4 ! Copyright (C) 2013-2015 Free Software Foundation, Inc.
5 ! This file is part of the GNU C Library.
6 ! Contributed by David S. Miller <davem@davemloft.net>
8 ! The GNU C Library is free software; you can redistribute it and/or
9 ! modify it under the terms of the GNU Lesser General Public
10 ! License as published by the Free Software Foundation; either
11 ! version 2.1 of the License, or (at your option) any later version.
13 ! The GNU C Library is distributed in the hope that it will be useful,
14 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ! Lesser General Public License for more details.
18 ! You should have received a copy of the GNU Lesser General Public
19 ! License along with the GNU C Library; if not, see
20 ! <http://www.gnu.org/licenses/>.
36 srl s2_limb, 0, s2_limb
38 be,pn %icc, .Lfinal_limb
42 lduw [s1_ptr + 0x00], tmp1
43 lduw [s1_ptr + 0x04], tmp2
44 mulx tmp1, s2_limb, tmp3
46 mulx tmp2, s2_limb, tmp4
48 add res_ptr, 8, res_ptr
50 stw tmp3, [res_ptr - 0x08]
53 stw tmp4, [res_ptr - 0x04]
61 lduw [s1_ptr + 0x00], tmp1
62 mulx tmp1, s2_limb, tmp3
64 stw tmp3, [res_ptr + 0x00]