1 dnl Intel Pentium mpn_addmul_1 -- mpn by limb multiplication.
3 dnl P5: 14.0 cycles/limb
6 dnl Copyright (C) 1992, 1994, 1996, 1999, 2000 Free Software Foundation,
9 dnl This file is part of the GNU MP Library.
11 dnl The GNU MP Library is free software; you can redistribute it and/or
12 dnl modify it under the terms of the GNU Lesser General Public License as
13 dnl published by the Free Software Foundation; either version 2.1 of the
14 dnl License, or (at your option) any later version.
16 dnl The GNU MP Library is distributed in the hope that it will be useful,
17 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
18 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 dnl Lesser General Public License for more details.
21 dnl You should have received a copy of the GNU Lesser General Public
22 dnl License along with the GNU MP Library; see the file COPYING.LIB. If
23 dnl not, write to the Free Software Foundation, Inc., 59 Temple Place -
24 dnl Suite 330, Boston, MA 02111-1307, USA. */
27 include(`../config.m4')
30 ifdef(`OPERATION_addmul_1', `
32 define(M4_function_1, mpn_addmul_1)
34 ',`ifdef(`OPERATION_submul_1', `
36 define(M4_function_1, mpn_submul_1)
38 ',`m4_error(`Need OPERATION_addmul_1 or OPERATION_submul_1
41 MULFUNC_PROLOGUE(mpn_addmul_1 mpn_submul_1)
44 C mp_limb_t M4_function_1 (mp_ptr dst, mp_srcptr src, mp_size_t size,
47 defframe(PARAM_MULTIPLIER,16)
48 defframe(PARAM_SIZE, 12)
49 defframe(PARAM_SRC, 8)
50 defframe(PARAM_DST, 4)
55 PROLOGUE(M4_function_1)
66 movl PARAM_MULTIPLIER, %ebp
68 leal (%edi,%ecx,4), %edi
69 leal (%esi,%ecx,4), %esi
75 movl (%esi,%ecx,4), %eax
80 movl (%edi,%ecx,4), %ebx
85 movl %ebx, (%edi,%ecx,4)