1 /* i80386 __mpn_addmul_1 -- Multiply a limb vector with a limb and add
2 the result to a second limb vector.
3 Copyright (C) 1992-2021 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 <https://www.gnu.org/licenses/>. */
21 #include "asm-syntax.h"
23 #define PARMS 4+16 /* space for 4 saved regs */
35 ENTRY (__mpn_addmul_1)
38 cfi_adjust_cfa_offset (4)
40 cfi_adjust_cfa_offset (4)
42 cfi_adjust_cfa_offset (4)
44 cfi_adjust_cfa_offset (4)
46 movl RES(%esp), %res_ptr
47 cfi_rel_offset (res_ptr, 12)
48 movl S1(%esp), %s1_ptr
49 cfi_rel_offset (s1_ptr, 8)
50 movl SIZE(%esp), %sizeP
51 movl S2LIMB(%esp), %s2_limb
52 cfi_rel_offset (s2_limb, 0)
53 leal (%res_ptr,%sizeP,4), %res_ptr
54 leal (%s1_ptr,%sizeP,4), %s1_ptr
57 cfi_rel_offset (ebp, 4)
60 movl (%s1_ptr,%sizeP,4), %eax
64 addl %eax, (%res_ptr,%sizeP,4)
73 cfi_adjust_cfa_offset (-4)
76 cfi_adjust_cfa_offset (-4)
79 cfi_adjust_cfa_offset (-4)
82 cfi_adjust_cfa_offset (-4)