beta-0.89.2
[luatex.git] / source / libs / gmp / gmp-src / mpn / x86_64 / coreisbr / aorrlsh2_n.asm
blob9416d5a164559c8b4dfa57418282cf66133ff647
1 dnl AMD64 mpn_addlsh2_n -- rp[] = up[] + (vp[] << 1)
2 dnl AMD64 mpn_rsblsh2_n -- rp[] = (vp[] << 1) - up[]
4 dnl Contributed to the GNU project by Torbjorn Granlund.
6 dnl Copyright 2008, 2010-2012 Free Software Foundation, Inc.
8 dnl This file is part of the GNU MP Library.
9 dnl
10 dnl The GNU MP Library is free software; you can redistribute it and/or modify
11 dnl it under the terms of either:
12 dnl
13 dnl * the GNU Lesser General Public License as published by the Free
14 dnl Software Foundation; either version 3 of the License, or (at your
15 dnl option) any later version.
16 dnl
17 dnl or
18 dnl
19 dnl * the GNU General Public License as published by the Free Software
20 dnl Foundation; either version 2 of the License, or (at your option) any
21 dnl later version.
22 dnl
23 dnl or both in parallel, as here.
24 dnl
25 dnl The GNU MP Library is distributed in the hope that it will be useful, but
26 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
28 dnl for more details.
29 dnl
30 dnl You should have received copies of the GNU General Public License and the
31 dnl GNU Lesser General Public License along with the GNU MP Library. If not,
32 dnl see https://www.gnu.org/licenses/.
34 include(`../config.m4')
36 define(LSH, 2)
37 define(RSH, 62)
39 ifdef(`OPERATION_addlsh2_n', `
40 define(ADDSUB, add)
41 define(ADCSBB, adc)
42 define(func_n, mpn_addlsh2_n)
43 define(func_nc, mpn_addlsh2_nc)')
44 ifdef(`OPERATION_rsblsh2_n', `
45 define(ADDSUB, sub)
46 define(ADCSBB, sbb)
47 define(func_n, mpn_rsblsh2_n)
48 define(func_nc, mpn_rsblsh2_nc)')
50 ABI_SUPPORT(DOS64)
51 ABI_SUPPORT(STD64)
53 C mpn_rsblsh2_nc removed below, its idea of carry-in is inconsistent with
54 C refmpn_rsblsh2_nc
55 MULFUNC_PROLOGUE(mpn_addlsh2_n mpn_addlsh2_nc mpn_rsblsh2_n)
56 include_mpn(`x86_64/coreisbr/aorrlshC_n.asm')