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