File: tuning.c

package info (click to toggle)
libzn-poly 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 904 kB
  • sloc: ansic: 10,736; python: 124; makefile: 12; sh: 6
file content (871 lines) | stat: -rw-r--r-- 39,213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
/*
   NOTE: This copy of tuning.c was bootstrapped from earlier versions of the
   program and just contains some initial values from David Harvey's own
   machine at the time the file was generated.

   It can be regenerated (as explained in the next comment) by building the
   "tune" program, and then generating tunings and replacing this file with
   the generated one.  However, in practice this should not be necessary
   (the generated tunings are used, finally, for the zn_poly library itself).
 */

/*
   NOTE: do not edit this file! It is auto-generated by the "tune" program.
   (Run "make tune" and then "./tune > tuning.c" to regenerate it.)
*/

/*
   tuning.c:  global tuning values

   Copyright (C) 2007, 2008, David Harvey

   This file is part of the zn_poly library (version 0.9).

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 2 of the License, or
   (at your option) version 3 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#include "zn_poly_internal.h"

size_t ZNP_mpn_smp_kara_thresh = 42;
size_t ZNP_mpn_mulmid_fallback_thresh = 7863;

tuning_info_t tuning_info[] = 
{
   {  // bits = 0
   },
   {  // bits = 1
   },
   {  // bits = 2
        132,   // KS1 -> KS2 multiplication threshold
       1127,   // KS2 -> KS4 multiplication threshold
   SIZE_MAX,   // KS4 -> FFT multiplication threshold
        141,   // KS1 -> KS2 squaring threshold
       1053,   // KS2 -> KS4 squaring threshold
   SIZE_MAX,   // KS4 -> FFT squaring threshold
        132,   // KS1 -> KS2 middle product threshold
       1053,   // KS2 -> KS4 middle product threshold
      21569,   // KS4 -> FFT middle product threshold
         13,   // nussbaumer multiplication threshold
         12    // nussbaumer squaring threshold
   },
   {  // bits = 3
        132,   // KS1 -> KS2 multiplication threshold
       2755,   // KS2 -> KS4 multiplication threshold
   SIZE_MAX,   // KS4 -> FFT multiplication threshold
        132,   // KS1 -> KS2 squaring threshold
       4119,   // KS2 -> KS4 squaring threshold
      24613,   // KS4 -> FFT squaring threshold
        132,   // KS1 -> KS2 middle product threshold
        963,   // KS2 -> KS4 middle product threshold
      17119,   // KS4 -> FFT middle product threshold
         12,   // nussbaumer multiplication threshold
         12    // nussbaumer squaring threshold
   },
   {  // bits = 4
         80,   // KS1 -> KS2 multiplication threshold
       1053,   // KS2 -> KS4 multiplication threshold
   SIZE_MAX,   // KS4 -> FFT multiplication threshold
         94,   // KS1 -> KS2 squaring threshold
       1053,   // KS2 -> KS4 squaring threshold
      28087,   // KS4 -> FFT squaring threshold
         78,   // KS1 -> KS2 middle product threshold
       1053,   // KS2 -> KS4 middle product threshold
      12720,   // KS4 -> FFT middle product threshold
         12,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 5
         86,   // KS1 -> KS2 multiplication threshold
       1077,   // KS2 -> KS4 multiplication threshold
      32051,   // KS4 -> FFT multiplication threshold
         94,   // KS1 -> KS2 squaring threshold
       1205,   // KS2 -> KS4 squaring threshold
      18901,   // KS4 -> FFT squaring threshold
         78,   // KS1 -> KS2 middle product threshold
        482,   // KS2 -> KS4 middle product threshold
      14044,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 6
         78,   // KS1 -> KS2 multiplication threshold
        985,   // KS2 -> KS4 multiplication threshold
   SIZE_MAX,   // KS4 -> FFT multiplication threshold
        108,   // KS1 -> KS2 squaring threshold
        985,   // KS2 -> KS4 squaring threshold
      20868,   // KS4 -> FFT squaring threshold
         70,   // KS1 -> KS2 middle product threshold
        674,   // KS2 -> KS4 middle product threshold
      10785,   // KS4 -> FFT middle product threshold
         12,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 7
         70,   // KS1 -> KS2 multiplication threshold
        412,   // KS2 -> KS4 multiplication threshold
      20868,   // KS4 -> FFT multiplication threshold
         86,   // KS1 -> KS2 squaring threshold
        493,   // KS2 -> KS4 squaring threshold
      17119,   // KS4 -> FFT squaring threshold
         66,   // KS1 -> KS2 middle product threshold
        282,   // KS2 -> KS4 middle product threshold
      10785,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 8
         56,   // KS1 -> KS2 multiplication threshold
        385,   // KS2 -> KS4 multiplication threshold
      20868,   // KS4 -> FFT multiplication threshold
         67,   // KS1 -> KS2 squaring threshold
        482,   // KS2 -> KS4 squaring threshold
      15505,   // KS4 -> FFT squaring threshold
         61,   // KS1 -> KS2 middle product threshold
        288,   // KS2 -> KS4 middle product threshold
       7753,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 9
         57,   // KS1 -> KS2 multiplication threshold
        264,   // KS2 -> KS4 multiplication threshold
      17119,   // KS4 -> FFT multiplication threshold
         70,   // KS1 -> KS2 squaring threshold
        264,   // KS2 -> KS4 squaring threshold
      14044,   // KS4 -> FFT squaring threshold
         57,   // KS1 -> KS2 middle product threshold
        247,   // KS2 -> KS4 middle product threshold
       8560,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 10
         62,   // KS1 -> KS2 multiplication threshold
        173,   // KS2 -> KS4 multiplication threshold
      15505,   // KS4 -> FFT multiplication threshold
         75,   // KS1 -> KS2 squaring threshold
        241,   // KS2 -> KS4 squaring threshold
      12307,   // KS4 -> FFT squaring threshold
         50,   // KS1 -> KS2 middle product threshold
        173,   // KS2 -> KS4 middle product threshold
       6154,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 11
         47,   // KS1 -> KS2 multiplication threshold
        158,   // KS2 -> KS4 multiplication threshold
      15505,   // KS4 -> FFT multiplication threshold
         61,   // KS1 -> KS2 squaring threshold
        216,   // KS2 -> KS4 squaring threshold
      14044,   // KS4 -> FFT squaring threshold
         50,   // KS1 -> KS2 middle product threshold
        161,   // KS2 -> KS4 middle product threshold
       7022,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 12
         43,   // KS1 -> KS2 multiplication threshold
        144,   // KS2 -> KS4 multiplication threshold
      12307,   // KS4 -> FFT multiplication threshold
         62,   // KS1 -> KS2 squaring threshold
        189,   // KS2 -> KS4 squaring threshold
       8560,   // KS4 -> FFT squaring threshold
         43,   // KS1 -> KS2 middle product threshold
        151,   // KS2 -> KS4 middle product threshold
       5393,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         11    // nussbaumer squaring threshold
   },
   {  // bits = 13
         43,   // KS1 -> KS2 multiplication threshold
        144,   // KS2 -> KS4 multiplication threshold
      14044,   // KS4 -> FFT multiplication threshold
         51,   // KS1 -> KS2 squaring threshold
        189,   // KS2 -> KS4 squaring threshold
      14044,   // KS4 -> FFT squaring threshold
         43,   // KS1 -> KS2 middle product threshold
        141,   // KS2 -> KS4 middle product threshold
       6154,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 14
         48,   // KS1 -> KS2 multiplication threshold
        101,   // KS2 -> KS4 multiplication threshold
      10785,   // KS4 -> FFT multiplication threshold
         50,   // KS1 -> KS2 squaring threshold
        158,   // KS2 -> KS4 squaring threshold
       7753,   // KS4 -> FFT squaring threshold
         39,   // KS1 -> KS2 middle product threshold
        101,   // KS2 -> KS4 middle product threshold
       4726,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 15
         38,   // KS1 -> KS2 multiplication threshold
        173,   // KS2 -> KS4 multiplication threshold
      12720,   // KS4 -> FFT multiplication threshold
         43,   // KS1 -> KS2 squaring threshold
        189,   // KS2 -> KS4 squaring threshold
       9451,   // KS4 -> FFT squaring threshold
         38,   // KS1 -> KS2 middle product threshold
        132,   // KS2 -> KS4 middle product threshold
       4280,   // KS4 -> FFT middle product threshold
         11,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 16
         35,   // KS1 -> KS2 multiplication threshold
        124,   // KS2 -> KS4 multiplication threshold
       8560,   // KS4 -> FFT multiplication threshold
         47,   // KS1 -> KS2 squaring threshold
        158,   // KS2 -> KS4 squaring threshold
       7022,   // KS4 -> FFT squaring threshold
         35,   // KS1 -> KS2 middle product threshold
        116,   // KS2 -> KS4 middle product threshold
       4726,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 17
         33,   // KS1 -> KS2 multiplication threshold
        102,   // KS2 -> KS4 multiplication threshold
       9451,   // KS4 -> FFT multiplication threshold
         43,   // KS1 -> KS2 squaring threshold
        132,   // KS2 -> KS4 squaring threshold
       8560,   // KS4 -> FFT squaring threshold
         33,   // KS1 -> KS2 middle product threshold
        116,   // KS2 -> KS4 middle product threshold
       4280,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 18
         31,   // KS1 -> KS2 multiplication threshold
         78,   // KS2 -> KS4 multiplication threshold
       7022,   // KS4 -> FFT multiplication threshold
         43,   // KS1 -> KS2 squaring threshold
        112,   // KS2 -> KS4 squaring threshold
       5393,   // KS4 -> FFT squaring threshold
         31,   // KS1 -> KS2 middle product threshold
         94,   // KS2 -> KS4 middle product threshold
       3877,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 19
         33,   // KS1 -> KS2 multiplication threshold
         78,   // KS2 -> KS4 multiplication threshold
       8560,   // KS4 -> FFT multiplication threshold
         43,   // KS1 -> KS2 squaring threshold
        108,   // KS2 -> KS4 squaring threshold
       7022,   // KS4 -> FFT squaring threshold
         33,   // KS1 -> KS2 middle product threshold
         86,   // KS2 -> KS4 middle product threshold
       3511,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 20
         29,   // KS1 -> KS2 multiplication threshold
         70,   // KS2 -> KS4 multiplication threshold
       5393,   // KS4 -> FFT multiplication threshold
         31,   // KS1 -> KS2 squaring threshold
         94,   // KS2 -> KS4 squaring threshold
       4726,   // KS4 -> FFT squaring threshold
         29,   // KS1 -> KS2 middle product threshold
         78,   // KS2 -> KS4 middle product threshold
       3511,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 21
         27,   // KS1 -> KS2 multiplication threshold
         72,   // KS2 -> KS4 multiplication threshold
       7022,   // KS4 -> FFT multiplication threshold
         35,   // KS1 -> KS2 squaring threshold
         95,   // KS2 -> KS4 squaring threshold
       6154,   // KS4 -> FFT squaring threshold
         27,   // KS1 -> KS2 middle product threshold
         86,   // KS2 -> KS4 middle product threshold
       3180,   // KS4 -> FFT middle product threshold
         10,   // nussbaumer multiplication threshold
         10    // nussbaumer squaring threshold
   },
   {  // bits = 22
         31,   // KS1 -> KS2 multiplication threshold
         66,   // KS2 -> KS4 multiplication threshold
       5217,   // KS4 -> FFT multiplication threshold
         35,   // KS1 -> KS2 squaring threshold
         94,   // KS2 -> KS4 squaring threshold
       4726,   // KS4 -> FFT squaring threshold
         27,   // KS1 -> KS2 middle product threshold
         75,   // KS2 -> KS4 middle product threshold
       3180,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 23
         29,   // KS1 -> KS2 multiplication threshold
         80,   // KS2 -> KS4 multiplication threshold
       7022,   // KS4 -> FFT multiplication threshold
         35,   // KS1 -> KS2 squaring threshold
         94,   // KS2 -> KS4 squaring threshold
       5760,   // KS4 -> FFT squaring threshold
         25,   // KS1 -> KS2 middle product threshold
         80,   // KS2 -> KS4 middle product threshold
       3077,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 24
         29,   // KS1 -> KS2 multiplication threshold
         66,   // KS2 -> KS4 multiplication threshold
       5760,   // KS4 -> FFT multiplication threshold
         35,   // KS1 -> KS2 squaring threshold
         86,   // KS2 -> KS4 squaring threshold
       4726,   // KS4 -> FFT squaring threshold
         29,   // KS1 -> KS2 middle product threshold
         75,   // KS2 -> KS4 middle product threshold
       3077,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 25
         25,   // KS1 -> KS2 multiplication threshold
         66,   // KS2 -> KS4 multiplication threshold
       6154,   // KS4 -> FFT multiplication threshold
         33,   // KS1 -> KS2 squaring threshold
         78,   // KS2 -> KS4 squaring threshold
       4280,   // KS4 -> FFT squaring threshold
         24,   // KS1 -> KS2 middle product threshold
         66,   // KS2 -> KS4 middle product threshold
       2697,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 26
         29,   // KS1 -> KS2 multiplication threshold
         57,   // KS2 -> KS4 multiplication threshold
       4280,   // KS4 -> FFT multiplication threshold
         33,   // KS1 -> KS2 squaring threshold
         75,   // KS2 -> KS4 squaring threshold
       3877,   // KS4 -> FFT squaring threshold
         27,   // KS1 -> KS2 middle product threshold
         66,   // KS2 -> KS4 middle product threshold
       2697,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 27
         25,   // KS1 -> KS2 multiplication threshold
         54,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         31,   // KS1 -> KS2 squaring threshold
         75,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         61,   // KS2 -> KS4 middle product threshold
       2140,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 28
         27,   // KS1 -> KS2 multiplication threshold
         43,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         31,   // KS1 -> KS2 squaring threshold
         70,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         25,   // KS1 -> KS2 middle product threshold
         57,   // KS2 -> KS4 middle product threshold
       2140,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 29
         25,   // KS1 -> KS2 multiplication threshold
         51,   // KS2 -> KS4 multiplication threshold
       4280,   // KS4 -> FFT multiplication threshold
         29,   // KS1 -> KS2 squaring threshold
         70,   // KS2 -> KS4 squaring threshold
       3877,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         61,   // KS2 -> KS4 middle product threshold
       2140,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 30
         21,   // KS1 -> KS2 multiplication threshold
         47,   // KS2 -> KS4 multiplication threshold
       3877,   // KS4 -> FFT multiplication threshold
         30,   // KS1 -> KS2 squaring threshold
         66,   // KS2 -> KS4 squaring threshold
       3511,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         61,   // KS2 -> KS4 middle product threshold
       2363,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 31
         24,   // KS1 -> KS2 multiplication threshold
         39,   // KS2 -> KS4 multiplication threshold
       4280,   // KS4 -> FFT multiplication threshold
         29,   // KS1 -> KS2 squaring threshold
         61,   // KS2 -> KS4 squaring threshold
       3511,   // KS4 -> FFT squaring threshold
         23,   // KS1 -> KS2 middle product threshold
         51,   // KS2 -> KS4 middle product threshold
       2140,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 32
         24,   // KS1 -> KS2 multiplication threshold
         39,   // KS2 -> KS4 multiplication threshold
       3877,   // KS4 -> FFT multiplication threshold
         27,   // KS1 -> KS2 squaring threshold
         66,   // KS2 -> KS4 squaring threshold
       3511,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         51,   // KS2 -> KS4 middle product threshold
       2140,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 33
         21,   // KS1 -> KS2 multiplication threshold
         33,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         27,   // KS1 -> KS2 squaring threshold
         57,   // KS2 -> KS4 squaring threshold
       3180,   // KS4 -> FFT squaring threshold
         19,   // KS1 -> KS2 middle product threshold
         50,   // KS2 -> KS4 middle product threshold
       1939,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 34
         21,   // KS1 -> KS2 multiplication threshold
         31,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         27,   // KS1 -> KS2 squaring threshold
         47,   // KS2 -> KS4 squaring threshold
       3180,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         43,   // KS2 -> KS4 middle product threshold
       1939,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 35
         21,   // KS1 -> KS2 multiplication threshold
         31,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         27,   // KS1 -> KS2 squaring threshold
         39,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         19,   // KS1 -> KS2 middle product threshold
         40,   // KS2 -> KS4 middle product threshold
       1539,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 36
         21,   // KS1 -> KS2 multiplication threshold
         27,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         25,   // KS1 -> KS2 squaring threshold
         41,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         21,   // KS1 -> KS2 middle product threshold
         38,   // KS2 -> KS4 middle product threshold
       1756,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 37
         17,   // KS1 -> KS2 multiplication threshold
         30,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         24,   // KS1 -> KS2 squaring threshold
         43,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         17,   // KS1 -> KS2 middle product threshold
         40,   // KS2 -> KS4 middle product threshold
       1539,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 38
         19,   // KS1 -> KS2 multiplication threshold
         25,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         27,   // KS1 -> KS2 squaring threshold
         24,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         19,   // KS1 -> KS2 middle product threshold
         35,   // KS2 -> KS4 middle product threshold
       1590,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 39
         19,   // KS1 -> KS2 multiplication threshold
         27,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         23,   // KS1 -> KS2 squaring threshold
         28,   // KS2 -> KS4 squaring threshold
       2697,   // KS4 -> FFT squaring threshold
         17,   // KS1 -> KS2 middle product threshold
         35,   // KS2 -> KS4 middle product threshold
       1349,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 40
         19,   // KS1 -> KS2 multiplication threshold
         27,   // KS2 -> KS4 multiplication threshold
       3511,   // KS4 -> FFT multiplication threshold
         23,   // KS1 -> KS2 squaring threshold
         37,   // KS2 -> KS4 squaring threshold
       3077,   // KS4 -> FFT squaring threshold
         19,   // KS1 -> KS2 middle product threshold
         39,   // KS2 -> KS4 middle product threshold
       1539,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 41
         17,   // KS1 -> KS2 multiplication threshold
         25,   // KS2 -> KS4 multiplication threshold
       3077,   // KS4 -> FFT multiplication threshold
         21,   // KS1 -> KS2 squaring threshold
         36,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         19,   // KS1 -> KS2 middle product threshold
         33,   // KS2 -> KS4 middle product threshold
       1349,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 42
         17,   // KS1 -> KS2 multiplication threshold
         24,   // KS2 -> KS4 multiplication threshold
       3180,   // KS4 -> FFT multiplication threshold
         21,   // KS1 -> KS2 squaring threshold
         27,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         17,   // KS1 -> KS2 middle product threshold
         33,   // KS2 -> KS4 middle product threshold
       1440,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 43
         16,   // KS1 -> KS2 multiplication threshold
         19,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         21,   // KS1 -> KS2 squaring threshold
         21,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         31,   // KS2 -> KS4 middle product threshold
       1305,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 44
         17,   // KS1 -> KS2 multiplication threshold
         24,   // KS2 -> KS4 multiplication threshold
       3077,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         36,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         17,   // KS1 -> KS2 middle product threshold
         29,   // KS2 -> KS4 middle product threshold
       1349,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
   {  // bits = 45
         16,   // KS1 -> KS2 multiplication threshold
         21,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         27,   // KS2 -> KS4 squaring threshold
       2071,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         29,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 46
         17,   // KS1 -> KS2 multiplication threshold
         16,   // KS2 -> KS4 multiplication threshold
       3077,   // KS4 -> FFT multiplication threshold
         21,   // KS1 -> KS2 squaring threshold
         27,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         16,   // KS1 -> KS2 middle product threshold
         31,   // KS2 -> KS4 middle product threshold
       1305,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 47
         16,   // KS1 -> KS2 multiplication threshold
         19,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         21,   // KS1 -> KS2 squaring threshold
         25,   // KS2 -> KS4 squaring threshold
       2071,   // KS4 -> FFT squaring threshold
         16,   // KS1 -> KS2 middle product threshold
         25,   // KS2 -> KS4 middle product threshold
       1305,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 48
         17,   // KS1 -> KS2 multiplication threshold
         14,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         23,   // KS2 -> KS4 squaring threshold
       2071,   // KS4 -> FFT squaring threshold
         16,   // KS1 -> KS2 middle product threshold
         29,   // KS2 -> KS4 middle product threshold
       1349,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 49
         14,   // KS1 -> KS2 multiplication threshold
         15,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         21,   // KS2 -> KS4 squaring threshold
       2071,   // KS4 -> FFT squaring threshold
         16,   // KS1 -> KS2 middle product threshold
         27,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 50
         14,   // KS1 -> KS2 multiplication threshold
         16,   // KS2 -> KS4 multiplication threshold
       2697,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         33,   // KS2 -> KS4 squaring threshold
       2071,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         27,   // KS2 -> KS4 middle product threshold
       1305,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 51
         14,   // KS1 -> KS2 multiplication threshold
         17,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         27,   // KS2 -> KS4 squaring threshold
       1756,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         25,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 52
         14,   // KS1 -> KS2 multiplication threshold
         17,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         24,   // KS2 -> KS4 squaring threshold
       1756,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         27,   // KS2 -> KS4 middle product threshold
       1070,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 53
         13,   // KS1 -> KS2 multiplication threshold
         14,   // KS2 -> KS4 multiplication threshold
       1876,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         19,   // KS2 -> KS4 squaring threshold
       1590,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         25,   // KS2 -> KS4 middle product threshold
        970,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 54
         14,   // KS1 -> KS2 multiplication threshold
         19,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         17,   // KS1 -> KS2 squaring threshold
         19,   // KS2 -> KS4 squaring threshold
       1876,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         23,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 55
         13,   // KS1 -> KS2 multiplication threshold
         12,   // KS2 -> KS4 multiplication threshold
       2071,   // KS4 -> FFT multiplication threshold
         19,   // KS1 -> KS2 squaring threshold
         13,   // KS2 -> KS4 squaring threshold
       1756,   // KS4 -> FFT squaring threshold
         14,   // KS1 -> KS2 middle product threshold
         23,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 56
         13,   // KS1 -> KS2 multiplication threshold
         10,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         17,   // KS1 -> KS2 squaring threshold
         13,   // KS2 -> KS4 squaring threshold
       2004,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         21,   // KS2 -> KS4 middle product threshold
       1070,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 57
         13,   // KS1 -> KS2 multiplication threshold
         15,   // KS2 -> KS4 multiplication threshold
       1876,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         19,   // KS2 -> KS4 squaring threshold
       1756,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         23,   // KS2 -> KS4 middle product threshold
        970,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 58
         13,   // KS1 -> KS2 multiplication threshold
         10,   // KS2 -> KS4 multiplication threshold
       1876,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         19,   // KS2 -> KS4 squaring threshold
       1756,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         23,   // KS2 -> KS4 middle product threshold
        970,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 59
         13,   // KS1 -> KS2 multiplication threshold
         13,   // KS2 -> KS4 multiplication threshold
       1539,   // KS4 -> FFT multiplication threshold
         17,   // KS1 -> KS2 squaring threshold
         17,   // KS2 -> KS4 squaring threshold
       1305,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         21,   // KS2 -> KS4 middle product threshold
        970,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 60
         13,   // KS1 -> KS2 multiplication threshold
         13,   // KS2 -> KS4 multiplication threshold
       1539,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         17,   // KS2 -> KS4 squaring threshold
       1440,   // KS4 -> FFT squaring threshold
         12,   // KS1 -> KS2 middle product threshold
         21,   // KS2 -> KS4 middle product threshold
        878,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 61
         13,   // KS1 -> KS2 multiplication threshold
         12,   // KS2 -> KS4 multiplication threshold
       1756,   // KS4 -> FFT multiplication threshold
         14,   // KS1 -> KS2 squaring threshold
         16,   // KS2 -> KS4 squaring threshold
       1590,   // KS4 -> FFT squaring threshold
         12,   // KS1 -> KS2 middle product threshold
         21,   // KS2 -> KS4 middle product threshold
        878,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 62
         13,   // KS1 -> KS2 multiplication threshold
         19,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         31,   // KS2 -> KS4 squaring threshold
       2363,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         24,   // KS2 -> KS4 middle product threshold
       1182,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 63
         13,   // KS1 -> KS2 multiplication threshold
         19,   // KS2 -> KS4 multiplication threshold
       2363,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         35,   // KS2 -> KS4 squaring threshold
       2140,   // KS4 -> FFT squaring threshold
         13,   // KS1 -> KS2 middle product threshold
         25,   // KS2 -> KS4 middle product threshold
       1070,   // KS4 -> FFT middle product threshold
          8,   // nussbaumer multiplication threshold
          8    // nussbaumer squaring threshold
   },
   {  // bits = 64
         13,   // KS1 -> KS2 multiplication threshold
         23,   // KS2 -> KS4 multiplication threshold
       4280,   // KS4 -> FFT multiplication threshold
         16,   // KS1 -> KS2 squaring threshold
         33,   // KS2 -> KS4 squaring threshold
       3877,   // KS4 -> FFT squaring threshold
         12,   // KS1 -> KS2 middle product threshold
         23,   // KS2 -> KS4 middle product threshold
       1756,   // KS4 -> FFT middle product threshold
          9,   // nussbaumer multiplication threshold
          9    // nussbaumer squaring threshold
   },
};

// end of file ****************************************************************