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-2012 Free Software Foundation, Inc.
7
8dnl  This file is part of the GNU MP Library.
9dnl
10dnl  The GNU MP Library is free software; you can redistribute it and/or modify
11dnl  it under the terms of either:
12dnl
13dnl    * the GNU Lesser General Public License as published by the Free
14dnl      Software Foundation; either version 3 of the License, or (at your
15dnl      option) any later version.
16dnl
17dnl  or
18dnl
19dnl    * the GNU General Public License as published by the Free Software
20dnl      Foundation; either version 2 of the License, or (at your option) any
21dnl      later version.
22dnl
23dnl  or both in parallel, as here.
24dnl
25dnl  The GNU MP Library is distributed in the hope that it will be useful, but
26dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
28dnl  for more details.
29dnl
30dnl  You should have received copies of the GNU General Public License and the
31dnl  GNU Lesser General Public License along with the GNU MP Library.  If not,
32dnl  see https://www.gnu.org/licenses/.
33
34include(`../config.m4')
35
36define(LSH, 1)
37define(RSH, 63)
38
39ifdef(`OPERATION_addlsh1_n', `
40	define(ADDSUB,	add)
41	define(ADCSBB,	adc)
42	define(func,	mpn_addlsh1_n)')
43ifdef(`OPERATION_rsblsh1_n', `
44	define(ADDSUB,	sub)
45	define(ADCSBB,	sbb)
46	define(func,	mpn_rsblsh1_n)')
47
48MULFUNC_PROLOGUE(mpn_addlsh1_n mpn_rsblsh1_n)
49
50ABI_SUPPORT(DOS64)
51ABI_SUPPORT(STD64)
52
53include_mpn(`x86_64/aorrlshC_n.asm')
54