1 /* x86-64 __mpn_addmul_1 -- Multiply a limb vector with a limb and add
2 the result to a second limb vector.
3 Copyright (C) 2003-2017 Free Software Foundation, Inc.
4 This file is part of the GNU MP Library.
6 The GNU MP Library is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or (at your
9 option) any later version.
11 The GNU MP Library is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public License
17 along with the GNU MP Library; see the file COPYING.LIB. If not,
18 see <http://www.gnu.org/licenses/>. */
21 #include "asm-syntax.h"
29 # define func __mpn_addmul_1
43 lea -16(rp,%rdx,8), rp
51 mov 8(up,%rbx,8), %rax
70 mov 8(up,%rbx,8), %rax
80 mov %r10, -8(rp,%rbx,8)
87 mov 8(up,%rbx,8), %rax
90 mov 8(rp,%rbx,8), %r10
101 L(n2): mov (rp), %r10
106 L(n1): mov 8(rp), %r10
109 mov %ebx, %eax /* zero rax */