-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
15165 lines (10375 loc) · 492 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
Free Software Foundation, Inc.
.
This file is part of the GNU MP Library.
.
The GNU MP 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 2.1 of the License, or (at your
option) any later version.
.
The GNU MP 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., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
2002-05-23 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/nails/gmp-mparam.h: New file.
* tests/devel/add_n.c (refmpn_add_n): Nailify.
* tests/devel/sub_n.c (refmpn_sub_n): Nailify.
* tests/devel/addmul_1.c (refmpn_addmul_1): Nailify.
* tests/devel/submul_1.c (refmpn_submul_1): Nailify.
* mpn/alpha/ev6/nails/add_n.asm: New file.
* mpn/alpha/ev6/nails/sub_n.asm: New file.
* mpn/alpha/ev6/nails/mul_1.asm: New file.
* mpn/alpha/ev6/nails/submul_1.asm: New file.
2002-05-22 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/nails/addmul_1.asm: New file.
* mpz/inp_str.c (mpz_inp_str_nowhite): Nailify.
* mpn/generic/mul_basecase.c: Update pointers before conditional
MAX_LEFT break statements.
2002-05-21 Torbjorn Granlund <tege@swox.com>
* tests/mpz/t-gcd.c: Test mpz_gcd_ui.
* mpz/lcm_ui.c: Nailify.
* mpz/gcd_ui.c: Nailify. Make it work as documented, allowing
NULL to be passed for result parameter. Fix gcd(0,0) case.
* mpz/set_str.c: Nailify.
* randlc2x.c (gmp_randinit_lc_2exp): Nailify.
From Jakub Jelinek:
* longlong.h (add_ssaaaa,sub_ddmmss) [64-bit sparc]:
Make it actually work.
2002-05-18 Torbjorn Granlund <tege@swox.com>
* mpf/ui_div.c: Shut up compiler warning.
* mpn/generic/mul_basecase.c: Use mpn_addmul_2, mpn_addmul_3, and
mpn_addmul_4, as available.
* mpn/alpha/ev6/nails/addmul_2.asm: Adjust NAILS_SUPPORT decls.
* mpn/alpha/ev6/nails/addmul_3.asm: Likewise
* mpn/alpha/ev6/nails/addmul_4.asm: Likewise.
* configure.in (*-cray-unicos*): Back again to -hscalar0.
(gmp_mpn_functions_optional): Add mul_3, mul_4, addmul_2, addmul_3,
and addmul_4.
* acconfig.h: Add #undefs for new optional mpn functions.
2002-05-18 Kevin Ryde <kevin@swox.se>
* gmp.texi (Integer Import and Export): Mention Cray unfilled words.
* mpz/set_d.c, mpq/set_d.c: Use LIMBS_PER_DOUBLE for the output of
__gmp_extract_double. Reported by Henrik Johansson.
2002-05-17 Torbjorn Granlund <tege@swox.com>
* mpn/alpha/ev6/nails/addmul_2.asm: New file.
* mpn/alpha/ev6/nails/addmul_3.asm: New file.
* mpn/alpha/ev6/nails/addmul_4.asm: New file.
* mpn/generic/dump.c: Rewrite and nailify.
2002-05-16 Kevin Ryde <kevin@swox.se>
* mpfr/Makefile.am (EXTRA_DIST): Add BUGS file.
2002-05-15 Torbjorn Granlund <tege@swox.com>
* configure.in (*-cray-unicos*): Remove -hscalar0, add -hnofastmd
as workaround for compiler bug.
(mips64*-*-*): Pass just -O1 to cc, to work around compiler bug.
2002-05-14 Torbjorn Granlund <tege@swox.com>
* configure.in (*-cray-unicos*): Pass -hscalar0 to work around
compiler bug for mpz/import.c.
2002-05-11 Torbjorn Granlund <tege@swox.com>
* mpz/import.c: Cast pointer via `unsigned long' when checking
alignment to avoid compiler warnings.
* mpn/generic/rootrem.c: Adjust allocation of qp temporary area.
2002-05-09 Kevin Ryde <kevin@swox.se>
* mpz/import.c: Corrections to size store, special case tests, and
general case ACCUMULATE.
* tests/mpz/t-import.c, tests/mpz/t-export.c: More test data.
2002-05-09 Torbjorn Granlund <tege@swox.com>
* mpn/generic/rootrem.c: Use temp space for root, copy value in place
before returning.
* mpz/root.c: Don't allocate extra limb for root value.
* mpz/perfpow.c: Undo last change.
2002-05-08 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h (powerpc BSWAP_LIMB_FETCH): Rename local variable to make
it not clash with caller.
* mpn/generic/rootrem.c: New file.
* configure.in (gmp_mpn_functions): Add rootrem and pow_1.
* mpn/Makefile.am (nodist_libdummy_la_SOURCES): Add rootrem.c and
pow_1.c
* gmp-impl.h (mpn_rootrem): Add declaration.
* mpz/perfpow.c: Amend allocations for mpn_rootrem requirements.
* mpz/root.c: Rewrite to use mpn_rootrem.
2002-05-08 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (MUL_KARATSUBA_THRESHOLD etc): Remove forced nail values.
* mpf/fits_u.h, mpf/fits_s.h, tests/mpf/t-fits.c: Ignore fraction
part, making the code match the documentation.
* gmpxx.h (struct __gmp_binary_minus): Use mpz_ui_sub.
2002-05-07 Kevin Ryde <kevin@swox.se>
* mpn/powerpc32/README: New file.
* mpz/root.c: Use unsigned long with mpz_sub_ui not mp_limb_t.
* tune/README: Misc updates including sparc32/v9 smoothness, low res
timebase, and mpn_add_n operand overlaps.
* tune/many.pl: Add udiv.asm support.
* gmp.texi (Build Options): A couple of --build better as --host.
(Known Build Problems, Notes for Package Builds): Add DESTDIR problem.
(Compatibility with older versions): Compatible with 4.x versions.
(Converting Integers): Remove mpz_get_ui + mpz_tdiv_q_2exp decompose.
(Integer Import and Export): New section.
(Miscellaneous Integer Functions): Clarify mpz_sizeinbase returns 1
for operand of 0.
(Language Bindings): Add GNU Pascal.
(Low-level Functions): Add GMP_NUMB_MAX.
* tests/mpz/t-import.c, tests/mpz/t-export.c, tests/mpz/t-get_d.c:
New tests.
* tests/mpz/Makefile.am: Add them.
* mpz/import.c, mpz/export.c: New files.
* Makefile.am, mpz/Makefile.am, gmp-h.in: Add them.
* gmp-h.in, gmp-impl.h (GMP_NUMB_MAX): Move to gmp.h.
* gmp-impl.h (CNST_LIMB): Add cast to mp_limb_t to ensure unsigned.
(CRAY_Pragma, MPN_REVERSE, MPN_BSWAP, MPN_BSWAP_REVERSE,
ASSERT_ALWAYS_LIMB, ASSERT_ALWAYS_MPN): New macros.
(MPZ_CHECK_FORMAT): Use ASSERT_ALWAYS_MPN.
2002-05-07 Torbjorn Granlund <tege@swox.com>
* mpz/aors_ui.h: Nailify.
* tests/mpz/t-addsub.c: New file.
* tests/mpz/Makefile.am (check_PROGRAMS): Add t-addsub.
* mpz/ui_sub.c: New file.
* mpz/Makefile.am (libmpz_la_SOURCES): Add ui_sub.c.
* Makefile.am (MPZ_OBJECTS): Ditto.
* gmp-h.in (mpz_ui_sub): Add declaration.
* gmp-impl.h (MPZ_REALLOC): Rewrite to allow the use of _mpz_realloc
return value.
* gmp-h.in (mpn_pow_1): Add declaration.
* mpn/generic/pow_1.c: Handle exp <= 1. Reverse rp/tp parity scheme
for bn == 1 arm.
* Rename MP_LIMB_T_HIGHBIT => GMP_LIMB_HIGHBIT.
2002-05-06 Torbjorn Granlund <tege@swox.com>
* demos/pexpr.c (main): Don't call mpz_sizeinbase with negative base.
* randraw.c (lc): Remove an unused variable.
* mpn/generic/get_str.c: Clarify an algorithm description.
* tests/mpf/t-trunc.c: Nailify.
* tests/mpf/t-set_si.c: Disable for nails.
* mpf/cmp_si.c: Nailify.
* mpf/cmp_ui.c: Nailify.
* mpf/div.c: Nailify.
* mpf/div_2exp.c: Nailify.
* mpf/div_ui.c: Nailify.
* mpf/eq.c: Nailify.
* mpf/get_d.c: Nailify.
* mpf/get_d_2exp.c: Nailify.
* mpf/get_si.c: Nailify.
* mpf/get_str.c: Nailify.
* mpf/get_ui.c: Nailify.
* mpf/mul_2exp.c: Nailify.
* mpf/random2.c: Nailify.
* mpf/set_q.c: Nailify.
* mpf/set_si.c: Nailify.
* mpf/set_str.c: Nailify.
* mpf/set_ui.c: Nailify.
* mpf/sub.c: Nailify.
* mpf/ui_div.c: Nailify.
* mpf/ui_sub.c: Nailify.
* mpf/urandomb.c: Nailify.
* gmp-impl.h (__GMPF_BITS_TO_PREC, __GMPF_PREC_TO_BITS): Nailify.
* mpz/get_si.c: Misc variable name changes.
* mpf/fits_u.h: Rewrite - nailify.
* mpf/fits_s.h: Likewise.
* mpz/mod.c: Disambiguate if-statament with extra {}.
* mpf/int_p.c: Fix type of size variables.
* mpf/get_ui: Likewise.
* mpf/get_si: Likewise.
* mpq/equal.c: Likewise.
* mpq/get_d.c: Likewise.
* mpz/cmp_d.c: Likewise.
* mpz/cmpabs_d.c: Likewise.
* mpz/divis_2exp.c: Likewise.
* mpz/kronuz.c: Likewise.
* mpz/kronzu.c: Likewise.
* mpz/kronzs.c: Likewise.
* mpz/kronsz.c: Likewise.
* mpz/scan0.c: Likewise.
* mpz/scan1.c: Likewise.
* mpz/tstbit.c: Likewise.
* mpz/cong_2exp.c: Likewise.
* mpz/divis.c: Likewise.
2002-05-04 Torbjorn Granlund <tege@swox.com>
* mpn/generic/gcd.c: Additional nailify changes.
2002-05-04 Kevin Ryde <kevin@swox.se>
* gmp-h.in (__GNU_MP_VERSION): Set to 4.1.
* Makefile.am (-version-info): Bump for new release.
2002-04-30 Torbjorn Granlund <tege@swox.com>
* mpn/generic/divrem_1.c: Additional nailify changes.
* mpn/generic/mod_1.c: Likewise.
* tests/mpq/t-get_d.c: Print floats with all 16 digits.
* mpq/get_d.c: Nailify.
* tests/mpq/t-set_f.c: Disable for nails.
* mpz/get_d.c: Nailify.
* gmp-impl.h (LIMBS_PER_DOUBLE, MP_BASE_AS_DOUBLE): Nailify.
* gmp-h.in (__GMPZ_FITS_UTYPE_P): Cast maxval to before shifting it.
* extract-dbl.c: Nailify.
2002-04-29 Torbjorn Granlund <tege@swox.com>
* mpq/md_2exp.c (mord_2exp): Nailify.
* mpq/cmp_ui.c: Nailify.
* mpq/cmp.c (mpq_cmp): Nailify.
* mpn/generic/gcd.c: Nailify. GNUify code layout.
* mpn/generic/gcdext.c: Nailify. Misc changes.
* tests/mpz/t-sqrtrem.c: Let argv[1] mean # of repetitions.
* tests/mpz/t-gcd.c: Likewise.
* mpz/gcd.c: Nailify.
* mpn/generic/random.c: Nailify.
* gmp-impl.h (modlimb_invert): Nailify.
2002-04-27 Torbjorn Granlund <tege@swox.com>
* mpn/generic/gcdext.c (div2): Remove qh parameter.
(mpn_gcdext): Streamline double-limb code.
Move GCDEXT_THRESHOLD check to after initial division.
2002-04-27 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (JACOBI_MOD_OR_MODEXACT_1_ODD): Allow for odd
GMP_NUMB_BITS.
* tune/time.c (sgi_works_p): Allow for 64-bit counter, and fix
SGI_CYCLECNTR_SIZE handling.
* demos/expr/exprfr.c: Add nan and inf constants.
* demos/expr/t-expr.c: Exercise them.
2002-04-26 Torbjorn Granlund <tege@swox.com>
* mpz/cmp_ui.c: Fix overflow conditions for nails.
* gmp-h.in (mpz_get_ui): Fix typo from last change.
* mpz/n_pow_ui.c: Adjust allocation for nails.
(GMP_NUMB_HALFMAX): Renamed from MP_LIMB_T_HALFMAX.
Fix umul_ppmm invocation for for nails.
2002-04-24 Torbjorn Granlund <tege@swox.com>
* mpn/generic/gcdext.c: Simplify by using mpn_tdiv_qr instead of
mpn_divmod.
2002-04-24 Kevin Ryde <kevin@swox.se>
* configure.in (*-*-cygwin*): Give a sensible default command line
limit, to avoid blowups reported by Jim Fougeron on windows 9x.
(--enable-nails): Make the default 2, since mp_bases has data for that.
* mpfr/mpfr-math.h (__mpfr_nan): Use a "double" for the bytes, to
avoid a mis-conversion on alpha gcc 3.0.2.
(_MPFR_INFP_BYTES, _MPFR_INFM_BYTES): Should be a zero mantissa.
2002-04-23 Torbjorn Granlund <tege@swox.com>
* mpz/dive_ui.c: Fix typo.
* mpz/fits_s.h: Rewrite.
* mpz/jacobi.c: Nailify.
* mpz/kronuz.c: Additional nailify changes.
* mpz/kronsz.c: Likewise.
2002-04-23 Kevin Ryde <kevin@swox.se>
* demos/expr/Makefile.am (LDADD): Add $(LIBM) for the benefit of mpfr.
* mpz/divis_ui.c, mpz/cong_ui.c: Nailify.
* mpn/generic/bdivmod.c, mpz/divexact.c, mpz/dive_ui.c: Nailify.
* mpn/generic/sb_divrem_mn.c, mpn/generic/divrem.c,
mpn/generic/divrem_2.c: Nailify ASSERTs.
* mpn/x86/k6/mmx/logops_n.asm, mpn/x86/k6/mmx/com_n.asm: Nailify.
* mpz/inp_raw.c, mpz/out_raw.c: Nailify.
* mpz/kronzu.c, mpz/kronuz.c, mpz/kronzs.c, mpz/kronsz.c: Nailify.
* mpn/generic/divis.c, mpz/cong.c, mpz/cong_2exp.c: Nailify.
* gmp-impl.h (NEG_MOD): Nailify.
* gmp-impl.h, mpn/mp_bases.c: Add back GMP_NUMB_BITS==30 bases data.
* mpfr/get_d.c: Patch from Paul to avoid problem with constant folding
in gcc on OSF.
* mpn/lisp/gmpasm-mode.el: Remove mention of defunct LF macro.
2002-04-22 Torbjorn Granlund <tege@swox.com>
* demos/pexpr.c: Handle "binomial" operator.
* mpz/cmp_ui.c: Move assignments of `up' out of conditionals.
* mpn/generic/gcdext.c: Fix fencepost error in STAT code.
* gmp-impl.h (mpn_com_n): Nailify.
* tests/mpz/t-cdiv_ui.c: New file.
* tests/mpz/Makefile.am (check_PROGRAMS): Add t-cdiv_ui.
* mpz/cdiv_qr_ui.c: Nailify.
* mpz/cdiv_q_ui.c: Nailify.
* mpz/cdiv_r_ui.c: Nailify.
* mpz/cdiv_ui.c: Nailify.
* tests/misc/t-printf.c (CHECK_N): Add cast to allow `char' to be an
unsigned type.
* tests/misc/t-scanf.c: Likewise.
* mpz/mul_i.h: Rework nails code to handle parameter overlap.
* tests/mpz/t-set_f.c: Disable for nails.
2002-04-21 Torbjorn Granlund <tege@swox.com>
* mpz/set_si.c: Add cast to support LONG_LONG_LIMB.
* mpz/iset_si.c: Likewise.
* mpz/bin_ui.c: Nailify.
* mpz/bin_uiui.c: Nailify.
* mpz/cmpabs_ui.c: Nailify.
* tests/mpz/t-aorsmul.c: Nailify.
* mpz/aorsmul_i.c (mpz_addmul_ui, mpz_submul_ui): Nailify better.
2002-04-20 Torbjorn Granlund <tege@swox.com>
* tests/mpz/t-fdiv_ui.c: Check mpz_fdiv_ui.
* tests/mpz/t-tdiv_ui.c: Check mpz_tdiv_ui.
* mpz/tdiv_ui.c: Rewrite nails code.
* mpz/fdiv_ui.c: Nailify.
* tests/mpz/t-tdiv_ui.c: Check returned remainders.
* tests/mpz/t-fdiv_ui.c: Merge in recent t-tdiv_ui changes.
* mpz/tdiv_q_ui.c: Remove spurious TMP_* calls.
* mpz/fdiv_qr_ui.c: Nailify.
* mpz/fdiv_q_ui.c: Nailify.
* mpz/fdiv_r_ui.c: Nailify.
* mpz/get_si.c: Misc nailify changes to shut up compiler warnings.
* mpz/ui_pow_ui.c: Fix typo in last change.
2002-04-20 Kevin Ryde <kevin@swox.se>
* tests/misc/t-printf.c, tests/misc/t-scanf.c: Check all %n types.
* mpn/x86/k7/mmx/divrem_1.asm, mpn/x86/p6/mmx/divrem_1.asm
(mpn_preinv_divrem_1): New entrypoint.
(mpn_divrem_1): Avoid a branch when testing high<divisor.
* mpn/asm-defs.m4: Add define_mpn(preinv_divrem_1).
* configure.in: Allow divrem_1.asm to provide mpn_preinv_divrem_1.
* gmp-impl.h [nails]: Add #undefs of MUL_KARATSUBA_THRESHOLD etc, to
override CPU gmp-mparam.h. Remove JACOBI_BASE_METHOD override since
it's nails-neutral.
* tests/mpn/t-mp_bases.c: New file.
* tests/mpn/Makefile.am (check_PROGRAMS): Add it.
* tests/t-constants.c: Move MP_BASES constants checks to it.
* mpn/mp_bases.c: Fix big_base_inverted values for nails.
* gmp-impl.h (MP_BASES_BIG_BASE_INVERTED_10,
MP_BASES_NORMALIZATION_STEPS_10): Fix nails values.
(MP_BASES_*): Remove GMP_NUMB_BITS == 30 data.
* mpn/x86/pentium/com_n.asm, mpn/x86/pentium/logops_n.asm: Add
NAILS_SUPPORT indicators.
* configure.in: Grep for NAILS_SUPPORT in cpu-specific code, and look
in "nails" subdirectories, print path used.
* mpn/asm-defs.m4 (NAILS_SUPPORT): New macro.
* mpfr/mpfr-test.h: Include config.h, for the benefit of test programs
not using gmp-impl.h.
2002-04-19 Torbjorn Granlund <tege@swox.com>
* tests/mpz/t-scan.c: Nailify.
* mpz/tdiv_qr_ui.c: Nailify.
* mpz/tdiv_q_ui.c: Nailify.
* mpz/tdiv_r_ui.c: Nailify.
* mpz/tdiv_ui.c: Nailify.
* mpz/cmp_ui.c: Nailify.
* mpz/ui_pow_ui.c: Misc nailify changes to shut up compiler warnings.
* mpz/scan0.c: Nailify.
* mpz/scan1.c: Nailify.
* tests/mpz/t-sizeinbase.c (mpz_fake_bits): Nailify.
2002-04-18 Torbjorn Granlund <tege@swox.com>
* mpz/aorsmul_i.c: Nailify.
* mpz/cmp_si.c: Nailify (botched).
* mpz/ui_pow_ui.c: Nailify.
* gmp-h.in (__GMPZ_FITS_UTYPE_P): Nailify.
* mpz/fits_s.h: Nailify.
* tests/mpz/bit.c (check_tstbit): Nailify.
From Paul Zimmermann:
* mpn/generic/sqrtrem.c: Nailify.
* mpz/n_pow_ui.c: Nailify.
* mpz/cfdiv_r_2exp.c: Nailify.
* randraw.c (lc): Undo: Let mpn_rshift put result in place to avoid
extra MPN_COPY.
2002-04-17 Torbjorn Granlund <tege@swox.com>
* mpz/clrbit.c: Add two GMP_NUMB_MASK masks after addition.
* mpn/generic/random2.c (LOGBITS_PER_BLOCK): Decrease to 4.
* gmp-impl.h (nail DIV_DC_THRESHOLD): Decrease to 50 to allow fast
division.
* mpn/generic/random2.c: Nailify.
* mpz/fac_ui.c: Nailify.
* mpz/mul_i.h: #if ... #endif code block to shut up gcc warnings.
* mpn/generic/sqrtrem.c: Adopt to GNU coding standards.
(mpn_dc_sqrtrem): New name for mpn_dq_sqrtrem.
Partial nailification.
* configure.in: As a temporary hack, clear extra_functions for nails
builds.
* gmp-h.in (mpz_get_ui): #if ... #endif else code block to shut up gcc
warnings.
2002-04-17 Kevin Ryde <kevin@swox.se>
* texinfo.tex: Update to 2002-03-26.08 per texinfo 4.2.
* gmp.texi: Must have @top in @ifnottex (or @contents doesn't come out
in one run).
* mpn/generic/scan0.c, mpn/generic/scan1.c: Nailify.
* tests/mpn/t-scan.c: New file.
* tests/mpn/Makefile.am (check_PROGRAMS): Add it.
* tests/refmpn.c, tests/tests.h (refmpn_tstbit): Use unsigned long for
bit index.
(refmpn_setbit, refmpn_clrbit, refmpn_scan0, refmpn_scan1): New
functions.
* mpfr/cmp_ui.c (mpfr_cmp_si_2exp): Fix b==0 i!=0 case.
2002-04-17 Gerardo Ballabio <gerardo.ballabio@unimib.it>
* gmpxx.h, mpfrxx.h: Remove mpfr_class bool combinations, remove
mpfr_class::get_str2, use mp_rnd_t for rounding modes, use
8*sizeof(double) for mpfr_t's holding doubles.
2002-04-17 Torbjorn Granlund <tege@swox.com>
* mpz/powm.c: Nailify.
* mpz/powm_ui.c: Nailify.
2002-04-16 Torbjorn Granlund <tege@swox.com>
* mpz/hamdist.c: Nailify.
* tests/misc.c (urandom): Nailify.
* mpz/get_si.c: Nailify.
* gmp-h.in (mpz_get_ui): Nailify. Streamline (and probably upset
memory checkers).
* gmp-impl.h (mp_bases[10] values): Add versions for GMP_NUMB_BITS
being 28, 60, and 63.
* mpn/mp_bases.c: Add tables for GMP_NUMB_BITS being 28, 60, and 63.
* mpz/iset_si.c: Nailify.
* mpz/iset_ui.c: Nailify
* tests/mpz/convert.c (main): Print test number in error message.
* mpn/generic/get_str.c (mpn_sb_get_str): Shift up `frac' into nails
field after bignum division.
2002-04-16 Kevin Ryde <kevin@swox.se>
* gmp-h.in, gmp-impl.h (GMP_NAIL_MASK): Move to gmp.h.
* gmp.texi: Use @documentdescription and @copying, per texinfo 4.2.
(Low-level Functions): Clarify mpn_gcd overlap requirements, rewrite
mpn_set_str description, add nails section.
(C++ Interface General): Remove bool from types that mix with classes.
(Language Bindings): Add STklos, GNU Smalltalk, Regina.
(Binary to Radix, Radix to Binary): Describe new code.
(Assembler Cache Handling): More notes, mostly by Torbjorn.
* macos/configure (%vars): Remove __GMP from substitutions, per change
to main configure.
* mpn/generic/dive_1.c: Nailify.
* mpn/generic/mode1o.c: Nailify, remove bogus ASSERT in commented-out
alternate implementation.
* gmp-impl.h (SUBC_LIMB): New macro.
* tests/devel/try.c (validate_divexact_1): Correction to compare.
(udiv_qrnnd): New testing.
(SHIFT_LIMIT): Nailify.
(-b): New option, remove spurious "H" from getopt string.
* mpz/clrbit.c: Nailify.
* tests/mpz/t-hamdist.c: Nailify.
* gmp-impl.h (MPN_FIB2_SIZE): Nailify.
(PP): Nailify conditionals.
* tests/mpz/t-fib_ui.c (MPZ_FIB_SIZE_FLOAT): Nailify.
* configure.in, acinclude.m4: Establish GMP_NAIL_BITS and
GMP_LIMB_BITS for gmp-h.in configure tests.
* mpfr/*, configure.in: Update to final mpfr 2.0.1.
* mpfr/acinclude.m4 (MPFR_CONFIGS): Use $host, not uname stuff.
* mpfr/tests/tout_str.c: Patch from Paul for denorm fprintf tests.
2002-04-15 Torbjorn Granlund <tege@swox.com>
* mpn/generic/divrem_1.c (EXTRACT): Remove.
* tests/mpz/t-tdiv_ui.c (dump_abort): Accept argument for error string.
* mpz/rrandomb.c: Nailify. Needs further work.
* mpn/generic/mod_1.c: Nailify.
* gmp-impl.h: Set various *_THRESHOLD values to be used for nails to
avoid not yet qualified algorithms.
(MPZ_CHECK_FORMAT): Check that nail part is zero.
* tests/mpz/t-mul.c (main): Test squaring even for huge operands.
(base_mul): Nailify.
(dump_abort): Accept argument for error string. Print product
difference.
* mpn/generic/set_str.c: Nailify.
* gmp-h.in (__GMPN_ADD, __GMPN_SUB): Nailify.
2002-04-14 Torbjorn Granlund <tege@swox.com>
* randraw.c (lc): Return non-nonsense return value for seed=0 case.
Check for m2exp being non-zero early; remove all other tests of m2exp.
Remove redundant MPN_ZERO call.
Let mpn_rshift put result in place to avoid extra MPN_COPY.
Remove confusing comment before function `lc' describing BBS algorithm.
Misc simplification and cleanups.
Nailify. Needs further work.
* mpz/set_si.c: Nailify.
* mpz/set_ui.c: Nailify.
* mpz/mul_i.h: Nailify.
* tests/mpz/t-mul_i.c: Actually test _ui routines. Add some more test
values.
* mpn/generic/mul_n.c: Finish nailifying toom3 code.
2002-04-13 Kevin Ryde <kevin@swox.se>
* mpfr/*: Update to another new mpfr 2.0.1.
* configure.in, Makefile.am, mpfr/Makefile.am, mpfr/tests/Makefile.am:
Use MPFR_CONFIGS macro, establish separate MPFR_CFLAGS for mpfr build.
* mpfr/tests/Makefile.am: Correction to convenience rule for libmpfr.a.
2002-04-11 Kevin Ryde <kevin@swox.se>
* mpfr/set_q.c: gmp-impl.h before mpfr.h to avoid _PROTO redefine.
* mpfr/*, configure.in: Update to new mpfr 2.0.1.
* tests/refmpn.c (refmpn_udiv_qrnnd, refmpn_divmod_1c_workaround):
Fixes for nails.
* tests/t-constants.c (MODLIMB_INVERSE_3): Nailify tests.
(MP_BASES_BIG_BASE_INVERTED_10, MP_BASES_NORMALIZATION_STEPS_10): Only
check these under USE_PREINV_DIVREM_1.
* tests/t-modlinv.c: Nailify tests.
2002-04-11 Gerardo Ballabio <gerardo.ballabio@unimib.it>
* gmpxx.h: Remove bool combinations, remove mpf_class::get_str2, only
need <iosfwd> now.
2002-04-11 Torbjorn Granlund <tege@swox.com>
* mpn/generic/diveby3.c: Nailify.
* gmp-impl.h (MODLIMB_INVERSE_3): Nailify.
* mpn/generic/mul_n.c: Nailify Toom3 code.
2002-04-10 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (MPN_KARA_MUL_N_MINSIZE, MPN_KARA_SQR_N_MINSIZE): Set to
3, as needed by nails case.
* mpn/generic/addmul_1.c, mpn/generic/submul_1.c [nails]: Fix vl
assert, add rp,n and up,n asserts.
* mpfr/Makefile.am: Add new mpfr-math.h, install mpf2mpfr.h.
2002-04-10 Torbjorn Granlund <tege@swox.com>
* mpn/generic/divrem_1.c: Nailify. Update mp_size_t variables to use
`n' suffix instead of `size' suffix.
* mpn/generic/divrem_2.c: Likewise.
* mpn/generic/sb_divrem_mn.c: Nailify.
* mpn/generic/tdiv_qr.c: Nailify.
(SHL): Remove silly macro.
* mpn/generic/mul_n.c (mpn_kara_mul_n): Replace open-coded increment by
mpn_incr_u call. Handle nails in ws[n] increment.
* mpn/generic/mul_n.c (mpn_kara_sqr_n): Likewise.
* gmp-h.in (GMP_NUMB_MASK): New #define.
(__GMPN_AORS_1): Add version for nails.
* gmp-impl.h (GMP_NUMB_MASK): Comment out, now in gmp.h.
(mpn_incr_u): Don't assume `incr' is non-zero.
(mpn_decr_u): Similarly.
2002-04-09 Kevin Ryde <kevin@swox.se>
* mpfr/*, configure.in: Update to mpfr 2.0.1.
* tests/refmpn.c (refmpn_mul_1c, lshift_make): Corrections for nails.
* tssts/refmpn.c, tests/tests.h (refmpn_cmp_allowzero): New function.
* mpn/generic/mul_1.c [nails]: Fix vl assert, add {up,n} assert.
* mpn/pa32/hppa1_1/pa7100/addmul_1.asm,
mpn/pa32/hppa1_1/pa7100/submul_1.asm: Rename "size" define, to avoid
ELF .size directive. Reported by LaMont Jones.
* tests/mpz/t-set_si.c: Add nails support.
2002-04-05 Torbjorn Granlund <tege@swox.com>
* gmp-impl.h: Replace nail mpn_incr_u, mpn_decr_u with faster versions.
(mp_bases[10] values): Check GMP_NUMB_BITS instead of BITS_PER_MP_LIMB.
Add GMP_NUMB_BITS == 30 version.
(__gmp_doprnt, etc): Remove parameter names.
* mpn/generic/mul_n.c: Nailify Karatsuba code.
* mpn/generic/get_str.c: Nailify.
* mpn/generic/sqr_basecase.c: Nailify.
* mpn/generic/lshift.c: Nailify.
* mpn/generic/rshift.c: Likewise.
* mpn/generic/add_n.c: Nailify. Revamp non-nail code.
* mpn/generic/sub_n.c: Likewise.
* mpn/generic/mul_1.c: Likewise.
* mpn/generic/addmul_1.c: Likewise.
* mpn/generic/submul_1.c: Likewise.
2002-04-02 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE) [powerpc]:
Corrections to constraints, and restrict to bigendian.
2002-03-31 Kevin Ryde <kevin@swox.se>
* tests/mpz/dive.c: Better diagnostics.
* tests/devel/try.c (mpn_get_str, mpn_umul_ppmm_r): New tests.
* tests/misc.c, tests/tests.h (byte_diff_lowest, byte_diff_highest):
New functions.
* tests/t-bswap.c: New file.
* tests/Makefile.am (check_PROGRAMS): Add it.
* tests/mpn/t-aors_1.c, tests/mpn/t-iord_u.c: Add nails support.
* gmp-impl.h (MPN_IORD_U) [x86]: Eliminate unnecessary jiord and iord,
rename "n" to incr per generic versions, restrict to nails==0.
(mpn_incr_u, mpn_decr_u): Add nails support.
(GMP_NAIL_LOWBIT, GMP_NUMB_MAX): New macros.
* tests/trace.c, tests/tests.h (byte_trace, byte_tracen): New
functions.
* tests/trace.c: Handle NULL operands.
* tests/refmpn.c, tests/devel/try.c, tune/speed.c: Add preliminary
nail support.
* tests/refmpn.c, test/tests.h (byte_overlap_p, refmpn_equal_anynail,
refmpn_umul_ppmm_r, refmpn_udiv_qrnnd_r, refmpn_get_str,
refmpn_bswap_limb, refmpn_random, refmpn_random2, refmpn_bswap_limb):
New functions.
* gmp-impl.h, tests/refmpn.c (ASSERT_LIMB): Renamed from
ASSERT_MP_LIMB_T.
* mpn/x86/*/*.asm, mpn/powerpc32/*/*.asm, mpn/powerpc64/*/*.asm: Put
speeds after the copyright notice, so as to keep that clear.
2002-03-29 Kevin Ryde <kevin@swox.se>
* configure.in (powerpc*-*-aix*): Correction to xlc -qarch selection,
for 32-bit mode.
2002-03-28 Torbjorn Granlund <tege@swox.com>
* mpn: Fix spacing in many files.
* mpn/generic/aorsmul_1.c: Split into addmul_1.c and submul_1.c.
* mpn/generic/aors_n.c: Split into add_n.c and sub_n.c.
* mpn/pa64/add_n.asm: Trim another 0.125 cycle/limb. Fix a comment.
* mpn/pa64/sub_n.asm: Likewise.
* mpn/pa64/mul_1.asm: Change comclr, comb to proper forms cmpclr, cmpb.
* mpn/pa64/addmul_1.asm: Likewise.
* mpn/pa64/submul_1.asm: Likewise.
2002-03-28 Kevin Ryde <kevin@swox.se>
* gmp.texi (Converting Integers): Fix type of exp in mpz_get_d_2exp,
reported by epl@unimelb.edu.au.
(References): Update Burnikel and Ziegler URL, reported by Keith
Briggs.
* gmp-h.in, mp-h.in, configure.in, acinclude.m4: Remove __GMP from
AC_SUBSTs, since autoconf says leading "_" in makefile variables is
not portable.
* demos/expr/run-expr.c: Declare optarg, optind, opterr if necessary.
* configure.in, demos/expr/expr-config-h.in: Configs for this.
2002-03-27 Torbjorn Granlund <tege@swox.com>
* mpn/Makefile.am (TARG_DIST): Remove pa64w and hppa, add pa32.
* configure.in (path_20w): Remove pa64w.
* mpn/pa64/udiv_qrnnd.asm: Tweak for PA8000 performance comparative to
that on PA8500.
2002-03-26 Torbjorn Granlund <tege@swox.com>
* mpn/pa32: New name for mpn/hppa.
* configure.in: Corresponding changes.
* mpn/pa64/umul_ppmm.asm: New file, generalized for both 2.0N and 2.0W.
* mpn/pa64/umul_ppmm.S: Remove.
* mpn/pa64/udiv_qrnnd.asm: Generalize for both 2.0N and 2.0W.
* mpn/pa64w/udiv_qrnnd.asm: Remove.
2002-03-26 Kevin Ryde <kevin@swox.se>
* mpfr/tests/tdiv.c, mpfr/tests/tui_div.c: Don't depend on nan and inf
handling in "double", for the benefit of alpha.
* configure (hppa2.0w): Set path to "pa64w pa64".
* acinclude.m4, configure.in (GMP_C_INLINE): New macro.
* acinclude.m4 (GMP_H_EXTERN_INLINE): Use it, and fix "yes" handling.
2002-03-25 Torbjorn Granlund <tege@swox.com>
* mpn/pa64w/add_n.s: Remove.
* mpn/pa64w/sub_n.s: Remove.
* mpn/pa64w/lshift.s: Remove.
* mpn/pa64w/rshift.s: Remove.
* mpn/pa64w/mul_1.S: Remove.
* mpn/pa64w/addmul_1.S: Remove.
* mpn/pa64w/submul_1.S: Remove.
* mpn/pa64w/sqr_diagonal.asm: Remove.
* mpn/pa64/mul_1.asm: New file with twice faster code; generalized
for both 2.0N and 2.0W.
* mpn/pa64/submul_1.asm: Likewise.
* mpn/pa64/mul_1.S: Remove.
* mpn/pa64/submul_1.S: Remove.
* mpn/pa64/sqr_diagonal.asm: Generalize for both 2.0N and 2.0W.
* mpn/pa64/add_n.asm: New file, generalized for both 2.0N and 2.0W.
* mpn/pa64/sub_n.asm: Likewise.
* mpn/pa64/lshift.asm: Likewise.
* mpn/pa64/rshift.asm: Likewise.
* mpn/pa64/add_n.s: Remove.
* mpn/pa64/sub_n.s: Remove.
* mpn/pa64/lshift.s: Remove.
* mpn/pa64/rshift.s: Remove.
2002-03-24 Kevin Ryde <kevin@swox.se>
* gmp-impl.h (BSWAP_LIMB_FETCH, BSWAP_LIMB_STORE): New macros.
* mpz/inp_raw.c, mpz/out_raw.c: Use them.
* acconfig.h (HAVE_HOST_CPU): Add some powerpc types.
* mpn/powerpc32/750/com_n.asm: New file.
* mpfr/tests/tout_str.c: Disable random tests, since they fail on
alphaev56-unknown-freebsd4.1 and do nothing by default.
* mpfr/tests/tsqrt.c: Don't depend on nan, inf or -0 in "double", for
the benefit of alpha.
* mpfr/sqrt.c: Clear nan flag on -0.
* demos/factorize.c: Use mpn_random() instead of random(), to avoid
portability problems.
* demos/isprime.c (print_usage_and_exit): Declare as "void" to avoid
warnings.
* demos/pexpr.c (setup_error_handler): Corrections to sigstack code.
* demos/calc/calc.y: Add some `;'s to make bison 1.34 happy.
2002-03-23 Torbjorn Granlund <tege@swox.com>
* mpn/pa64/addmul_1.asm: New file with twice faster code; generalized
for both 2.0N and 2.0W.
2002-03-22 Kevin Ryde <kevin@swox.se>
* tune/time.c: Add SGI hardware counter measuring method, change some
abort()s into ASSERT_FAIL()s.
* configure.in (AC_CHECK_HEADERS): Add fcntl.h and sys/syssgi.h.
(AC_CHECK_FUNCS): Add syssgi.
* configure.in, mpfr/Makefile.am, mpfr/tests/Makefile.am: Use
-mieee-with-inexact or -ieee_with_inexact for mpfr on alpha, so
denorms work.
* mpfr/isinteger.c: Fix a memory leak.
2002-03-21 Torbjorn Granlund <tege@swox.com>
* tune/speed.c (struct choice_t): Make `r' an mp_limb_t.
2002-03-21 Kevin Ryde <kevin@swox.se>
* configure.in (HAVE_LIMB_BIG_ENDIAN, HAVE_LIMB_LITTLE_ENDIAN): Use an
AH_VERBATIM and better explanation.
* acinclude.m4 (GMP_C_DOUBLE_FORMAT): Similarly for the HAVE_DOUBLE
constants.
* gmp.texi (Number Theoretic Functions): Clarify sign of GCD returned
by mpz_gcdext.
* demos/pexpr.c, demos/pexpr-config-h.in, configure.in: Use an
autoconf test for stack_t.
* configure.in, gmp-h.in, mp-h.in, macos/configure, tests/mpz/reuse.c,
tests/mpf/reuse.c: Use __GMP_LIBGMP_DLL to enable windows declspec,
don't require _WIN32 (etc), remove __GMP_LIBGMP_SHARED and
__GMP_LIBGMP_STATIC.
* gmp-impl.h (mp_bases): Add __GMP_DECLSPEC, for the benefit of
tests/t-constants.c.
* tune/many.pl, tune/speed.h: Remove suffix hack for back.asm.
2002-03-21 Paul Zimmermann <Paul.Zimmermann@loria.fr>
* mpfr/sin_cos.c (mpfr_sin_cos): New file.
* mpfr/mpfr.h, mpfr/mpfr.texi, mpfr/Makefile.am: Add it.
* mpfr/tan.c: Fix sign in 2nd and 4th quadrants.
* mpfr/log10.c: Fix hangs on certain inputs.
2002-03-20 Torbjorn Granlund <tege@swox.com>
* demos/pexpr.c (setup_error_handler): Declare `s', the first
sigaltstack parameter, using `stack_t' just on AIX.
2002-03-19 Torbjorn Granlund <tege@swox.com>
* mpn/powerpc32/mul_1.asm: Use free caller-saves registers instead
of the callee-saves r30 and r31.
2002-03-19 Kevin Ryde <kevin@swox.se>
* tune/freq.c (freq_proc_cpuinfo): Recognise powerpc "clock", where
previously got the wrong result from "bogomips".
* mpn/powerpc32/add_n.asm, mpn/powerpc32/sub_n.asm: Rewrite, faster on