github.com/aergoio/aergo@v1.3.1/libtool/src/gmp-6.1.2/mpn/x86_64/invert_limb_table.asm (about)

     1  dnl  Table used for mpn_invert_limb
     2  
     3  dnl  Contributed to the GNU project by Torbjorn Granlund and Niels Möller.
     4  
     5  dnl  Copyright 2004, 2007-2009, 2011-2013 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  ABI_SUPPORT(DOS64)
    36  ABI_SUPPORT(STD64)
    37  
    38  PROTECT(`mpn_invert_limb_table')
    39  
    40  ASM_START()
    41  C Table entry X contains floor (0x7fd00 / (0x100 + X))
    42  
    43  	RODATA
    44  	ALIGN(2)
    45  	GLOBL mpn_invert_limb_table
    46  mpn_invert_limb_table:
    47  forloop(i,256,512-1,dnl
    48  `	.value	eval(0x7fd00/i)
    49  ')dnl
    50  ASM_END()