(root)/
gmp-6.3.0/
mpn/
s390_64/
z13/
gmp-mparam.h
       1  /* S/390-64 for IBM z13 gmp-mparam.h -- Compiler/machine parameter header file.
       2  
       3  Copyright 2021 Free Software Foundation, Inc.
       4  
       5  This file is part of the GNU MP Library.
       6  
       7  The GNU MP Library is free software; you can redistribute it and/or modify
       8  it under the terms of either:
       9  
      10    * the GNU Lesser General Public License as published by the Free
      11      Software Foundation; either version 3 of the License, or (at your
      12      option) any later version.
      13  
      14  or
      15  
      16    * the GNU General Public License as published by the Free Software
      17      Foundation; either version 2 of the License, or (at your option) any
      18      later version.
      19  
      20  or both in parallel, as here.
      21  
      22  The GNU MP Library is distributed in the hope that it will be useful, but
      23  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
      24  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      25  for more details.
      26  
      27  You should have received copies of the GNU General Public License and the
      28  GNU Lesser General Public License along with the GNU MP Library.  If not,
      29  see https://www.gnu.org/licenses/.  */
      30  
      31  #define GMP_LIMB_BITS 64
      32  #define GMP_LIMB_BYTES 8
      33  
      34  #define HAVE_NATIVE_mpn_addmul_2 1
      35  #define HAVE_NATIVE_mpn_mul_2 1
      36  
      37  /* Generated by tuneup.c, 2021-07-30, gcc 10.2 */
      38  
      39  #define DIVREM_1_NORM_THRESHOLD          MP_SIZE_T_MAX  /* never */
      40  #define DIVREM_1_UNNORM_THRESHOLD        MP_SIZE_T_MAX  /* never */
      41  #define MOD_1_1P_METHOD                      2
      42  #define MOD_1_NORM_THRESHOLD             MP_SIZE_T_MAX  /* never */
      43  #define MOD_1_UNNORM_THRESHOLD           MP_SIZE_T_MAX  /* never */
      44  #define MOD_1N_TO_MOD_1_1_THRESHOLD         17
      45  #define MOD_1U_TO_MOD_1_1_THRESHOLD         15
      46  #define MOD_1_1_TO_MOD_1_2_THRESHOLD         0  /* never mpn_mod_1_1p */
      47  #define MOD_1_2_TO_MOD_1_4_THRESHOLD         0  /* never mpn_mod_1s_2p */
      48  #define PREINV_MOD_1_TO_MOD_1_THRESHOLD      5
      49  #define USE_PREINV_DIVREM_1                  0
      50  #define DIV_QR_1N_PI1_METHOD                 3
      51  #define DIV_QR_1_NORM_THRESHOLD          MP_SIZE_T_MAX  /* never */
      52  #define DIV_QR_1_UNNORM_THRESHOLD        MP_SIZE_T_MAX  /* never */
      53  #define DIV_QR_2_PI2_THRESHOLD             996
      54  #define DIVEXACT_1_THRESHOLD                 4
      55  #define BMOD_1_TO_MOD_1_THRESHOLD            0  /* always */
      56  
      57  #define DIV_1_VS_MUL_1_PERCENT             404
      58  
      59  #define MUL_TOOM22_THRESHOLD                23
      60  #define MUL_TOOM33_THRESHOLD                94
      61  #define MUL_TOOM44_THRESHOLD               166
      62  #define MUL_TOOM6H_THRESHOLD               286
      63  #define MUL_TOOM8H_THRESHOLD               626
      64  
      65  #define MUL_TOOM32_TO_TOOM43_THRESHOLD     113
      66  #define MUL_TOOM32_TO_TOOM53_THRESHOLD     138
      67  #define MUL_TOOM42_TO_TOOM53_THRESHOLD     143
      68  #define MUL_TOOM42_TO_TOOM63_THRESHOLD     145
      69  #define MUL_TOOM43_TO_TOOM54_THRESHOLD     130
      70  
      71  #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
      72  #define SQR_TOOM2_THRESHOLD                 12
      73  #define SQR_TOOM3_THRESHOLD                 84
      74  #define SQR_TOOM4_THRESHOLD                234
      75  #define SQR_TOOM6_THRESHOLD                318
      76  #define SQR_TOOM8_THRESHOLD                478
      77  
      78  #define MULMID_TOOM42_THRESHOLD             42
      79  
      80  #define MULMOD_BNM1_THRESHOLD               13
      81  #define SQRMOD_BNM1_THRESHOLD                7
      82  
      83  #define MUL_FFT_MODF_THRESHOLD             332  /* k = 5 */
      84  #define MUL_FFT_TABLE3                                      \
      85    { {    332, 5}, {     19, 6}, {     10, 5}, {     21, 6}, \
      86      {     21, 7}, {     21, 8}, {     11, 7}, {     24, 8}, \
      87      {     13, 7}, {     27, 8}, {     15, 7}, {     31, 8}, \
      88      {     17, 7}, {     35, 8}, {     19, 7}, {     39, 8}, \
      89      {     21, 9}, {     11, 8}, {     27, 9}, {     15, 8}, \
      90      {     35, 9}, {     19, 8}, {     41, 9}, {     23, 8}, \
      91      {     47, 9}, {     27,10}, {     15, 9}, {     39,10}, \
      92      {     23, 9}, {     47,11}, {     15,10}, {     31, 9}, \
      93      {     67,10}, {     47,11}, {   2048,12}, {   4096,13}, \
      94      {   8192,14}, {  16384,15}, {  32768,16}, {  65536,17}, \
      95      { 131072,18}, { 262144,19}, { 524288,20}, {1048576,21}, \
      96      {2097152,22}, {4194304,23}, {8388608,24} }
      97  #define MUL_FFT_TABLE3_SIZE 47
      98  #define MUL_FFT_THRESHOLD                 2752
      99  
     100  #define SQR_FFT_MODF_THRESHOLD             240  /* k = 5 */
     101  #define SQR_FFT_TABLE3                                      \
     102    { {    240, 5}, {      8, 4}, {     17, 5}, {     13, 6}, \
     103      {      7, 5}, {     15, 6}, {      8, 5}, {     17, 6}, \
     104      {      9, 5}, {     19, 6}, {     15, 7}, {      8, 6}, \
     105      {     17, 7}, {      9, 6}, {     19, 7}, {     10, 6}, \
     106      {     21, 7}, {     17, 8}, {      9, 7}, {     20, 8}, \
     107      {     11, 7}, {     23, 8}, {     13, 9}, {      7, 8}, \
     108      {     21, 9}, {     11, 8}, {     23, 9}, {     15, 8}, \
     109      {     31, 9}, {     19, 8}, {     39, 9}, {     23,10}, \
     110      {     15, 9}, {     39,10}, {     23,11}, {     15,10}, \
     111      {     31, 9}, {     63,10}, {     47,11}, {   2048,12}, \
     112      {   4096,13}, {   8192,14}, {  16384,15}, {  32768,16}, \
     113      {  65536,17}, { 131072,18}, { 262144,19}, { 524288,20}, \
     114      {1048576,21}, {2097152,22}, {4194304,23}, {8388608,24} }
     115  #define SQR_FFT_TABLE3_SIZE 52
     116  #define SQR_FFT_THRESHOLD                 1856
     117  
     118  #define MULLO_BASECASE_THRESHOLD             0  /* always */
     119  #define MULLO_DC_THRESHOLD                  25
     120  #define MULLO_MUL_N_THRESHOLD             5397
     121  #define SQRLO_BASECASE_THRESHOLD             0  /* always */
     122  #define SQRLO_DC_THRESHOLD                 396
     123  #define SQRLO_SQR_THRESHOLD               3704
     124  
     125  #define DC_DIV_QR_THRESHOLD                 15
     126  #define DC_DIVAPPR_Q_THRESHOLD              50
     127  #define DC_BDIV_QR_THRESHOLD                66
     128  #define DC_BDIV_Q_THRESHOLD                202
     129  
     130  #define INV_MULMOD_BNM1_THRESHOLD           46
     131  #define INV_NEWTON_THRESHOLD                29
     132  #define INV_APPR_THRESHOLD                  13
     133  
     134  #define BINV_NEWTON_THRESHOLD              312
     135  #define REDC_1_TO_REDC_2_THRESHOLD          79
     136  #define REDC_2_TO_REDC_N_THRESHOLD           0  /* always */
     137  
     138  #define MU_DIV_QR_THRESHOLD                979
     139  #define MU_DIVAPPR_Q_THRESHOLD             979
     140  #define MUPI_DIV_QR_THRESHOLD               13
     141  #define MU_BDIV_QR_THRESHOLD               942
     142  #define MU_BDIV_Q_THRESHOLD               1367
     143  
     144  #define POWM_SEC_TABLE  3,19,215,1730
     145  
     146  #define GET_STR_DC_THRESHOLD                10
     147  #define GET_STR_PRECOMPUTE_THRESHOLD        15
     148  #define SET_STR_DC_THRESHOLD               882
     149  #define SET_STR_PRECOMPUTE_THRESHOLD      2520
     150  
     151  #define FAC_DSC_THRESHOLD                  228
     152  #define FAC_ODD_THRESHOLD                   24
     153  
     154  #define MATRIX22_STRASSEN_THRESHOLD         19
     155  #define HGCD2_DIV1_METHOD                    1
     156  #define HGCD_THRESHOLD                      61
     157  #define HGCD_APPR_THRESHOLD                 51
     158  #define HGCD_REDUCE_THRESHOLD             1962
     159  #define GCD_DC_THRESHOLD                   217
     160  #define GCDEXT_DC_THRESHOLD                263
     161  #define JACOBI_BASE_METHOD                   4
     162