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