| 1 |
dnl Intel Atom mpn_addlsh2_n/mpn_rsblsh2_n -- rp[] = (vp[] << 2) +- up[] |
| 2 |
|
| 3 |
dnl Contributed to the GNU project by Marco Bodrato. |
| 4 |
|
| 5 |
dnl Copyright 2011 Free Software Foundation, Inc. |
| 6 |
|
| 7 |
dnl This file is part of the GNU MP Library. |
| 8 |
dnl |
| 9 |
dnl The GNU MP Library is free software; you can redistribute it and/or modify |
| 10 |
dnl it under the terms of either: |
| 11 |
dnl |
| 12 |
dnl * the GNU Lesser General Public License as published by the Free |
| 13 |
dnl Software Foundation; either version 3 of the License, or (at your |
| 14 |
dnl option) any later version. |
| 15 |
dnl |
| 16 |
dnl or |
| 17 |
dnl |
| 18 |
dnl * the GNU General Public License as published by the Free Software |
| 19 |
dnl Foundation; either version 2 of the License, or (at your option) any |
| 20 |
dnl later version. |
| 21 |
dnl |
| 22 |
dnl or both in parallel, as here. |
| 23 |
dnl |
| 24 |
dnl The GNU MP Library is distributed in the hope that it will be useful, but |
| 25 |
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 26 |
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 27 |
dnl for more details. |
| 28 |
dnl |
| 29 |
dnl You should have received copies of the GNU General Public License and the |
| 30 |
dnl GNU Lesser General Public License along with the GNU MP Library. If not, |
| 31 |
dnl see https://www.gnu.org/licenses/. |
| 32 |
|
| 33 |
include(`../config.m4') |
| 34 |
|
| 35 |
define(LSH, 2) |
| 36 |
define(RSH, 30) |
| 37 |
|
| 38 |
ifdef(`OPERATION_addlsh2_n', ` |
| 39 |
define(M4_inst, adcl) |
| 40 |
define(M4_opp, subl) |
| 41 |
define(M4_function, mpn_addlsh2_n) |
| 42 |
define(M4_function_c, mpn_addlsh2_nc) |
| 43 |
',`ifdef(`OPERATION_rsblsh2_n', ` |
| 44 |
define(M4_inst, sbbl) |
| 45 |
define(M4_opp, addl) |
| 46 |
define(M4_function, mpn_rsblsh2_n) |
| 47 |
define(M4_function_c, mpn_rsblsh2_nc) |
| 48 |
',`m4_error(`Need OPERATION_addlsh2_n or OPERATION_rsblsh2_n |
| 49 |
')')') |
| 50 |
|
| 51 |
MULFUNC_PROLOGUE(mpn_addlsh2_n mpn_addlsh2_nc mpn_rsblsh2_n mpn_rsblsh2_nc) |
| 52 |
|
| 53 |
include_mpn(`x86/atom/aorrlshC_n.asm') |