-
Notifications
You must be signed in to change notification settings - Fork 4
/
ChangeLog
20963 lines (14239 loc) · 686 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
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Copyright 2009-2015 William Hart
.
This file is part of the MPIR Library.
.
The MPIR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
.
The MPIR Library 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 Lesser General Public
License for more details.
.
You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
2017-03-01 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 3.0.0 released
2015-11-20 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.7.2 released
2015-11-13 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.7.1 released
2015-06-26 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.7.0 released
2012-10-05 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.6.0 released
2012-10-02 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.5.2 released
2012-03-11 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.5.1 released
2012-01-05 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.5.0 released
2011-06-14 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.4.0 released
2011-04-05 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.3.1 released
2011-03-04 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.3.0 released
2010-12-18 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.2.1 released
2010-12-02 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.2.0 released
2010-12-01 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.1.4 released
2010-06-25 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.1.1 released
2010-06-07 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.1.0 released
2010-04-01 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR version 2.0.0 released
2009-01-30 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 1.3.1 released.
2009-01-18 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 1.3.0 released.
2009-06-06 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 1.2.0 released.
2009-04-15 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 1.1.0 released.
2009-03-16 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 1.0.0 released.
2009-01-10 mpir-devel <http://groups.google.com/group/mpir-devel>
* MPIR Version 0.9.0 released.
2006-05-04 Torbjorn Granlund <tege@swox.com>
* Version 4.2.1 released.
2006-05-03 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/vmx/popcount.asm: Conditionally zero extend n.
2006-04-27 Torbjorn Granlund <tege@swox.com>
* mpz/divexact.c: Call mpz_tdiv_q for large operands.
* configure.in (powerpc-*-darwin): Remove -fast, it affects PIC.
2006-04-26 Torbjorn Granlund <tege@swox.com>
* config.guess: Try to recognize Ultrasparc T1 (as ultrasparct1).
* config.sub: Handle ultrasparct1.
2006-04-25 Torbjorn Granlund <tege@swox.com>
* mpn/sparc64/gmp-mparam.h: Retune, without separation of GNUC and
non-GNUC data.
2006-04-19 Torbjorn Granlund <tege@swox.com>
* configure.in: Support powerpc eABI.
* mpn/powerpc32/eabi.m4: New file.
* configure.in: Support powerpc *bsd.
* mpn/powerpc64/elf.m4: New name for mpn/powerpc64/linux64.m4.
* mpn/powerpc32/elf.m4: New name for mpn/powerpc32/linux.m4.
* mpn/powerpc64/linux64.m4 (ASM_END): Quote TOC_ENTRY.
2006-04-18 Torbjorn Granlund <tege@swox.com>
* configure.in (gmp_mpn_functions_optional): Add lshiftc.
(HAVE_NATIVE): Add lshiftc.
* tune/speed.h (SPEED_ROUTINE_MPN_ADDSUB_N_CALL): New macro.
* tune/common.c (speed_mpn_addsub_n): New function.
* tune/speed.c (routine): Add measuring of mpn_addsub_n.
* mpn/powerpc64/linux64.m4 (TOC_ENTRY): Define to empty.
* mpn/powerpc64/aix.m4 (TOC_ENTRY): Likewise.
* mpn/powerpc32/aix.m4 (TOC_ENTRY): Likewise.
* mpn/powerpc32/aix.m4 (EXTERN): New, copied form powerpc64/aix.m4.
* mpn/powerpc32/mode1o.asm: Use EXTERN.
* mpn/powerpc32/linux.m4 (EXTERN): Provide dummy definition.
* mpn/powerpc32/darwin.m4 (EXTERN): Likewise.
2006-04-13 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c (choice_array): Add mpn_addsub_n[c].
2006-04-12 Torbjorn Granlund <tege@swox.com>
* extract-dbl.c: Don't rely on undefined casts to mp_limb_signed_t.
* configure.in: Disable AC_C_RESTRICT for now.
* mpn/generic/diveby3.c: Don't use restict keyword for now.
2006-04-11 Torbjorn Granlund <tege@swox.com>
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* aclocal.m4: Regenerate with patched libtool.
* mpn/asm-defs.m4 (ASM_END): Provide (empty) default.
2006-04-08 Torbjorn Granlund <tege@swox.com>
* configure.in (gmp_mpn_functions_optional): Add addsub.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* gmpxx.h: Remove missed MPFR references.
* gmp-impl.h (TMP_*, WANT_TMP_DEBUG): Don't expect marker argument;
define TMP_SALLOC and TMP_BALLOC.
2006-04-05 Torbjorn Granlund <tege@swox.com>
* tal-notreent.c (__gmp_tmp_mark): Add "struct" tag for tmp_marker.
(__gmp_tmp_free): Likewise.
2006-03-26 Torbjorn Granlund <tege@swox.com>
* Version 4.2 released.
* mpn/powerpc64/aix.m4 (LEA): Renamed from LDSYM.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc64/linux64.m4: Likewise.
* mpn/powerpc64/vmx/popcount.asm: Use LEA, not LDSYM.
2006-03-23 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h: (class gmp_allocated_string): Prefix strlen with std::.
* gmpxx.h (__GMP_DEFINE_TERNARY_EXPR2): Remove for now.
(struct __gmp_ternary_addmul2): Likewise.
(struct __gmp_ternary_submul2): Likewise.
* gmpxx.h: #include <cstring>.
(struct __gmp_alloc_cstring): Prefix strlen with std::.
* mpn/x86/pentium/com_n.asm: Add TEXT and ALIGN.
* mpn/x86/pentium/copyi.asm: Likewise.
* mpn/x86/pentium/copyd.asm: Likewise.
2006-03-22 Torbjorn Granlund <tege@swox.com>
* gmp-h.in: Add a "using std::FILE" for C++.
(_GMP_H_HAVE_FILE): Check also _ISO_STDIO_ISO_H.
* gmpxx.h: Remove mpfr code.
* tests/cxx: Likewise.
* gmp-impl.h (FORCE_DOUBLE): Rename a tempvar to avoid a clash with
GNU/Linux public include file.
* configure.in (powerpc64, darwin): New optional, gcc_cflags_subtype.
Grab powerpc32/darwin.m4 for ABI=mode32.
* configure.in: Use host_cpu whenever just the cpu type is needed.
2006-03-08 Torbjorn Granlund <tege@swox.com>
* mpz/get_si.c: Fix a typo.
* tests/mpq/t-get_d.c (check_random): Improve random generation for
nails.
2006-02-28 Torbjorn Granlund <tege@swox.com>
* tests/mpq/t-get_d.c (check_random): New function.
(main): Call check_random.
* mpq/set_d.c: Make choices based on LIMBS_PER_DOUBLE, not
BITS_PER_MP_LIMB. Make it work for LIMBS_PER_DOUBLE == 4.
Use MPZ_REALLOC.
* mpz/set_d.c: Make it work for LIMBS_PER_DOUBLE == 4.
* extract-dbl.c: Make it work for LIMBS_PER_DOUBLE > 3.
2006-02-27 Torbjorn Granlund <tege@swox.com>
* mpz/cmp_d.c: Declare `i'.
* mpz/cmpabs_d.c: Likewise.
2006-02-23 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/vmx/copyd.asm: Set right VRSAVE bits.
* mpn/powerpc32/vmx/copyi.asm: Likewise.
2006-02-22 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/vmx/logops_n.asm: New file.
* mpn/powerpc32/diveby3.asm: Rewrite.
2006-02-21 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/vmx/copyi.asm: New file.
* mpn/powerpc32/vmx/copyd.asm: New file.
2006-02-17 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/nails/aors_n.asm (CYSH): Import proper setting from
deleted mpn_sub_n.
2006-02-16 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/addmul_1.asm: Correct slotting comments.
2006-02-15 Torbjorn Granlund <tege@swox.com>
* tests/devel/anymul_1.c: Copy error reporting code from addmul_N.c.
* tests/devel/addmul_N.c: New file.
* tests/devel/mul_N.c: New file.
* mpn/alpha/default.m4 (PROLOGUE_cpu): Align functions at 16-byte
boundary.
* mpn/alpha/ev6/nails/aors_n.asm: New file.
* mpn/alpha/ev6/nails/add_n.asm: Remove.
* mpn/alpha/ev6/nails/sub_n.asm: Remove.
* mpn/alpha/ev6/nails/addmul_1.asm: Rewrite.
* mpn/alpha/ev6/nails/submul_1.asm: Likewise.
* mpn/alpha/ev6/nails/mul_1.asm: Likewise.
* mpn/alpha/ev6/nails/addmul_2.asm: Use L() for labels.
* mpn/alpha/ev6/nails/addmul_3.asm: Use L() for labels.
* mpn/alpha/ev6/nails/addmul_4.asm: Use L() for labels.
2006-02-13 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/diveby3.asm: Trivially reorder loop insns to save
1 c/l.
2006-02-10 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/sqr_diagonal.asm: Software pipeline.
* mpn/powerpc64/vmx/popcount.asm: Add prefetching.
2006-02-04 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/vmx/popcount.asm: Remove mpn_hamdist partial code.
Move compare for huge n so that it is always executed.
2006-02-03 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/linux.m4 (LEA): Add support for PIC.
* configure.in (powerpc): New optional, gcc_cflags_subtype.
* mpn/powerpc64/linux64.m4 (PROLOGUE_cpu): Align function start to
16-multiple.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc64/copyi.asm: Align loop to 16-multiple.
* mpn/powerpc64/copyd.asm: Likewise
* configure.in (powerpc): Add vmx to relevant paths.
* mpn/powerpc64/linux64.m4 (DEF_OBJECT): Accept 2nd argument, for
alignment.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc32/linux.m4 (DEF_OBJECT, END_OBJECT): New macros,
inherited from powerpc64 versions.
* mpn/powerpc32/aix.m4: Likewise.
* mpn/powerpc32/darwin.m4: Likewise.
* mpn/powerpc64/vmx/popcount.asm: New file, for ppc32 and ppc64.
* mpn/powerpc32/vmx/popcount.asm: New file, grabbing above file.
2006-01-22 Torbjorn Granlund <tege@swox.com>
* configure.in: Generalize OS-dependent patterns for powerpcs.
2006-01-20 Torbjorn Granlund <tege@swox.com>
* config.guess: Recognize power4 and up under linux-gnu.
* config.sub: Generalize power recognition code.
* acinclude.m4 (POWERPC64_PATTERN): Add 64-bit powerpc processors.
* configure.in: Recognize powerpc procssors masquerading as power
procssors.
2006-01-17 Torbjorn Granlund <tege@swox.com>
* mpn/generic/diveby3.c: Use GMP standard parameter names. Nailify
alternative code. Use restrict for params.
* configure.in: Recognize andn_n as not needing nailification.
* tests/mpq/t-equal.c (check_various): Disable a test that gives common
factors for GMP_NUMB_BITS == 62.
2006-01-16 Torbjorn Granlund <tege@swox.com>
* mpn/generic/get_str.c (mpn_sb_get_str): Fix digit count computation,
was inaccurate for nails.
2006-01-15 Torbjorn Granlund <tege@swox.com>
* mpn/x86_64/mode1o.asm: Remove unneeded carry register zeroing.
2006-01-08 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/sqr_diagonal.asm: New file.
2006-01-06 Torbjorn Granlund <tege@swox.com>
* mpn/generic/mullow_n.c (MUL_BASECASE_ALLOC): New #define.
(mpn_mullow_n): Use it.
* mpn/powerpc64/aix.m4 (EXTERN): Define to import symbol.
(LDSYM): Remove [RW] attribute.
* mpn/powerpc64/linux64.m4 (EXTERN): Dummy definition.
* mpn/powerpc64/darwin.m4 (EXTERN): Likewise.
2006-01-05 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/linux64.m4: Move toc entry generation from direct at
DEF_OBJECT to delayed via LDSYM, define ASM_END to output it.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Define a dummy ASM_END.
2006-01-03 Torbjorn Granlund <tege@swox.com>
* configure.in: Update bugs reporting address.
2006-01-02 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/linux64.m4 (CALL): New macro.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise, also define macro "DARWIN".
2005-12-18 Torbjorn Granlund <tege@swox.com>
* mpf/ui_div.c: Implement workaround for GCC bug triggered on alpha.
* mpf/set_q.c: Likewise.
2005-12-16 Torbjorn Granlund <tege@swox.com>
* mpn/generic/tdiv_qr.c: Remove statement with no effect.
Rename dead variable to `dummy'.
2005-12-15 Torbjorn Granlund <tege@swox.com>
* demos/pexpr.c (setup_error_handler): Add a missing ";".
2005-11-27 Torbjorn Granlund <tege@swox.com>
* mpn/generic/mul.c: Crudely call mpn_mul_fft_full before checking
for unbalanced operands.
* mpn/generic/mul_fft.c: Remove many scalar divisions.
(mpn_mul_fft_lcm): Simplify.
(mpn_mul_fft_decompose): Rewrite to handle arbitrarily unbalanced
operands.
2005-11-22 Torbjorn Granlund <tege@swox.com>
* configure.in: Properly recognize all 32-bit Solaris releases.
2005-11-10 Torbjorn Granlund <tege@swox.com>
* mpn/generic/mul_fft.c: Inline mpn_fft_mul_2exp_modF,
mpn_fft_add_modF and mpn_fft_normalize.
2005-11-02 Torbjorn Granlund <tege@swox.com>
* tests/mpz/reuse.c: Increase operand size, decrease # of reps.
2005-10-31 Torbjorn Granlund <tege@swox.com>
* mpz/pprime_p.c (mpz_probab_prime_p): Considerably limit trial
dividing.
* mpz/perfpow.c (mpz_perfect_power_p): Use mpz_divisible_ui_p instead
of mpz_tdiv_ui.
* mpz/divegcd.c: Correct probability number for GCD == 1.
* mpn/x86: Add cycle counts for array of x86 processors.
* mpn/x86/k7/mod_34lsub1.asm: Remove spurious mentions of ebp.
* mpn/powerpc32: Add POWER5 timings.
* mpn/powerpc32/README: Describe global reference variations.
* mpn/generic/dive_1.c: Whitespace cleanup.
* mpn/alpha/ev6/nails/addmul_1.asm: Correct comments on slotting.
* mpn/alpha/ev6/nails/addmul_2.asm: Likewise.
* mpn/alpha/ev6/nails/addmul_4.asm: Likewise.
* mpf/out_str.c: List some allocation improvement ideas.
* doc/gmp.texi: Update many URLs and email addresses.
* gmp-h.in (_GMP_H_HAVE_FILE): Check also _STDIO_H_INCLUDED.
2005-10-26 Torbjorn Granlund <tege@swox.com>
* tune/tuneup.c (tune_mullow): Update param.max_size for each threshold
measurement.
* configure.in (POWERPC64_PATTERN/*-*-darwin*): Set
SPEED_CYCLECOUNTER_OBJ_mode64 and cyclecounter_size_mode64.
(POWERPC64_PATTERN/*-*-linux*): Likewise.
2005-10-03 Torbjorn Granlund <tege@swox.com>
* demos/factorize.c (factor_using_division_2kp): Honor verbose flag.
(factor_using_pollard_rho): Divide out new factor before it's
clobbered. Don't stop factoring after a composite factor was found.
2005-09-17 Torbjorn Granlund <tege@swox.com>
* demos/pexpr.c (fns): Add factorial keywords.
2005-08-16 Torbjorn Granlund <tege@swox.com>
* tune/Makefile.am (EXTRA_DIST): Change "amd64" => "x86_64".
* mpn/Makefile.am (TARG_DIST): Change "amd64" => "x86_64".
2005-08-15 Torbjorn Granlund <tege@swox.com>
* configure.in: Change "amd64" => "x86_64".
2005-06-13 Torbjorn Granlund <tege@swox.com>
* mpn/generic/pre_mod_1.c: Canonicalize variable names.
* mpn/generic/divrem.c: Rate qxn test as UNLIKELY.
* tune/tuneup.c (tune_mullow): Fix all max_size fields.
* gmp-impl.h (SQR_TOOM3_THRESHOLD_LIMIT): New #define.
* tune/tuneup.c (tune_sqr): Use SQR_TOOM3_THRESHOLD_LIMIT.
(sqr_toom3_threshold): Initialize from SQR_TOOM3_THRESHOLD_LIMIT.
* mpn/generic/mul_n.c (mpn_sqr_n): Use SQR_TOOM3_THRESHOLD_LIMIT.
* gmp-impl.h (mpn_nand_n, mpn_iorn_n, mpn_nior_n, mpn_xnor_n):
Handle nails.
2005-06-12 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/sub_n.asm: Analogous changes as to add_n.asm last.
2005-06-11 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/add_n.asm: Rewrite inner loop to load later.
Add mpn_add_nc entry.
* mpn/alpha/ev6/addmul_1.asm: Remove redundant initial loads.
2005-06-07 Torbjorn Granlund <tege@swox.com>
* mpn/generic/dive_1.c: Use variable h for upper umul_ppmm result.
2005-06-04 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c (choice_array): Exclude mpn_preinv_mod_1 unless
USE_PREINV_MOD_1.
(choice_array): Exclude mpn_sqr_basecase if SQR_KARATSUBA_THRESHOLD
is zero.
2005-06-03 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/addmul_1.asm: Prefix all labels with "$".
* mpn/alpha/ev6/mul_1.asm: Likewise.
2005-06-02 Torbjorn Granlund <tege@swox.com>
* tests/refmpn.c (refmpn_divmod_1c_workaround): Implement workaround
to gcc 3.4.x bug triggered on powerpc64 with 32-bit ABI.
2005-06-01 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c (main): Fix a typo.
2005-05-31 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/addmul_1.asm: Rewrite for L1 cache, add prefetch.
2005-05-30 Torbjorn Granlund <tege@swox.com>
* tests/misc.c (tests_rand_start): Mask random seed to 32 bits.
2005-05-29 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/mode32/mul_1.asm: Handle BROKEN_LONGLONG_PARAM.
* mpn/powerpc64/mode32/addmul_1.asm: Likewise.
* mpn/powerpc64/mode32/submul_1.asm: Likewise.
* mpn/powerpc32/mode1o.asm: Rewrite to actually work.
* mpn/powerpc32/aix.m4 (LEA): New macro.
(ASM_END): New macro.
* mpn/powerpc32/linux.m4: New file.
* mpn/powerpc32/darwin.m4: New file.
* configure.in: Use linux.m4 and darwin.m4.
(powerpc64-linux-gnu): Add support for mode32.
2005-05-25 Torbjorn Granlund <tege@swox.com>
* mpn/generic/mullow_n.c: Remove FIXME mentioning fixed flaw.
* tests/mpz/t-cmp_d.c (check_one): Fix printf fmt string typo.
* demos/isprime.c: #include stdlib.h.
* tests/rand/t-urbui.c: Likewise.
* tests/rand/t-urmui.c: Likewise.
* tests/mpz/t-popcount.c (check_random): Remove spurious printf arg.
2005-05-24 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c (param_init) [TYPE_GET_STR]: Set retval field.
(compare): Handle SIZE_GET_STR as SIZE_RETVAL.
* tests/refmpn.c (refmpn_get_str): Rewrite to make it work.
2005-05-23 Torbjorn Granlund <tege@swox.com>
* longlong.h (many places): Remove lvalue casts.
* gmp-impl.h (MPF_SIGNIFICANT_DIGITS): Cast prec to avoid overflow
for > 4G digits.
* mpn/alpha/ev6/add_n.asm: Prefetch using ldl.
* mpn/alpha/ev6/sub_n.asm: Likewise.
* mpn/alpha/ev6/slot.pl (optable): Recognize negq and ldl.
2005-05-22 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev67/popcount.asm: Prefetch.
* mpn/alpha/ev67/hamdist.asm: Prefetch.
* longlong.h (add_ssaaaa) [x86]: Remove lvalue casts.
(sub_ddmmss) [x86]: Likewise.
* tests/devel/try.c (param_init) [TYPE_MPZ_JACOBI]: Add DATA_SRC1_ODD.
(param_init) [TYPE_MPZ_KRONECKER]: Clear inherited DATA_SRC1_ODD.
(param_init) [TYPE_DIVEXACT_1]: Use symbolic name DIVISOR_LIMB.
2005-05-21 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c (param_init) [TYPE_MPZ_JACOBI]: Initialize divisor
field according to UDIV_NEEDS_NORMALIZATION.
* mpz/mul_i.h: Remove left-over TMP_XXXX marker arguments.
2005-05-20 Torbjorn Granlund <tege@swox.com>
* mpn/x86/pentium4/sse2/addmul_1.asm (mpn_addmul_1c): Put carry in
proper register.
* mpn/generic/sqr_basecase.c (mpn_sqr_basecase, addmul_2 version):
Avoid accesses out-of-bound in MPN_SQR_DIAGONAL applicate code.
2005-05-19 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/diveby3.asm: Make it actually work.
* gmp-impl.h (MULLOW_BASECASE_THRESHOLD_LIMIT): New #define.
* mpn/generic/mullow_n.c: Use fixed stack allocation for the smallest
operands; use TMP_S* allocation for medium operands.
* gmp-impl.h: Remove nested TUNE_PROGRAM_BUILD test.
2005-05-18 Torbjorn Granlund <tege@swox.com>
* mpn/generic/mul_n.c: Make squaring and multiplication code more
similar. Use TMP_S* functions.
* gmp-impl.h (TMP_DECL, TMP_MARK, TMP_FREE): Get rid of argument.
(TMP_SALLOC): New macro for "small" allocations.
(TMP_BALLOC): New macro for "big" allocations.
(TMP_SDECL, TMP_SMARK, TMP_SFREE): New macros for functions that use
just TMP_SALLOC.
(WANT_TMP_ALLOCA): Make default functions choose alloca or reentrant
functions, depending on size.
* *.c: Remove TMP_XXXX marker arguments.
* acinclude.m4 (WANT_TMP): Want tal-reent.lo also for alloca case.
2005-05-15 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h (udiv_qrnnd_preinv2): Pull an add into add_ssaaaa.
(udiv_qrnnd_preinv2gen): Likewise.
2005-05-14 Torbjorn Granlund <tege@swox.com>
* longlong.h (add_ssaaaa) [x86_64]: Restrict allowed immediate
operands.
* (sub_ddmmss) [x86_64]: Likewise.
2005-05-02 Torbjorn Granlund <tege@swox.com>
* acinclude.m4 (GMP_HPC_HPPA_2_0): Make gmp_tmp_v1 sed pattern handle
version numbers like B.11.X.32509-32512.GP.
* mpn/m68k/aors_n.asm: Correct MULFUNC_PROLOGUE.
* mpf/inp_str.c: Use plain int for mpf_set_str return value (works
around gcc 4 bug).
* acinclude.m4 (GMP_ASM_POWERPC_PIC_ALWAYS): Handle darwin's assembly
syntax.
(long long reliability test 1): New GMP_PROG_CC_WORKS_PART test.
(long long reliability test 2): New GMP_PROG_CC_WORKS_PART test.
* configure.in: Add mode64 support for darwin. Use darwin.m4.
Add cflags_opt flags for mode32 darwin.
* mpn/asm-defs.m4 (PIC_ALWAYS): Define PIC just iff PIC_ALWAYS = "yes".
* mpn/powerpc64/darwin.m4: New file.
* mpn/powerpc64/linux64.m4: Remove TOCREF, add LDSYM.
Rework DEF_OBJECT to need just one argument.
* mpn/powerpc64/aix.m4: Likewise.
2005-05-01 Torbjorn Granlund <tege@swox.com>
* mpn/generic/popham.c: Compute final summation differently for 64-bit.
* tests/mpz/t-popcount.c (check_random): New function.
(main): Call it.
2005-04-09 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/copyi.asm: If HAVE_ABI_mode32, ignore upper 32 bits of
mp_size_t argument.
* mpn/powerpc64/copyd.asm: Likewise.
* mpn/powerpc64/sqr_diagonal.asm: Likewise.
* mpn/powerpc64/lshift.asm: Likewise.
* mpn/powerpc64/rshift.asm: Likewise.
2005-04-08 Torbjorn Granlund <tege@swox.com>
* mpn/generic/rootrem.c: Allocate PP_ALLOC limbs also for qp.
2005-04-07 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/add_n.asm: Add nc entry point.
* mpn/powerpc32/sub_n.asm: Likewise.
* mpn/alpha/add_n.asm: Add correct cycle/limb numbers.
* mpn/alpha/sub_n.asm: Likewise.
* mpn/alpha/ev5/add_n.asm: Likewise.
* mpn/alpha/ev5/sub_n.asm: Likewise.
2005-03-31 Torbjorn Granlund <tege@swox.com>
* mpn/x86/k7/gmp-mparam.h: Fix typo in last change.
2005-03-19 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/gmp-mparam.h: Update.
* mpn/alpha/ev5/gmp-mparam.h: Update.
* mpn/alpha/ev6/gmp-mparam.h: Update.
* mpn/x86/p6/mmx/gmp-mparam.h: Update.
* mpn/x86/pentium4/sse2/gmp-mparam.h: Update.
* mpn/x86/k7/gmp-mparam.h: Update.
* tests/mpz/t-gcd.c (main): Honor command line reps argument.
* tune/speed.h (SPEED_ROUTINE_MPN_GCD_CALL): Simplify and correct code
for generating test operands.
2005-01-13 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h (MPN_SIZEINBASE): Count bits in type size_t.
(MPN_SIZEINBASE_16): Likewise.
2004-12-17 Torbjorn Granlund <tege@swox.com>
* tune/speed.c (run_gnuplot): Use lines, not linespoints.
Output a reset gnuplot command initially.
2004-12-04 Torbjorn Granlund <tege@swox.com>
* mpn/generic/random2.c (gmp_rrandomb): Rework again.
* mpz/rrandomb.c (gmp_rrandomb): Likewise.
2004-11-24 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/diveby3.asm: Use correct prefetch instruction.
2004-11-19 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/diveby3.asm: Add ",gp" glue in PROLOGUE.
Add r31 dummy operand to `br' instruction.
2004-11-17 Torbjorn Granlund <tege@swox.com>
* configure.in: Invoke AC_C_RESTRICT.
2004-11-16 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/diveby3.asm: New file.
2004-11-10 Torbjorn Granlund <tege@swox.com>
* mpn/generic/popham.c: Add comment.
2004-11-05 Torbjorn Granlund <tege@swox.com>
* config.guess: Strip any PPC string in /proc/cpuinfo.
Recognize 970 in that code.
2004-10-25 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/README: Update POWER5/PPC970 pipeline information.
* mpn/generic/mul_basecase.c (MAX_LEFT): Add comment.
* doc/gmp.texi: Consistently use "x86" denotation.
(Assembler SIMD Instructions): Mention SSE2 usage.
* demos/pexpr.c (main): Handle "negative" base in mpz_sizeinbase call.
2004-10-16 Torbjorn Granlund <tege@swox.com>
* configure.in: Support icc under x86.
(ia64-*-linux*): Pass -no-gcc to icc.
2004-10-15 Torbjorn Granlund <tege@swox.com>
* longlong.h (ia64 umul_ppmm): Add version for icc.
* configure.in: Support icc under ia64-*-linux*.
* acinclude.m4: New "compiler works" test for icc 8.1 bug.
(GMP_PROG_CC_IS_GNU): Don't let Intel's icc fool us it is GCC.
2004-10-14 Torbjorn Granlund <tege@swox.com>
* acinclude.m4 (GMP_ASM_W32): Try also "data4".
* longlong.h: Exclude masquerading __INTEL_COMPILER from ia64 asm.
* gmp-impl.h: Likewise.
2004-10-12 Torbjorn Granlund <tege@swox.com>
* tests/devel/try.c: Handle mpn_mul_2 like mpn_addmul_2.
* tune/speed.c (routine): Make R parameter optional for mpn_mul_2.
2004-10-11 Torbjorn Granlund <tege@swox.com>
* mpn/sparc64/addmul_1.asm: Update a comment.
* tests/devel/aors_n.c: #include tests.h.
* tests/devel/anymul_1.c: Likewise.
* tests/devel/shift.c: Likewise.
* tests/devel/copy.c: Likewise.
* tests/devel/aors_n.c: Handle also mpn_addlsh1_n, mpn_sublsh1_n,
mpn_rsh1add_n, and mpn_rsh1sub_n.
* tests/devel/Makefile.am (EXTRA_PROGRAMS): Updates for yesterday's
file removals and additions.
2004-10-10 Torbjorn Granlund <tege@swox.com>
* tests/devel/copy.c: Handle both MPN_COPY_INCR and MPN_COPY_DECR.
* tests/devel/logops_n.c: New file, handle all logical operations.
* tests/devel/anymul_1.c: New file, handle mpn_mul_1, mpn_addmul_1, and
mpn_submul_1
* tests/devel/mul_1.c: Remove.
* tests/devel/addmul_1.c: Remove.
* tests/devel/submul_1.c: Remove.
* tests/devel/shift.c: New file, handle mpn_lshift and mpn_rshift.
* tests/devel/lshift.c: Remove.
* tests/devel/rshift.c: Remove.
* tests/devel/aors_n.c: New file, handle mpn_add_n and mpn_sub_n.
* tests/devel/add_n.c: Remove.
* tests/devel/sub_n.c: Remove.
2004-10-09 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/linux64.m4: Define DEF_OBJECT, END_OBJECT, and TOCREF.
* mpn/powerpc64/aix.m4: Likewise.
2004-10-08 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc64/copyi.asm: New file.
* mpn/powerpc64/copyd.asm: New file.
* gmp-h.in: Remove PPC MPN_COPY variants.
* gmp-impl.h: Likewise.
2004-10-07 Torbjorn Granlund <tege@swox.com>
* configfsf.guess: Patch HP-UX code to accomodate HP compiler's new
inability to read from stdin.
* mpn/powerpc64/mode64/addsub_n.asm: Remove accidentally added file.
2004-09-29 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h (x86 ULONG_PARITY): Work around GCC change of "q" register
flag.
2004-09-28 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpn/generic/mul_fft.c (mpn_mul_fft): Fix a bug in the choice of the
recursive fft parameters.
2004-09-20 Torbjorn Granlund <tege@swox.com>
* tests/misc.c (tests_rand_start): Default to strtoul for re-seeding.
* tests/mpz/t-mul.c (ref_mpn_mul): Fudge tmp allocation for toom3.
2004-09-19 Torbjorn Granlund <tege@swox.com>
* tests/misc.c (tests_rand_start): Shift tv_usec for better seeding.
2004-09-18 Torbjorn Granlund <tege@swox.com>
* tests/misc.c (tests_rand_start): Invoke fflush after printing seed.
* tests/mpz/t-mul.c (main): Check environment for GMP_CHECK_FFT, run
extra FFT tests if set.
(ref_mpn_mul): Use library code for kara and toom, but skewded so that
we never use the same algorithm that we're testing.
(mul_kara): Delete.
(debug_mp): Print just one line of large numbers.
(ref_mpn_mul): Rework usage of tp temporary space.
2004-09-11 Torbjorn Granlund <tege@swox.com>
* mpn/generic/sqr_basecase.c: In variant for HAVE_NATIVE_mpn_addmul_2,
accumulate carry also for when HAVE_NATIVE_mpn_addlsh1_n.
2004-08-29 Torbjorn Granlund <tege@swox.com>
* tests/mpz/t-sizeinbase.c: Disable mpz_fake_bits and check_sample.
2004-06-17 Kevin Ryde <kevin@swox.se>
* doc/gmp.texi: Use @. when sentence ends with a capital, for good
spacing in tex.
(Language Bindings): Add gmp-d, reported by Ben Hinkle. Update SWI
Prolog URL, reported by Jan Wielemaker.
2004-06-09 Torbjorn Granlund <tege@swox.com>
* configure.in: Handle --enable-fat. Use that to enable x86 fat
builds, remove magic meaning of i386-*-*.
2004-06-03 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (memset): Use a local char* pointer, in case parameter is
something else (eg. tune/common.c). Reported by Emmanuel Thomé.
2004-06-01 Kevin Ryde <kevin@swox.se>
* config.guess (i?86-*-*): Avoid "Illegal instruction" message which
goes to stdout on 80386 freebsd4.9.
2004-05-23 Torbjorn Granlund <tege@swox.com>
* mpn/generic/gcdext.c (gcdext_1_odd): Use masking to avoid jumps.
2004-05-22 Torbjorn Granlund <tege@swox.com>
* mpn/x86/pentium4/sse2/addmul_1.asm: Add Prescott cycle numbers.
* mpn/powerpc32/lshift.asm: Add more cycle numbers.
* mpn/powerpc32/rshift.asm: Likewise.
2004-05-21 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h (mpn_mullow_n, mpn_mullow_basecase): Declare.
* tune/Makefile.am: Compile gcdext.c.
* gmp-impl.h (GET_STR_THRESHOLD_LIMIT): Lower outrageous value to 150.
2004-05-21 Niels Möller <nisse@lysator.liu.se>
* tune/speed.h (SPEED_ROUTINE_MPN_GCD_CALL): Ensure first operand is
not smaller than 2nd operand.
2004-05-17 Kevin Ryde <kevin@swox.se>
* gmp-h.in (mpz_get_ui): Use #if instead of plain if, and for nails
use ?: same as normal case, to avoid warnings from Borland C++ 6.0.
Reported by delta trinity.
2004-05-15 Kevin Ryde <kevin@swox.se>
* tune/time.c (getrusage_backwards_p): New function
(speed_time_init): Use it to exclude broken netbsd1.4.1 getrusage.
* configure.in (m68*-*-netbsd1.4*): Remove code pretending getrusage
doesn't exist.
* tune/README (NetBSD 1.4.1 m68k): Update notes.
* configure.in (mips*-*-* ABI=n32): Remove gcc_n32_ldflags and