24aecff6186e208a562297733bd6dcfa5e1345c9
[platform/upstream/gmp.git] / mpn / x86_64 / pentium4 / aorslsh1_n.asm
1 dnl  AMD64 mpn_addlsh1_n, mpn_sublsh1_n -- rp[] = up[] +- (vp[] << 1),
2 dnl  optimised for Pentium 4.
3
4 dnl  Contributed to the GNU project by Torbjorn Granlund.
5
6 dnl  Copyright 2008, 2010, 2011, 2012 Free Software Foundation, Inc.
7
8 dnl  This file is part of the GNU MP Library.
9
10 dnl  The GNU MP Library is free software; you can redistribute it and/or modify
11 dnl  it under the terms of the GNU Lesser General Public License as published
12 dnl  by the Free Software Foundation; either version 3 of the License, or (at
13 dnl  your option) any later version.
14
15 dnl  The GNU MP Library is distributed in the hope that it will be useful, but
16 dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
18 dnl  License for more details.
19
20 dnl  You should have received a copy of the GNU Lesser General Public License
21 dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
22
23 include(`../config.m4')
24
25 define(LSH, 1)
26 define(RSH, 31)                 C 31, not 63, since we use 32-bit ops
27
28 ifdef(`OPERATION_addlsh1_n', `
29   define(ADDSUB,        add)
30   define(func,          mpn_addlsh1_n)')
31 ifdef(`OPERATION_sublsh1_n', `
32   define(ADDSUB,        sub)
33   define(func,          mpn_sublsh1_n)')
34
35 ABI_SUPPORT(DOS64)
36 ABI_SUPPORT(STD64)
37
38 MULFUNC_PROLOGUE(mpn_addlsh1_n mpn_sublsh1_n)
39 include_mpn(`x86_64/pentium4/aorslshC_n.asm')