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