1/* Intel Goldmont/32 gmp-mparam.h -- Compiler/machine parameter header file. 2 3Copyright 2019 Free Software Foundation, Inc. 4 5This file is part of the GNU MP Library. 6 7The GNU MP Library is free software; you can redistribute it and/or modify 8it 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 14or 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 20or both in parallel, as here. 21 22The GNU MP Library is distributed in the hope that it will be useful, but 23WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 24or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25for more details. 26 27You should have received copies of the GNU General Public License and the 28GNU Lesser General Public License along with the GNU MP Library. If not, 29see https://www.gnu.org/licenses/. */ 30 31#define GMP_LIMB_BITS 32 32#define GMP_LIMB_BYTES 4 33 34/* 2200 MHz Intel Atom C3758 Goldmont/Denverton */ 35/* FFT tuning limit = 67,000,000 */ 36/* Generated by tuneup.c, 2019-10-22, gcc 8.3 */ 37 38#define MOD_1_NORM_THRESHOLD 7 39#define MOD_1_UNNORM_THRESHOLD 12 40#define MOD_1N_TO_MOD_1_1_THRESHOLD 9 41#define MOD_1U_TO_MOD_1_1_THRESHOLD 7 42#define MOD_1_1_TO_MOD_1_2_THRESHOLD 10 43#define MOD_1_2_TO_MOD_1_4_THRESHOLD 0 /* never mpn_mod_1s_2p */ 44#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 12 45#define USE_PREINV_DIVREM_1 1 /* native */ 46#define DIV_QR_1N_PI1_METHOD 1 /* 32.79% faster than 2 */ 47#define DIV_QR_1_NORM_THRESHOLD 32 48#define DIV_QR_1_UNNORM_THRESHOLD MP_SIZE_T_MAX /* never */ 49#define DIV_QR_2_PI2_THRESHOLD MP_SIZE_T_MAX /* never */ 50#define DIVEXACT_1_THRESHOLD 0 /* always (native) */ 51#define BMOD_1_TO_MOD_1_THRESHOLD 23 52 53#define DIV_1_VS_MUL_1_PERCENT 228 54 55#define MUL_TOOM22_THRESHOLD 18 56#define MUL_TOOM33_THRESHOLD 81 57#define MUL_TOOM44_THRESHOLD 193 58#define MUL_TOOM6H_THRESHOLD 286 59#define MUL_TOOM8H_THRESHOLD 399 60 61#define MUL_TOOM32_TO_TOOM43_THRESHOLD 81 62#define MUL_TOOM32_TO_TOOM53_THRESHOLD 138 63#define MUL_TOOM42_TO_TOOM53_THRESHOLD 125 64#define MUL_TOOM42_TO_TOOM63_THRESHOLD 137 65#define MUL_TOOM43_TO_TOOM54_THRESHOLD 185 66 67#define SQR_BASECASE_THRESHOLD 0 /* always (native) */ 68#define SQR_TOOM2_THRESHOLD 32 69#define SQR_TOOM3_THRESHOLD 113 70#define SQR_TOOM4_THRESHOLD 280 71#define SQR_TOOM6_THRESHOLD 399 72#define SQR_TOOM8_THRESHOLD 547 73 74#define MULMID_TOOM42_THRESHOLD 60 75 76#define MULMOD_BNM1_THRESHOLD 13 77#define SQRMOD_BNM1_THRESHOLD 15 78 79#define MUL_FFT_MODF_THRESHOLD 368 /* k = 5 */ 80#define MUL_FFT_TABLE3 \ 81 { { 368, 5}, { 21, 6}, { 11, 5}, { 23, 6}, \ 82 { 21, 7}, { 11, 6}, { 25, 7}, { 13, 6}, \ 83 { 27, 7}, { 15, 6}, { 31, 7}, { 21, 8}, \ 84 { 11, 7}, { 27, 8}, { 15, 7}, { 33, 8}, \ 85 { 19, 7}, { 39, 8}, { 23, 7}, { 47, 8}, \ 86 { 27, 9}, { 15, 8}, { 39, 9}, { 23, 8}, \ 87 { 47,10}, { 15, 9}, { 31, 8}, { 63, 9}, \ 88 { 39, 8}, { 79, 9}, { 47,10}, { 31, 9}, \ 89 { 79,10}, { 47, 9}, { 95,11}, { 31,10}, \ 90 { 63, 9}, { 127, 8}, { 255, 9}, { 135,10}, \ 91 { 79, 9}, { 159,10}, { 95, 9}, { 191,11}, \ 92 { 63,10}, { 127, 9}, { 255, 8}, { 511,10}, \ 93 { 143, 9}, { 287, 8}, { 575, 9}, { 303,10}, \ 94 { 159,11}, { 95,10}, { 191,12}, { 63,11}, \ 95 { 127,10}, { 255, 9}, { 511,10}, { 271, 9}, \ 96 { 543,10}, { 287, 9}, { 575,10}, { 303, 9}, \ 97 { 607,11}, { 159,10}, { 319, 9}, { 639,10}, \ 98 { 351, 9}, { 703,11}, { 191,10}, { 383, 9}, \ 99 { 767,10}, { 415, 9}, { 831,11}, { 223,10}, \ 100 { 447,12}, { 127,11}, { 255,10}, { 543, 9}, \ 101 { 1087,11}, { 287,10}, { 607, 9}, { 1215,11}, \ 102 { 319,10}, { 671,11}, { 351,10}, { 703,12}, \ 103 { 191,11}, { 383,10}, { 767,11}, { 415,10}, \ 104 { 831,11}, { 447,13}, { 127,12}, { 255,11}, \ 105 { 543,10}, { 1087,11}, { 607,10}, { 1215,12}, \ 106 { 319,11}, { 671,10}, { 1343,11}, { 703,10}, \ 107 { 1407,11}, { 735,12}, { 383,11}, { 831,12}, \ 108 { 447,11}, { 959,13}, { 255,12}, { 511,11}, \ 109 { 1087,12}, { 575,11}, { 1215,10}, { 2431,12}, \ 110 { 639,11}, { 1343,12}, { 703,11}, { 1407,13}, \ 111 { 383,12}, { 831,11}, { 1663,12}, { 959,11}, \ 112 { 1919,14}, { 255,13}, { 511,12}, { 1215,11}, \ 113 { 2431,13}, { 639,12}, { 1471,11}, { 2943,13}, \ 114 { 767,12}, { 1727,13}, { 895,12}, { 1919,11}, \ 115 { 3839,14}, { 511,13}, { 1023,12}, { 2111,13}, \ 116 { 1151,12}, { 2431,13}, { 1407,12}, { 2943,14}, \ 117 { 767,13}, { 1663,12}, { 3455,13}, { 1919,12}, \ 118 { 3839,15}, { 511,14}, { 1023,13}, { 2431,14}, \ 119 { 1279,13}, { 2943,12}, { 5887,14}, { 1535,13}, \ 120 { 3455,14}, { 1791,13}, { 3839,12}, { 7679,15}, \ 121 { 1023,14}, { 2303,13}, { 4991,12}, { 9983,14}, \ 122 { 2559,13}, { 5119,14}, { 2815,13}, { 5887,15}, \ 123 { 1535,14}, { 3839,13}, { 7679,16} } 124#define MUL_FFT_TABLE3_SIZE 171 125#define MUL_FFT_THRESHOLD 3712 126 127#define SQR_FFT_MODF_THRESHOLD 340 /* k = 5 */ 128#define SQR_FFT_TABLE3 \ 129 { { 340, 5}, { 21, 6}, { 11, 5}, { 23, 6}, \ 130 { 12, 5}, { 25, 6}, { 21, 7}, { 11, 6}, \ 131 { 25, 7}, { 13, 6}, { 27, 7}, { 15, 6}, \ 132 { 31, 7}, { 21, 8}, { 11, 7}, { 27, 8}, \ 133 { 15, 7}, { 33, 8}, { 19, 7}, { 39, 8}, \ 134 { 23, 7}, { 47, 8}, { 27, 9}, { 15, 8}, \ 135 { 39, 9}, { 23, 8}, { 47,10}, { 15, 9}, \ 136 { 31, 8}, { 67, 9}, { 39, 8}, { 79, 9}, \ 137 { 47,10}, { 31, 9}, { 79,10}, { 47,11}, \ 138 { 31,10}, { 63, 9}, { 127, 8}, { 255,10}, \ 139 { 79, 9}, { 159, 8}, { 319,10}, { 95, 9}, \ 140 { 191,11}, { 63,10}, { 127, 9}, { 255, 8}, \ 141 { 511, 9}, { 271,10}, { 143, 9}, { 287, 8}, \ 142 { 575, 9}, { 303, 8}, { 607, 9}, { 319,11}, \ 143 { 95,10}, { 191,12}, { 63,11}, { 127,10}, \ 144 { 255, 9}, { 511,10}, { 271, 9}, { 543,10}, \ 145 { 287, 9}, { 575,10}, { 303, 9}, { 607,11}, \ 146 { 159,10}, { 319, 9}, { 639,10}, { 335, 9}, \ 147 { 671,10}, { 351, 9}, { 703,11}, { 191,10}, \ 148 { 383, 9}, { 767,10}, { 415, 9}, { 831,11}, \ 149 { 223,10}, { 479,12}, { 127,11}, { 255,10}, \ 150 { 543, 9}, { 1087,11}, { 287,10}, { 607, 9}, \ 151 { 1215,11}, { 319,10}, { 671,11}, { 351,10}, \ 152 { 703,12}, { 191,11}, { 383,10}, { 767,11}, \ 153 { 415,10}, { 831,11}, { 479,13}, { 127,12}, \ 154 { 255,11}, { 543,10}, { 1087,11}, { 607,10}, \ 155 { 1215,12}, { 319,11}, { 671,10}, { 1343,11}, \ 156 { 735,12}, { 383,11}, { 831,12}, { 447,11}, \ 157 { 959,13}, { 255,12}, { 511,11}, { 1087,12}, \ 158 { 575,11}, { 1215,12}, { 639,11}, { 1343,12}, \ 159 { 703,11}, { 1471,13}, { 383,12}, { 831,11}, \ 160 { 1663,12}, { 959,11}, { 1919,14}, { 255,13}, \ 161 { 511,12}, { 1215,13}, { 639,12}, { 1471,11}, \ 162 { 2943,13}, { 767,12}, { 1727,13}, { 895,12}, \ 163 { 1919,14}, { 511,13}, { 1023,12}, { 2111,13}, \ 164 { 1151,12}, { 2431,13}, { 1407,12}, { 2943,14}, \ 165 { 767,13}, { 1663,12}, { 3455,13}, { 1919,15}, \ 166 { 511,14}, { 1023,13}, { 2431,14}, { 1279,13}, \ 167 { 2943,12}, { 5887,14}, { 1535,13}, { 3455,14}, \ 168 { 1791,13}, { 3839,12}, { 7679,15}, { 1023,14}, \ 169 { 2047,13}, { 4095,14}, { 2303,13}, { 4991,12}, \ 170 { 9983,14}, { 2815,13}, { 5887,15}, { 1535,14}, \ 171 { 3839,13}, { 7679,16} } 172#define SQR_FFT_TABLE3_SIZE 170 173#define SQR_FFT_THRESHOLD 3520 174 175#define MULLO_BASECASE_THRESHOLD 5 176#define MULLO_DC_THRESHOLD 50 177#define MULLO_MUL_N_THRESHOLD 6633 178#define SQRLO_BASECASE_THRESHOLD 0 /* always */ 179#define SQRLO_DC_THRESHOLD 95 180#define SQRLO_SQR_THRESHOLD 6633 181 182#define DC_DIV_QR_THRESHOLD 68 183#define DC_DIVAPPR_Q_THRESHOLD 204 184#define DC_BDIV_QR_THRESHOLD 64 185#define DC_BDIV_Q_THRESHOLD 108 186 187#define INV_MULMOD_BNM1_THRESHOLD 34 188#define INV_NEWTON_THRESHOLD 276 189#define INV_APPR_THRESHOLD 226 190 191#define BINV_NEWTON_THRESHOLD 298 192#define REDC_1_TO_REDC_N_THRESHOLD 65 193 194#define MU_DIV_QR_THRESHOLD 1528 195#define MU_DIVAPPR_Q_THRESHOLD 1589 196#define MUPI_DIV_QR_THRESHOLD 140 197#define MU_BDIV_QR_THRESHOLD 1334 198#define MU_BDIV_Q_THRESHOLD 1499 199 200#define POWM_SEC_TABLE 3,16,96,428,1317 201 202#define GET_STR_DC_THRESHOLD 13 203#define GET_STR_PRECOMPUTE_THRESHOLD 18 204#define SET_STR_DC_THRESHOLD 704 205#define SET_STR_PRECOMPUTE_THRESHOLD 1358 206 207#define FAC_DSC_THRESHOLD 95 208#define FAC_ODD_THRESHOLD 29 209 210#define MATRIX22_STRASSEN_THRESHOLD 15 211#define HGCD2_DIV1_METHOD 1 /* 5.53% faster than 3 */ 212#define HGCD_THRESHOLD 172 213#define HGCD_APPR_THRESHOLD 204 214#define HGCD_REDUCE_THRESHOLD 2479 215#define GCD_DC_THRESHOLD 610 216#define GCDEXT_DC_THRESHOLD 443 217#define JACOBI_BASE_METHOD 4 /* 6.53% faster than 3 */ 218 219/* Tuneup completed successfully, took 101563 seconds */ 220