gmp-mparam.h revision 1.1.1.2
1/* S/390-64 gmp-mparam.h -- Compiler/machine parameter header file.
2
3Copyright 1991, 1993, 1994, 2000-2011 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 64
32#define GMP_LIMB_BYTES 8
33
34/* 1200 MHz z990 */
35
36#define DIVREM_1_NORM_THRESHOLD              0  /* always */
37#define DIVREM_1_UNNORM_THRESHOLD            0  /* always */
38#define MOD_1_1P_METHOD                      2
39#define MOD_1_NORM_THRESHOLD                 0  /* always */
40#define MOD_1_UNNORM_THRESHOLD               0  /* always */
41#define MOD_1N_TO_MOD_1_1_THRESHOLD          9
42#define MOD_1U_TO_MOD_1_1_THRESHOLD          6
43#define MOD_1_1_TO_MOD_1_2_THRESHOLD        62
44#define MOD_1_2_TO_MOD_1_4_THRESHOLD         0  /* never mpn_mod_1s_2p */
45#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     17
46#define USE_PREINV_DIVREM_1                  1
47#define DIV_QR_1N_PI1_METHOD                 1
48#define DIV_QR_1_NORM_THRESHOLD              1
49#define DIV_QR_1_UNNORM_THRESHOLD        MP_SIZE_T_MAX  /* never */
50#define DIV_QR_2_PI2_THRESHOLD           MP_SIZE_T_MAX  /* never */
51#define DIVEXACT_1_THRESHOLD                 0  /* always */
52#define BMOD_1_TO_MOD_1_THRESHOLD           98
53
54#define MUL_TOOM22_THRESHOLD                10
55#define MUL_TOOM33_THRESHOLD                41
56#define MUL_TOOM44_THRESHOLD               105
57#define MUL_TOOM6H_THRESHOLD               149
58#define MUL_TOOM8H_THRESHOLD               212
59
60#define MUL_TOOM32_TO_TOOM43_THRESHOLD      65
61#define MUL_TOOM32_TO_TOOM53_THRESHOLD      69
62#define MUL_TOOM42_TO_TOOM53_THRESHOLD      72
63#define MUL_TOOM42_TO_TOOM63_THRESHOLD      64
64#define MUL_TOOM43_TO_TOOM54_THRESHOLD      55
65
66#define SQR_BASECASE_THRESHOLD               0  /* always (native) */
67#define SQR_TOOM2_THRESHOLD                 16
68#define SQR_TOOM3_THRESHOLD                 57
69#define SQR_TOOM4_THRESHOLD                153
70#define SQR_TOOM6_THRESHOLD                204
71#define SQR_TOOM8_THRESHOLD                309
72
73#define MULMID_TOOM42_THRESHOLD             20
74
75#define MULMOD_BNM1_THRESHOLD               10
76#define SQRMOD_BNM1_THRESHOLD               11
77
78#define MUL_FFT_MODF_THRESHOLD             220  /* k = 5 */
79#define MUL_FFT_TABLE3                                      \
80  { {    220, 5}, {     11, 6}, {      6, 5}, {     13, 6}, \
81    {      7, 5}, {     15, 6}, {     13, 7}, {      7, 6}, \
82    {     15, 7}, {      8, 6}, {     17, 7}, {      9, 6}, \
83    {     19, 7}, {     13, 8}, {      7, 7}, {     17, 8}, \
84    {      9, 7}, {     19, 8}, {     13, 9}, {      7, 8}, \
85    {     19, 9}, {     11, 8}, {     23,10}, {      7, 9}, \
86    {     15, 8}, {     33, 9}, {     19, 8}, {     39, 9}, \
87    {     23,10}, {     15, 9}, {     39,10}, {     23,11}, \
88    {     15,10}, {     31, 9}, {     63,10}, {     39, 9}, \
89    {     79,10}, {     47,11}, {     31,10}, {     63, 9}, \
90    {    127, 8}, {    255,10}, {     71, 9}, {    143, 8}, \
91    {    287,10}, {     79,11}, {     47,12}, {     31,11}, \
92    {     63,10}, {    127, 9}, {    255, 8}, {    511,10}, \
93    {    143, 9}, {    287,11}, {     79,10}, {    159, 9}, \
94    {    319,10}, {    175, 9}, {    351, 8}, {    703, 7}, \
95    {   1407,11}, {     95,10}, {    191, 9}, {    383,10}, \
96    {    207,11}, {    111,10}, {    223,12}, {     63,11}, \
97    {    127,10}, {    255, 9}, {    511,11}, {    143,10}, \
98    {    287, 9}, {    575, 8}, {   1151,10}, {    319,11}, \
99    {    175,10}, {    351, 9}, {    703,12}, {     95,11}, \
100    {    191,10}, {    383, 9}, {    767,11}, {    207,10}, \
101    {    415,11}, {    223,13}, {   8192,14}, {  16384,15}, \
102    {  32768,16}, {  65536,17}, { 131072,18}, { 262144,19}, \
103    { 524288,20}, {1048576,21}, {2097152,22}, {4194304,23}, \
104    {8388608,24} }
105#define MUL_FFT_TABLE3_SIZE 97
106#define MUL_FFT_THRESHOLD                 1728
107
108#define SQR_FFT_MODF_THRESHOLD             212  /* k = 5 */
109#define SQR_FFT_TABLE3                                      \
110  { {    212, 5}, {      7, 4}, {     15, 5}, {     13, 6}, \
111    {      7, 5}, {     15, 6}, {     15, 7}, {      8, 6}, \
112    {     17, 7}, {     13, 8}, {      7, 7}, {     17, 8}, \
113    {      9, 7}, {     19, 8}, {     11, 7}, {     23, 8}, \
114    {     13, 9}, {      7, 8}, {     19, 9}, {     11, 8}, \
115    {     25,10}, {      7, 9}, {     15, 8}, {     31, 9}, \
116    {     19, 8}, {     39, 9}, {     23,10}, {     15, 9}, \
117    {     39,10}, {     23,11}, {     15,10}, {     31, 9}, \
118    {     63,10}, {     47,11}, {     31,10}, {     63, 9}, \
119    {    127, 8}, {    255,10}, {     71, 9}, {    143, 8}, \
120    {    287,10}, {     79,11}, {     47,12}, {     31,11}, \
121    {     63,10}, {    127, 9}, {    255, 8}, {    511,10}, \
122    {    143, 9}, {    287,11}, {     79,10}, {    159, 9}, \
123    {    319, 8}, {    639,10}, {    175, 9}, {    351, 8}, \
124    {    703,10}, {    191, 9}, {    383, 8}, {    767,10}, \
125    {    207, 9}, {    415,11}, {    111,10}, {    223,12}, \
126    {     63,11}, {    127,10}, {    255, 9}, {    511,11}, \
127    {    143,10}, {    287, 9}, {    575, 8}, {   1151,11}, \
128    {    159,10}, {    319,11}, {    175,10}, {    351, 9}, \
129    {    703,11}, {    191,10}, {    383,11}, {    207,10}, \
130    {    415,11}, {    223,13}, {   8192,14}, {  16384,15}, \
131    {  32768,16}, {  65536,17}, { 131072,18}, { 262144,19}, \
132    { 524288,20}, {1048576,21}, {2097152,22}, {4194304,23}, \
133    {8388608,24} }
134#define SQR_FFT_TABLE3_SIZE 93
135#define SQR_FFT_THRESHOLD                 1600
136
137#define MULLO_BASECASE_THRESHOLD             2
138#define MULLO_DC_THRESHOLD                  33
139#define MULLO_MUL_N_THRESHOLD             3176
140
141#define DC_DIV_QR_THRESHOLD                 28
142#define DC_DIVAPPR_Q_THRESHOLD             107
143#define DC_BDIV_QR_THRESHOLD                31
144#define DC_BDIV_Q_THRESHOLD                 78
145
146#define INV_MULMOD_BNM1_THRESHOLD           43
147#define INV_NEWTON_THRESHOLD               129
148#define INV_APPR_THRESHOLD                 117
149
150#define BINV_NEWTON_THRESHOLD              149
151#define REDC_1_TO_REDC_N_THRESHOLD          38
152
153#define MU_DIV_QR_THRESHOLD                748
154#define MU_DIVAPPR_Q_THRESHOLD             748
155#define MUPI_DIV_QR_THRESHOLD               65
156#define MU_BDIV_QR_THRESHOLD               562
157#define MU_BDIV_Q_THRESHOLD                734
158
159#define POWM_SEC_TABLE  4,23,274,961,2783
160
161#define MATRIX22_STRASSEN_THRESHOLD         11
162#define HGCD_THRESHOLD                      79
163#define HGCD_APPR_THRESHOLD                 70
164#define HGCD_REDUCE_THRESHOLD             1094
165#define GCD_DC_THRESHOLD                   183
166#define GCDEXT_DC_THRESHOLD                148
167#define JACOBI_BASE_METHOD                   4
168
169#define GET_STR_DC_THRESHOLD                30
170#define GET_STR_PRECOMPUTE_THRESHOLD        41
171#define SET_STR_DC_THRESHOLD               402
172#define SET_STR_PRECOMPUTE_THRESHOLD      1104
173
174#define FAC_DSC_THRESHOLD                  842
175#define FAC_ODD_THRESHOLD                    0  /* always */
176