Home | History | Annotate | Line # | Download | only in atom
aorrlsh2_n.asm revision 1.1
      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 dnl
      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
     10 dnl  modify it under the terms of the GNU Lesser General Public License as
     11 dnl  published by the Free Software Foundation; either version 3 of the
     12 dnl  License, or (at your option) any later version.
     13 dnl
     14 dnl  The GNU MP Library is distributed in the hope that it will be useful,
     15 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
     16 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     17 dnl  Lesser General Public License for more details.
     18 dnl
     19 dnl  You should have received a copy of the GNU Lesser General Public License
     20 dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
     21 
     22 include(`../config.m4')
     23 
     24 define(LSH, 2)
     25 define(RSH, 30)
     26 
     27 ifdef(`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 ',`ifdef(`OPERATION_rsblsh2_n', `
     33 	define(M4_inst,        sbbl)
     34 	define(M4_opp,         addl)
     35 	define(M4_function,    mpn_rsblsh2_n)
     36 	define(M4_function_c,  mpn_rsblsh2_nc)
     37 ',`m4_error(`Need OPERATION_addlsh2_n or OPERATION_rsblsh2_n
     38 ')')')
     39 
     40 MULFUNC_PROLOGUE(mpn_addlsh2_n mpn_addlsh2_nc mpn_rsblsh2_n mpn_rsblsh2_nc)
     41 
     42 include_mpn(`x86/atom/aorrlshC_n.asm')
     43