-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeLog
26499 lines (17914 loc) · 862 KB
/
ChangeLog
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
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2012-05-06 Torbjorn Granlund <[email protected]>
* Version 5.0.5 released.
* mpn/Makefile.am (TARG_DIST): Remove thumb, since directory now empty.
2012-04-28 Torbjorn Granlund <[email protected]>
* mpn/thumb/add_n.s: Remove broken code.
* mpn/thumb/sub_n.s: Likewise.
2012-04-02 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* gmp-h.in (_GMP_H_HAVE_FILE): Test also __STDIO_LOADED (for VMS).
2012-03-27 Torbjorn Granlund <[email protected]>
* config.guess: Fix typo in coreisbr recognition.
2012-03-07 Torbjorn Granlund <[email protected]>
* config.guess: Handle AMD 11h correctly.
2012-03-04 Marco Bodrato <[email protected]>
* tests/mpz/t-invert.c: Avoid testing mod 0.
* doc/gmp.texi (mpz_invert): Specify mod 0 is not handled.
2012-02-24 Torbjorn Granlund <[email protected]>
* tests/mpn/logic.c: New file.
* tests/mpn/Makefile.am (check_PROGRAMS): Add logic.
* tests/mpz/t-invert.c: New file.
* tests/mpz/Makefile.am (check_PROGRAMS): Add t-invert.
2012-02-11 Marco Bodrato <[email protected]>
* doc/gmp.texi (Multiplication Algorithms): Add Toom[68]'n'half.
2012-02-10 Torbjorn Granlund <[email protected]>
* Version 5.0.4 released.
2012-02-09 Marco Bodrato <[email protected]>
* gmp-impl.h (mpn_toom3*_itch): Support any recursion depth.
* tests/refmpn.c (refmpn_mul): Restore tight allocations.
2012-02-09 Marc Glisse <[email protected]>
* gmp-impl.h (ABS_CAST): New macro.
* mpf/cmp_si.c: Use ABS_CAST.
* mpf/get_si.c: Use ABS_CAST.
* mpf/iset_si.c: Use ABS_CAST.
* mpf/set_si.c: Use ABS_CAST.
* mpq/set_si.c: Use ABS_CAST.
* mpz/cmp_si.c: Use ABS_CAST.
* mpz/get_si.c: Use ABS_CAST.
* mpz/iset_si.c: Use ABS_CAST.
* mpz/mul_i.h: Use ABS_CAST.
* mpz/set_si.c: Use ABS_CAST.
2012-02-09 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
2012-02-08 Torbjorn Granlund <[email protected]>
* mpn/powerpc32/divrem_2.asm: Fix off-by-one condition in invert_limb
code.
2012-02-08 Niels Möller <[email protected]>
* doc/gmp.texi (mpz_gcdext): Describe cofactor canonicalization.
(mpn_gcdext): Copied doc updates from main repo.
2012-02-07 Niels Möller <[email protected]>
* mpn/generic/gcdext.c (mpn_gcdext): Fixed assert, related to the
special case A = (2k+1) G, B = 2 G.
2012-02-06 Niels Möller <[email protected]>
* mpn/generic/hgcd.c (hgcd_matrix_update_q): Fixed carry handling
bug.
* tests/mpz/t-gcd.c (main): Omit tests with urandomb operands.
* tests/mpn/t-hgcd.c (main): Likewise.
2012-02-05 Niels Möller <[email protected]>
* tests/mpz/t-gcd.c (main): Add tests with rrandomb operands.
* tests/mpn/t-hgcd.c (main): Likewise.
* mpn/generic/gcdext_subdiv_step.c (mpn_gcdext_subdiv_step):
Bugfix, in u1 += q * u0, handle carry in all cases. Also normalize
the product q * u0.
2012-02-04 Marco Bodrato <[email protected]>
* tests/refmpn.c (refmpn_mul): More conservative allocations.
2012-02-03 Torbjorn Granlund <[email protected]>
* mpn/x86_64/bd1/gmp-mparam.h: New file.
* longlong.h (udiv_qrnnd from sdiv_qrnnd): Declare udiv_w_sdiv.
* mpn/generic/udiv_w_sdiv.c: Use c89 function header.
2012-02-02 Marco Bodrato <[email protected]>
* mpn/generic/toom_interpolate_16pts.c: Correct an unlikely 32-bit bug.
2012-02-02 Torbjorn Granlund <[email protected]>
* mpn/generic/toom63_mul.c: Allow s+t==n by adjusting an ASSERT.
* mpn/generic/toom_interpolate_8pts.c: Perform final incr iff s+t!=n.
* tests/mpn/t-toom6h.c (MIN_BN): Make more consistent with ASSERT in
tested function.
2012-02-01 Torbjorn Granlund <[email protected]>
* tests/mpn/t-mul.c: New file.
* tests/mpn/Makefile.am: Compile it.
2012-01-31 Torbjorn Granlund <[email protected]>
* mpn/generic/powm_sec.c (SQR_BASECASE_LIM): New name for
SQR_BASECASE_MAX.
(SQR_BASECASE_LIM, fat variant): Define to read __gmpn_cpuvec.
(SQR_BASECASE_LIM, native variant): Define to SQR_TOOM2_THRESHOLD
straight, without arithmetic.
(mpn_local_sqr): Use BELOW_THRESHOLD as per Marco's suggestion.
2012-01-30 Torbjorn Granlund <[email protected]>
* tests/mpz/t-powm.c: Ensure all sizes are seen.
2012-01-27 Torbjorn Granlund <[email protected]>
* Version 5.0.3 released.
* Upgrade to libtool 2.4.2.
2012-01-25 Torbjorn Granlund <[email protected]>
* tune/tuneup.c: Remove unused tuneup variables.
2012-01-23 Torbjorn Granlund <[email protected]>
* mpn/powerpc64/mode64/p6/gmp-mparam.h: New file.
* mpn/powerpc64/mode64/p7/gmp-mparam.h: New file.
* mpn/x86_64/bobcat/gmp-mparam.h: New file.
2012-01-18 Marc Glisse <[email protected]>
* doc/gmp.texi (mpf_class::mpf_class): Use mp_bitcnt_t.
2012-01-17 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* configure.in: Add ultrasparc T4 support.
* demos/isprime.c (main): Run 25 millerrabin tests.
2012-01-15 Niels Möller <[email protected]>
* mpz/scan0.c (mpz_scan0): Use ~(mp_bitcnt_t) 0, rather than
ULONG_MAX, when returning "infinity".
* mpz/scan1.c (mpz_scan1): Likewise.
2011-12-30 Torbjorn Granlund <[email protected]>
* mpz/hamdist.c: Fix typo in a return statement.
2011-12-08 Torbjorn Granlund <[email protected]>
* mpn/generic/powm_sec.c: Handle fat binaries better.
2011-12-07 Torbjorn Granlund <[email protected]>
* configure.in: Fix typo making HAVE_NATIVE_mpn_X fail for fat
functions.
* mpn/x86_64/fat/fat.c (__gmpn_cpuvec_init): Add a missing break.
2011-12-01 Torbjorn Granlund <[email protected]>
* mpn/x86_64/fat/fat.c: Copy fake cpuid code from x86/fat/fat.c.
* gmp-impl.h (DECL_divexact_1): Fix typo in return type.
2011-11-28 Torbjorn Granlund <[email protected]>
* mpn/generic/udiv_w_sdiv.c: Use CNST_LIMB for some constants.
2011-11-25 Torbjorn Granlund <[email protected]>
* configure.in: Overhaul x86/x86_64 support, merging three case
statements into one.
2011-11-24 Torbjorn Granlund <[email protected]>
* doc/gmp.texi (Formatted Output Strings): Clarify rules for mpf_t
precision.
2011-11-21 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP_RELEASE): Renamed from typo name.
2011-11-20 Torbjorn Granlund <[email protected]>
* configure.in: Split x86 CPUs into more subtypes for more accurate
passing of gcc flags.
* configure.in: Pass -m32 for powerpc64 with abi=32, using via _maybe
mechanism.
2011-11-15 Torbjorn Granlund <[email protected]>
* mpn/generic/powm_sec.c (mpn_local_sqr): Remove forgotten TMP_* calls.
(redcify): Likewise.
(mpn_powm_sec): Likewise.
* mpn/generic/powm_sec.c (mpn_powm_sec): Use mpn_tabselect also in
initialisation.
2011-10-15 Torbjorn Granlund <[email protected]>
* configure.in (s390): Rewrite support to handle known CPUs.
* config.guess: Recognise s390 CPUs.
* config.sub: Match s390 CPUs.
* acinclude.m4 (S390_PATTERN, S390X_PATTERN): New defines.
2011-10-14 Torbjorn Granlund <[email protected]>
From Per Olofsson:
* mpn/generic/popham.c: Add __GMP_NOTHROW to make it match gmp.h.
* configure.in: AC_DEFINE HAVE_HOST_CPU_s390_zarch.
* longlong.h (s390): Use it.
(s390 umul_ppmm): Fix typo in pure C variant.
2011-10-13 Torbjorn Granlund <[email protected]>
* longlong.h (s390): Put back an accidentally deleted #else.
* configure.in (s390): Unset extra_functions for s390x.
2011-10-12 Torbjorn Granlund <[email protected]>
* longlong.h (s390 umul_ppmm): With new-enough gcc, avoid asm.
From Andreas Krebbel:
* longlong.h (s390 umul_ppmm): Support 32-bit limbs with gcc using
64-bit registers.
(s390 udiv_qrnnd): Likewise.
2011-10-11 Torbjorn Granlund <[email protected]>
* configure.in (s390x): Pass -mzarch to gcc in 32-bit mode.
* longlong.h (s390x): Add __CLOBBER_CC for relevant asm patterns.
2011-10-10 Torbjorn Granlund <[email protected]>
From Marco Trudel:
* tests/mpz/t-scan.c (check_ref): Fix loop end bound.
2011-10-09 Torbjorn Granlund <[email protected]>
* longlong.h (s390x): Put back UDItype casts to make gcc reloading use
right more for constants.
(s390x count_leading_zeros): Disable until we support z10 specifically.
(s390x add_ssaaaa): Remove algsi/slgsi until we support z10.
2011-10-07 Torbjorn Granlund <[email protected]>
* longlong.h (s390): Add 32-bit zarch umul_ppmm and udiv_qrnnd.
(s390): Overhaul 32-bit and 64-bit code.
2011-10-04 Torbjorn Granlund <[email protected]>
* mpn/Makefile.am (TARG_DIST): Add s390_32 and s390_64, remove s390.
* doc/gmp.texi (Custom Allocation): Rephrase a paragraph.
* demos/factorize.c: Run 25 Miller-Rabin tests.
* mpz/nextprime.c: Run 25 mpz_millerrabin tests (was 10).
2011-10-03 Torbjorn Granlund <[email protected]>
* configure.in: Support s390x.
* longlong.h: Add support for 64-bit s390x.
* mpn/s390_64: New directory.
* mpn/s390_32: Directory renamed from mpn/s390.
2011-09-26 Torbjorn Granlund <[email protected]>
* mpn/sh/sh2/submul_1.s: Make this old submul_1 implementation
actually compute intended function.
2011-09-25 Torbjorn Granlund <[email protected]>
* mpn/sh: Migrate files to '.asm'.
* configure.in: Recognise sh3 and sh4.
2011-08-18 Torbjorn Granlund <[email protected]>
* printf/doprntf.c (__gmp_doprnt_mpf): For DOPRNT_CONV_FIXED, ask for
one more digit.
2011-08-17 Torbjorn Granlund <[email protected]>
* mpf/sub.c: Fix typo in copy condition. Delay an allocation.
2011-08-10 Torbjorn Granlund <[email protected]>
* tests/rand/t-lc2exp.c (check_bigc): Call abort after reporting error.
2011-07-15 Torbjorn Granlund <[email protected]>
* mpn/arm/invert_limb.asm: Swap around some registers to silence 'as'
warnings.
2011-07-14 Torbjorn Granlund <[email protected]>
* mpn/generic/dcpi1_bdiv_q.c (mpn_dcpi1_bdiv_q): Get mpn_sub_1 size
argument right.
2011-07-04 Torbjorn Granlund <[email protected]>
* tests/misc/t-locale.c: Disable test for mingw.
* configure.in (x86_64 *-*-mingw*): Handle also cygwin here; clear out
extra_functions_64.
2011-07-02 Torbjorn Granlund <[email protected]>
* config.guess: Don't print newline in x86 cpuid function.
Rewrite x86-64 cpu recognition asm code to work under Windoze.
2011-06-16 Torbjorn Granlund <[email protected]>
* acinclude.m4 (GMP_ASM_RODATA): Fix typo in 2011-04-10 change.
* configure.in: Surround tr ranges with [] for portability.
2011-05-08 Marc Glisse <[email protected]>
* doc/gmp.texi (gmp_randclass::get_f): Replace unsigned long
with mp_bitcnt_t.
2011-05-07 Torbjorn Granlund <[email protected]>
* Version 5.0.2 released.
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
2011-05-05 Marc Glisse <[email protected]>
[These changes were made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* mpn/x86_64/fat/fat.c: Update for Sandy Bridge.
* config.guess: warning to keep it in sync with fat.c.
2011-05-05 Torbjorn Granlund <[email protected]>
* mpn/x86_64/fat/fat_entry.asm: (PIC_OR_DARWIN): New symbol. Use it to
work around Darwin problems.
2011-05-02 Marc Glisse <[email protected]>
* configfsf.guess: Update to version of 2011-02-02.
* configfsf.sub: Update to version of 2011-03-23.
2011-04-30 Marc Glisse <[email protected]>
* gmp-h.in (mpz_cdiv_q_2exp): Use mp_bitcnt_t to match the definition
and the documentation.
(mpz_remove): Likewise.
(mpf_eq): Likewise.
* ltmain.sh: Remove.
* .bootstrap: Let libtoolize generate ltmain.sh.
* doc/gmp.texi (mpf_urandomb): Explicit the fact that it does not
change the precision.
2011-04-28 Torbjorn Granlund <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* configure.in (x86_64): Support bobcat specifically.
(x86): Match bobcat and bulldozer, handle like k10.
2011-04-27 Torbjorn Granlund <[email protected]>
* tune/speed.h (speed_cyclecounter): Always use PIC variant when
compiled with Apple's GCC.
2011-04-26 Torbjorn Granlund <[email protected]>
* mpn/sparc32/sparc-defs.m4 (changecom): Don't redefine '!' as it
interferes with expressions.
2011-04-10 Niels Möller <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* configure.in: Add invert_limb_table to extra_functions_64 on
x86_64.
2011-04-10 Torbjorn Granlund <[email protected]>
* acinclude.m4 (GMP_ASM_RODATA): Make 'foo' larger to avoid clang
problems.
2011-03-28 Torbjorn Granlund <[email protected]>
* mpn/x86/invert_limb.asm: Protect movzwl register parameters from
being interpreted as m4 macro parameters.
2011-03-21 Torbjorn Granlund <[email protected]>
* configure.in (hppa): Under linux, treat 64-bit processors as if they
were 32-bit processors.
2011-03-15 Marco Bodrato <[email protected]>
* mpn/generic/toom_interpolate_16pts.c: Remove ambiguity.
2011-03-12 Torbjorn Granlund <[email protected]>
* tune/powerpc.asm: Use powerpc syntax, not power syntax.
2011-03-09 Marc Glisse <[email protected]>
* doc/gmp.texi: Remove void return type from constructors. Document
explicit constructors. Document mpf_class::mpf_class(mpf_t).
2011-02-24 Torbjorn Granlund <[email protected]>
* mpn/x86/p6/sse2/mod_1_4.asm: Fix typo in MULFUNC_PROLOGUE.
2011-02-04 Torbjorn Granlund <[email protected]>
* mpn/x86_64/core2/popcount.asm: Add a MULFUNC_PROLOGUE.
* mpn/x86_64/pentium4/popcount.asm: Likewise.
2011-01-31 Torbjorn Granlund <[email protected]>
[These changes were made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* config.guess: Recognise new Intel processors.
* config.guess: Support 'coreinhm' and 'coreisbr'.
* config.sub: Likewise.
* configure.in: Likewise.
2011-01-25 Marco Bodrato <[email protected]>
* mpz/mul.c: Remove redundant size computation.
2010-11-11 Torbjorn Granlund <[email protected]>
* mpn/x86_64/atom/aors_n.asm: Don't rely on ZF after 'bt' insn.
Use 64-bit 'test' to support operands of 2^32 limbs and more.
2010-11-10 Torbjorn Granlund <[email protected]>
[These changes were made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* mp_get_fns.c: Add a __GMP_NOTHROW for coherency with prototype.
* mp_set_fns.c: Likewise.
* mpf/cmp.c: Likewise.
* mpf/cmp_si.c: Likewise.
* mpf/cmp_ui.c: Likewise.
* mpf/fits_s.h: Likewise.
* mpf/fits_u.h: Likewise.
* mpf/get_dfl_prec.c: Likewise.
* mpf/get_prc.c: Likewise.
* mpf/get_si.c: Likewise.
* mpf/get_ui.c: Likewise.
* mpf/int_p.c: Likewise.
* mpf/set_dfl_prec.c: Likewise.
* mpf/set_prc_raw.c: Likewise.
* mpf/size.c: Likewise.
* mpf/swap.c: Likewise.
* mpq/equal.c: Likewise.
* mpq/swap.c: Likewise.
* mpz/cmp.c: Likewise.
* mpz/cmp_si.c: Likewise.
* mpz/cmp_ui.c: Likewise.
* mpz/cmpabs.c: Likewise.
* mpz/cmpabs_ui.c: Likewise.
* mpz/cong_2exp.c: Likewise.
* mpz/divis_2exp.c: Likewise.
* mpz/fits_s.h: Likewise.
* mpz/get_si.c: Likewise.
* mpz/hamdist.c: Likewise.
* mpz/scan0.c: Likewise.
* mpz/scan1.c: Likewise.
* mpz/sizeinbase.c: Likewise.
* mpz/swap.c: Likewise.
* mpz/tstbit.c: Likewise.
2010-11-09 Torbjorn Granlund <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* configure.in (AC_INIT): Amend bug reporting address with manual
reference.
2010-11-06 Torbjorn Granlund <[email protected]>
* mpn/x86_64/aors_n.asm: Rewrite not to rely on ZF after 'bt' insn.
2010-10-04 Torbjorn Granlund <[email protected]>
* mpn/x86_64/gcd_1.asm: Use m4_lshift to avoid << operator.
* mpn/x86/k7/gcd_1.asm: Likewise.
2010-08-20 Niels Möller <[email protected]>
Suggested by Ozkan Sezer:
* configure.in: If $M4 is already set in the environment, don't
touch it. Fixed the case that no assembler files are used, and
GMP_PROG_M4 is omitted.
2010-06-15 Niels Möller <[email protected]>
* tests/mpn/Makefile.am (check_PROGRAMS): Added t-mod_1.
* tests/mpn/t-mod_1.c: New file.
2010-05-24 Torbjorn Granlund <[email protected]>
* mpn/generic/mu_div_qr.c (mpn_preinv_mu_div_qr_itch): New function.
* gmp-impl.h: Declare it.
* tune/common.c (speed_mpn_mupi_div_qr): Use new itch function.
* tune/speed.h (SPEED_ROUTINE_MPN_MUPI_DIV_QR): Pass parameters right
for new itch function.
2010-05-14 Torbjorn Granlund <[email protected]>
* mpn/generic/redc_2.c: Use asm code just for GNU C.
2010-05-06 Torbjorn Granlund <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* tune/tuneup.c (tune_mod_1): Fix typo.
2010-05-05 Torbjorn Granlund <[email protected]>
[These changes were made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* longlong.h: Undo 2009-03-01 change for powerpc64, it gives poor code.
* tune/tuneup.c (tune_mod_1): Use more typical divisor, for the benefit
of machines with early-out multipliers.
2010-05-04 Torbjorn Granlund <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* tune/tuneup.c (tune_mod_1): Fix typo.
2010-05-03 Torbjorn Granlund <[email protected]>
[This change was made after the 5.0.2 release, but inserted here to
match the change chronology of the main repository.]
* tune/tuneup.c (tune_mod_1): Measure MOD_1_1_TO_MOD_1_2_THRESHOLD and
MOD_1_2_TO_MOD_1_4_THRESHOLD before MOD_1U_TO_MOD_1_1_THRESHOLD for
correctness.
2010-04-12 Torbjorn Granlund <[email protected]>
* tests/mpn/t-toom6h.c (SIZE_LOG): Define.
* tests/mpn/t-toom8h.c (SIZE_LOG): Likewise.
2010-04-10 Torbjorn Granlund <[email protected]>
* mpn/x86/divrem_2.asm: Use "orb" instead of "or" to work around
Solaris assembler bug.
* mpn/x86_64/mpn/x86_64/divrem_2.asm: Likewise.
2010-03-25 Torbjorn Granlund <[email protected]>
* mpn/generic/toom33_mul.c: Fix mpn_add_n_sub_n usage.
* mpn/generic/toom3_sqr.c: Likewise.
* mpn/generic/toom63_mul.c: Likewise.
2010-03-19 Torbjorn Granlund <[email protected]>
* mpn/generic/toom_interpolate_6pts.c: Call mpn_sublsh2_n and
mpn_sublsh_n with correct args.
2010-03-06 Torbjorn Granlund <[email protected]>
* tests/tests.h (TESTS_REPS): Fix typo.
2010-02-26 Torbjorn Granlund <[email protected]>
* mpn/pa64/aors_n.asm: Fix typo in last change.
2010-02-25 Torbjorn Granlund <[email protected]>
* tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb
variables.
* tests/mpn/t-div.c: Cast a switch index to placate HP's cc.
* tests/mpn/t-bdiv.c: Likewise.
* mpn/pa64/aors_n.asm: Fix support of the 2.0n ABI.
2010-02-23 Torbjorn Granlund <[email protected]>
* mpn/generic/mod_1_3.c: Cast a switch index.
* mpn/generic/sqrtrem.c: Use CNST_LIMB.
2010-02-07 Torbjorn Granlund <[email protected]>
* tune/tuneup.c (tune_redc): Set min_size and min_is_always when
measuring REDC_1_TO_REDC_2_THRESHOLD.
(tune_mod_1): Set min_size for PREINV_MOD_1_TO_MOD_1_THRESHOLD.
* mpn/x86_64/aorrlsh_n.asm (cnt): Fix a typo.
* mpn/x86_64/lshsub_n.asm: Likewise.
2010-02-05 Torbjorn Granlund <[email protected]>
* Version 5.0.1 released.
* mpn/generic/powm.c: Use rp target area for power table computation in
order to use less scratch.
* mpn/generic/binvert.c (mpn_binvert_itch): Enable more economical
mpn_mulmod_bnm1_itch call.
* mpn/generic/mu_div_qr.c: Remove always true #if.
* mpn/generic/mu_divappr_q.c: Likewise.
* mpn/generic/mu_bdiv_q.c: Likewise.
* mpn/generic/mu_bdiv_qr.c: Likewise.
2010-02-01 Torbjorn Granlund <[email protected]>
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* mpn/powerpc64/mode64/gmp-mparam.h: Remove {MUL,SQR}_FFT_TABLE2.
* mpn/x86/p6/gmp-mparam.h: Likewise.
* mpn/x86/p6/mmx/gmp-mparam.h: Likewise.
* mpn/generic/mul_fft.c: Don't depend on FFT_TABLE2, it was broken.
2010-01-29 Torbjorn Granlund <[email protected]>
* mpn/generic/mul_fft.c (mpn_mul_fft_internal): Remove arguments n, m,
k and rec; add argument sqr. Don't call mpn_mul_fft_decompose here,
instead do that in all callers.
(mpn_mul_fft): Trim allocation when squaring, and use TMP_ALLOC*, not
explicit alloc/free.
(mpn_fft_div_2exp_modF): Avoid a scalar division.
(mpn_fft_mul_modF_K): Replace some multiplies by K with shifting by k.
(mpn_fft_mul_2exp_modF): Make function more symmetrical.
2010-01-27 Torbjorn Granlund <[email protected]>
* mpn/generic/mu_div_q.c (mpn_mu_div_q_itch): Rewrite.
* mpn/generic/mu_div_qr.c (mpn_mu_div_qr_itch): Re-enable
better mulmod itch estimate.
* mpn/generic/mu_divappr_q.c (mpn_mu_divappr_q_itch): Likewise.
* mpn/generic/mu_bdiv_qr.c (mpn_mu_bdiv_qr_itch): Likewise.
* mpn/generic/mu_bdiv_q.c (mpn_mu_bdiv_q_itch): Likewise.
2010-01-27 Marco Bodrato <[email protected]>
* mpn/generic/mu_div_qr.c (mpn_mu_div_qr_itch): Disabled guessed
estimate, enabled a conservative one.
* mpn/generic/mu_divappr_q.c (mpn_mu_divappr_q_itch): Likewise.
* mpn/generic/mu_bdiv_qr.c (mpn_mu_bdiv_qr_itch): Likewise.
* mpn/generic/mu_bdiv_q.c (mpn_mu_bdiv_q_itch): Likewise.
2010-01-26 Marco Bodrato <[email protected]>
* mpn/generic/mulmod_bnm1.c (mpn_mulmod_bnm1): Partial rewrite to
reduce memory usage.
* mpn/generic/sqrmod_bnm1.c (mpn_sqrmod_bnm1): Likewise.
(mpn_sqrmod_bnm1_next_size): New function.
* gmp-impl.h (mpn_mulmod_bnm1_itch): Accepts 3 parameters now.
(mpn_sqrmod_bnm1_itch): New inline function.
(mpn_sqrmod_bnm1_next_size): Declaration and mangling.
* mpn/generic/nussbaumer_mul.c: Use the new functions.
* mpn/generic/invertappr.c (mpn_ni_invertappr): Use new syntax for
mpn_mulmod_bnm1_itch.
* mpn/generic/mu_divappr_q.c (mpn_mu_divappr_q_itch): Likewise.
* mpn/generic/mu_bdiv_qr.c (mpn_mu_bdiv_qr_itch): Likewise.
* mpn/generic/mu_bdiv_q.c (mpn_mu_bdiv_q_itch): Likewise.
* mpn/generic/mu_div_qr.c (mpn_mu_div_qr_itch): Likewise.
* mpn/generic/binvert.c (mpn_binvert_itch): Likewise.
* tune/speed.h (SPEED_ROUTINE_MPN_MULMOD_BNM1_CALL): Likewise.
(SPEED_ROUTINE_MPN_MULMOD_BNM1_ROUNDED): Likewise.
* tests/mpn/t-sqrmod_bnm1.c, tests/mpn/t-mulmod_bnm1.c: Test
reduced memory usage.
2010-01-25 Torbjorn Granlund <[email protected]>
* tune/tuneup.c (INSERT_FFTTAB): New macro, like old insertion code but
also inserting a sentinel.
(fftmes): Use INSERT_FFTTAB for inserting new measurements.
Limit k range to best_k - 4 ... best_k + 4.
2010-01-23 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
(__GMP_MP_RELEASE): New macro.
* mpf/div.c: Rewrite to use mpn_div_q.
2010-01-21 Torbjorn Granlund <[email protected]>
* Add FFT_TABLE3 tables for a basic set of machines.
* configure.in: Use -mtune=nocona for 64-bit pentium4.
* config.guess: Recognise many more Intel processors.
* tune/common.c: Whitespace cleanup.
(speed_mpn_matrix22_mul): Rewrite.
2010-01-21 Niels Möller <[email protected]>
* mpn/generic/nussbaumer_mul.c (mpn_nussbaumer_mul): Take
advantage of new mpn_mulmod_bnm1 interface, to reduce allocation.
* tests/mpn/t-mulmod_bnm1.c (ref_mulmod_bnm1, main): Adapted to
mpn_mulmod_bnm1 interface change.
* mpn/generic/mulmod_bnm1.c (mpn_mulmod_bnm1): Interface change,
in case an + bn < rn, only write an + bn output limbs. New input
requirement, an + bn > rn/2.
* mpn/generic/sqrmod_bnm1.c (mpn_sqrmod_bnm1): Corresponding
changes.
2010-01-19 Torbjorn Granlund <[email protected]>
* tune/tuneup.c (fftmes): Round up initial n according to initial k.
Limit k to 24 in loop. Remove an obsolete always-true condition.
Remove a redundant trace printout.
2010-01-18 Torbjorn Granlund <[email protected]>
* tune/tuneup.c (fftmes): New function
(fft): Rewrite.
(mpn_mul_fft_lcm): New function, copied from mpn/generic/mul_fft.c.
(fftfill): New function, code taken from mul_fft.c (mpn_mul_fft).
(cached_measure): New function.
* gmp-impl.h (struct fft_table_nk): Moved from mul_fft.c.
(MUL_FFT_TABLE3, SQR_FFT_TABLE3): Provide dummy versions for tuneup
builds.
(FFT_TABLE3_SIZE): Increase value for tuneup builds.
* mpn/generic/mul_fft.c: Handle a new FFT threshold table type ("3").
Misc cleanups to old table type code.
2010-01-16 Torbjorn Granlund <[email protected]>
* mpn/x86_64/darwin.m4: Fix typo in last change.
2010-01-15 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GMP_EXTERN_INLINE): Remove "extern" for newer Sun C.
* gmp-impl.h (GMP_LIMB_BYTES): New define.
* mpn/x86_64/darwin.m4 (LEA): New define.
* mpn/x86/invert_limb.asm (approx_tab): Use DEF_OBJECT.
Rename and globalise it to work around Mac OS bug.
With Philip McLaughlin:
* mpn/x86_64/gcd_1.asm (ctz_table): Don't use local prefix, but
use DEF_OBJECT...END_OBJECT.
Keep stack pointer at ABI mandated alignment over call.
2010-01-12 Torbjorn Granlund <[email protected]>
* tune/speed.c (routine): Remove obsolete mpn_dc_tdiv_qr and
mpn_dc_div_qr_n.
* tune/common.c (speed_mpn_dc_tdiv_qr, speed_mpn_dcpi1_div_qr_n):
Remove now unused functions.
* tune/speed.h (SPEED_ROUTINE_MPN_DC_DIVREM_N,
SPEED_ROUTINE_MPN_DC_DIVREM_SB, SPEED_ROUTINE_MPN_DC_TDIV_QR): Remove
now unused macros.
* mpn/x86_64/fat/fat_entry.asm (mpn_cpuid_available): Remove function.
* ltmain.sh: Upgrade from 1.5.24 to 2.2.6b.
* ylwrap: New file.
* .bootstrap: Remove explicit versions.
* doc/gmp.texi (Block-wise Barrett Division): New node.
* mpn/generic/powm.c: Change some #if to plain 'if' to avoid fat build
problems.
2010-01-11 Torbjorn Granlund <[email protected]>
* tune/speed.h (SPEED_ROUTINE_MPN_PI1_DIV): Accept arguments for size
restrictions.
* tune/common.c (speed_mpn_sbpi1_div_qr, speed_mpn_dcpi1_div_qr,
(speed_mpn_sbpi1_divappr_q, speed_mpn_dcpi1_divappr_q): Pass size
limits for SPEED_ROUTINE_MPN_PI1_DIV.
* tune/speed.c (routine): Allow .r argument for mpn_sbpi1_divappr_q and
mpn_dcpi1_divappr_q.
2010-01-08 Torbjorn Granlund <[email protected]>
* Version 5.0.0 released.
* mpn/generic/div_q.c: Handle mpn_*_divappr_q returning high limb
everywhere.
2010-01-07 Torbjorn Granlund <[email protected]>
* Update MUL_FFT_TABLE2 and SQR_FFT_TABLE2 for many machines.
* mpn/generic/mu_div_q.c: Account for divisor truncation error as well
as mpn_mu_divappr_q's error.
* mpn/generic/mu_div_q.c: Handle mpn_preinv_mu_divappr_q returning a
high limb.
* tests/mpn/t-bdiv.c: Move a random call for debugability.
* tests/mpn/t-div.c: Likewise.
* mpn/generic/mu_divappr_q.c: Rewrite quotient round-up code.
* mpn/generic/mu_div_qr.c: Handle carry-out from a carry propagation
subtract.
* mpn/generic/mu_divappr_q.c: Likewise.
* mpn/generic/mu_divappr_q.c
(mpn_preinv_mu_divappr_q, mpn_mu_divappr_q): Declare dividend constant.
* gmp-impl.h: Likewise.
* perfpow.c (mpn_perfect_power_p): Call mpn_divexact instead of
mpn_bdiv_q (with too little scratch space!).
From Niels Möller:
* tests/mpn/t-div.c (check_one): Get rid of the poorly managed variable
tn.
* mpn/minithres/gmp-mparam.h: Add all lately defined thresholds.
* mpn/generic/div_q.c: Use SB division for small quotients as well as
small divisors. Fix typo in itch call.
2010-01-06 Niels Möller <[email protected]>
* tests/mpn/t-div.c (check_one): Checking based on multiplication,
refmpn_mul, rather than refmpn_tdiv_qr.
2010-01-06 Marco Bodrato <[email protected]>
* mpn/generic/toom8h_mul.c: Avoid overflows of mp_size_t.
2010-01-06 Torbjorn Granlund <[email protected]>
* gmp-h.in (__GNU_MP__): Bump.
(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL):
Bump version info.
* mp-h.in (__GNU_MP__): Bump.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* doc/gmp.texi: Rewrite mpn_gcdext text. Remove some out-of-date
text in Algorithms chapter.
* mpn/generic/div_q.c: Properly handle np=scratch. Fix critical typo
in final adjustment code. Misc cleanups.
* mpn/generic/rootrem.c: Use mpn_div_q.
* mpz/tdiv_q.c: Likewise.
* tests/mpn/t-div.c: Test mpn_div_q.
(SIZE_LOG): Up to 17.
* mpn/generic/div_q.c: New file.
* configure.in (gmp_mpn_functions): Add div_q.
* mpn/generic/mu_div_q.c: Actually declare dividend constant.
2010-01-04 Torbjorn Granlund <[email protected]>
* tune/tuneup.c (fft): Separate tuning of modf and full products.
(struct fft_param_t): New field, mul_modf_function.
(tune_fft_sqr): Fix typo.
(tune_fft_mul, tune_fft_sqr): Initialise mul_modf_function field.
* tune/common.c (speed_mpn_fft_mul, speed_mpn_fft_sqr): New functions.
* tune/speed.h (SPEED_ROUTINE_MPN_MULMOD_BNM1_ROUNDED): Clean up.
* mpn/generic/mul.c: Simplify rational expression.
* gmp-impl.h: Cleanup threshold variables; remove obsolete ones and
make all possibly needed definitions for existing ones.
* tune/tuneup.c (tune_mul): Write fractions-compensated values to
threshold variables.
2010-01-03 Marco Bodrato <[email protected]>
* tune/common.c, tune/speed.c, tune/speed.h: Support measuring
mpn_toom43_mul.
* mpn/generic/toom_interpolate_6pts.c: Small reorganisation.
2010-01-03 Torbjorn Granlund <[email protected]>
* gmp-impl.h (MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD): Default to
INV_MULMOD_BNM1_THRESHOLD/2 instead.
* gmp-impl.h (INV_APPR_THRESHOLD, INV_MULMOD_BNM1_THRESHOLD): Default
here...
* mpn/generic/invert.c, mpn/generic/invertappr.c: ...not here.
* tests/mpn/t-div.c: Rewrite operand generation code.
2010-01-02 Torbjorn Granlund <[email protected]>
* gmp-impl.h (MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD): Default to
INV_MULMOD_BNM1_THRESHOLD.
2010-01-02 Marco Bodrato <[email protected]>
* mpn/generic/dcpi1_div_q.c: Handle divappr approximation problem more
efficiently.
* mpn/generic/mu_div_q.c: Likewise.
* mpn/generic/invert.c: Remove duplicated code.
2010-01-01 Torbjorn Granlund <[email protected]>
* gmp-impl.h (MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD): Default to 0.
* mpn/generic/mu_div_qr.c: Rewrite to use mpn_mulmod_bnm1. Clean up
scratch usage. Improve itch functions.
* mpn/generic/mu_divappr_q.c: Likewise.
* mpn/generic/mu_bdiv_qr.c: Likewise.
* mpn/generic/mu_div_q.c: Likewise.
* mpn/generic/dcpi1_bdiv_qr.c: Add parameter ASSERTs.
* mpn/generic/dcpi1_bdiv_q.c: Likewise.
* tests/mpn/t-bdiv.c: Replace with unit testing code, based on t-div.c.
Increase COUNT to 500.
* tests/mpn/t-div.c: Avoid generating too small test operands.
Move SB suppression limit downwards. Increase COUNT to 200.
2009-12-31 Torbjorn Granlund <[email protected]>
* mpn/generic/tdiv_qr.c: Handle numerator/remainder overlap in MU case.