xref: /netbsd-src/external/lgpl3/gmp/dist/mpn/x86/atom/sublsh2_n.asm (revision fa28c6faa16e0b00edee7acdcaf4899797043def)
1dnl  Intel Atom mpn_addlsh2_n/mpn_sublsh2_n -- rp[] = up[] +- (vp[] << 2).
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, 2)
25define(RSH, 30)
26
27ifdef(`OPERATION_addlsh2_n', `
28	define(M4_inst,		adcl)
29	define(M4_opp,		subl)
30	define(M4_function,	mpn_addlsh2_n)
31	define(M4_function_c,	mpn_addlsh2_nc)
32	define(M4_ip_function_c, mpn_addlsh2_nc_ip1)
33	define(M4_ip_function,	mpn_addlsh2_n_ip1)
34',`ifdef(`OPERATION_sublsh2_n', `
35	define(M4_inst,		sbbl)
36	define(M4_opp,		addl)
37	define(M4_function,	mpn_sublsh2_n)
38	define(M4_function_c,	mpn_sublsh2_nc)
39	define(M4_ip_function_c, mpn_sublsh2_nc_ip1)
40	define(M4_ip_function,	mpn_sublsh2_n_ip1)
41',`m4_error(`Need OPERATION_addlsh2_n or OPERATION_sublsh2_n
42')')')
43
44MULFUNC_PROLOGUE(mpn_sublsh2_n mpn_sublsh2_nc mpn_sublsh2_n_ip1 mpn_sublsh2_nc_ip1)
45
46include_mpn(`x86/atom/aorslshC_n.asm')
47