home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
gmp-1.3.2-src.lha
/
src
/
amiga
/
gmp-1.3.2
/
ChangeLog
< prev
next >
Wrap
Text File
|
1993-05-19
|
43KB
|
1,348 lines
Wed May 19 12:14:19 1993 Torbjorn Granlund (tege@nada.kth.se)
* Many files: Call alloca(0) before function return.
* alloca.c: New file.
* Makefile (IMPL_SRCS): Add alloca.c.
(IMPL_OBJS): Add alloca.o.
Fri May 14 00:52:01 1993 Torbjorn Granlund (tege@nada.kth.se)
* mpz_iset_str.c: Fix header comment.
* gmp.h: Don't test just FILE, tests some variants of _STDIO_H for
machines were FILE is a typedef.
Tue May 11 21:20:07 1993 Torbjorn Granlund (tege@nada.kth.se)
* Makefile (realclean): Make it just be like clean.
(In particular, don't delete Makefile...)
Thu May 6 14:31:02 1993 Torbjorn Granlund (tege@nada.kth.se)
* mpn_mul.c (vsize < KARATSUBA_THRESHOLD): Eliminate unused
variable `c'.
* longlong.h (#if mc88110): Use local union to avoid explicit mov
insns.
* longlong.h (All union defs): Prepend __ before tags to avoid
conflicts. Cleanup union definitions to look the same.
* mpz_inp_str.c: Pass BASE to char_ok_for_base.
Wed May 5 01:25:23 1993 Torbjorn Granlund (tege@nada.kth.se)
* tests/tst-convert.c: Try base == 0.
* mpz_inp_str.c: Fix typo in assignment.
* longlong.h: Adjust UMUL_TIME and UDIV_TIME for several archs.
(#if hppa): Remove udiv_qrnnd.
(#if vax): Define sdiv_qrnnd. Use "g" constraint for umul_ppmm's
operand 0.
Tue May 4 17:11:55 1993 Torbjorn Granlund (tege@du.nada.kth.se)
* longlong.h (#if ns32000): Fix typo, udiv_qrnnd was div_qrnnd.
Mon May 3 00:20:52 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* Makefile: Add rule for mp_bases.o.
* _mpz_set_str.c: Make inp_digit an mp_limb. Remove casts of
inp_digit to unsigned.
* mpn_dm_1.c: Use BITS_PER_MP_LIMB instead of 32.
* mpn_mod_1.c: Likewise.
* mpn_dm_1.c (udiv_qrnnd_preinv): Delete testing of overflow that
Peter Montgomery proved can't happen.
* tests/*.c: Include gmp-impl.h to make `inline' and `const' be
#define'd.
* Makefile: Update automatically generated dependencies.
* mpz_pow_ui: Don't include mp.h.
Use MP_INT instead of MINT even for rpow.
Sun May 2 16:35:53 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* tests/tst-convert.c, tests/tst-dm_ui.c, tests/tst-mdm.c,
tests/tst-mdm_ui.c: New files.
* tests/tst-dm.c: New name for tests/tst-divmod.c.
* tests/*.c: Include urandom.h. Use urandom(), never random().
Restructure test code to be more consistent, define and use
dump_abort(), only dump input operands, generate negative operands
when allowed by the tested function, etc.
* tests/urandom.h: New file.
* tests/Makefile: Add new tests. Update dependencies.
(CFLAGS): Pass `-I.'.
(tests) Don't print "The tests passed" since we don't correctly
detect failures.
* mpz_fac_ui: Fix some comments.
* mpz_random.c, mpz_random2.c: Declare random();
Define random to call mrand48 for __alpha__.
* All files: Use #ifdef instead if #if for testing __STDC__.
* longlong.h (#if sparc_v8): Define UMUL_TIME and UDIV_TIME.
* mpz_inp_str.c: If BASE is 0, try to determine the base from the
leading characters. Restructure code.
* mpz_pprime_p.c: Include gmp-impl.h.
Fri Apr 30 09:35:03 1993 Torbjorn Granlund (tege@du.nada.kth.se)
* tests/Makefile: Set CC and OPT as in main Makefile.
Add copyright notice.
* gmp.h: Remove declaration of mpz_not.
Thu Apr 29 19:51:34 1993 Torbjorn Granlund (tege@du.nada.kth.se)
* mpq_cmp.c: Fix header comment.
From Anders Thulin:
* mpz_inp_str.c: Get condition for char_ok_for_base right.
Tue Apr 27 12:30:48 1993 Torbjorn Granlund (tege@du.nada.kth.se)
* Makefile (check): Pass OPT to recursive make.
* tests/Makefile (OPT): Set to default value.
(CFLAGS): Don't include -g.
(tst-mul): Pass $(CFLAGS) to $(CC).
(tst-divmod): Likewise.
(tst-gcd): Likewise.
(tst-sqrtrem): Likewise.
* mpz_gcd.c: Fix typo in comments.
* mpz_sqrtrem.c: Really divide by zero for negative operands.
* mpz_mul_ui.c: Fix header comment.
* mpz_get_si.c: Fix type typo in cast.
Sun Apr 25 18:40:26 1993 Torbjorn Granlund (tege@pde.nada.kth.se)
* memory.c: Use #if instead of #ifdef for __STDC__ for consistency.
* bsd/xtom.c: Likewise.
* cre-conv-tab.c: #include gmp.h and gmp-impl.h to get bit size
right for longlong.h.
* Makefile: Add new deps for `cre-conv-tab'.
* Makefile, tests/Makefile: Don't define or use srcdir.
* longlong.h (#if alpha): Define umul_ppmm.
Define UMUL_TIME and UDIV_TIME.
(#if i960): Define umul_ppmm and __umulsidi3.
(#if hppa): Define count_leading_zeros.
(#if IBMR2): Remove umul_ppmm. Define smul_ppmm.
(#if 68020): Define smul_ppmm.
(#if mc88110): Define umul_ppmm and udiv_qrnnd.
(#if ns32000): Define umul_ppmm.
(#if pyr): Rewrite umul_ppmm.
* mpz_powm: `carry_digit' => `carry_limb'.
* sdiv.c: Clearify comment.
Sat Apr 24 16:23:33 1993 Torbjorn Granlund (tege@pde.nada.kth.se)
* tests: Update header comments. Make default sizes 8, use SIZE
symbol to allow user override. Increase default repetitions.
* longlong.h (__udiv_qrnnd_c): Define this always.
Make all variables `unsigned long int'.
(__LLDEBUG__): Remove this conditional.
* gmp-impl.h: #define ABS.
* (Many files): Use ABS instead of abs.
* _mpz_get_str, mpn_sqrt, mpz_clrbit, mpz_get_si, mpz_mod_2exp,
mpz_pow_ui, mpz_random2: Cast 1 to mp_limb before shifting.
* gmp.h: mpn_add returns mp_limb.
* mpz_perfsqr: Use #if, not plain if for exclusion of code for
non-32-bit machines.
Tue Apr 20 13:13:58 1993 Torbjorn Granlund (tege@du.nada.kth.se)
* mpn_sqrt: Handle overflow for intermediate quotients by rounding
them down to fit.
* mpz_random2: Back to random(); rand() is so bad we get into cycles.
* mpz_perfsqr.c (PP): Define in hexadecimal to avoid GCC warnings.
* mpz_inp_str.c (char_ok_for_base): New function.
(mpz_inp_str): Use it.
* gmp.h: Add `const' to decl of mpz_probab_pripe_p.
* _mpz_set_str.c (char_type): Remove final `,'.
(ascii_to_num): Likewise.
Sun Mar 28 21:54:06 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* mpz_inp_raw: Allocate x_index, not xsize limbs.
Mon Mar 15 11:44:06 1993 Torbjorn Granlund (tege@pde.nada.kth.se)
* mpz_pprime_p.c: Declare param `const'.
* gmp.h: Add declarations for mpz_com.
Thu Feb 18 14:10:34 1993 Torbjorn Granlund (tege@pde.nada.kth.se)
* mpq_add, mpq_sub: Call mpz_clear for t.
Fri Feb 12 20:27:34 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* mpz_inp_str: Recog minus sign as first character.
Wed Feb 3 01:36:02 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* mpz_random.c (urandom): New conditionally defined local function.
Use it instead of random().
* mpz_random2: Use rand() instead of random() here, since we don't
care how many bits we get.
* mpz_iset: Handle 0 size.
Tue Feb 2 13:03:33 1993 Torbjorn Granlund (tege@cyklop.nada.kth.se)
* _mpz_get_str: Adjust for negative msize when returning str.
* mpz_mod_ui: Initialize dividend_size before it's used.
Mon Jan 4 09:11:15 1993 Torbjorn Granlund (tege@sics.se)
* itom: Declare param explicitly 'signed'.
* sdiv: Likewise.
* mpq_cmp: Remove unused variable tmp_size.
* mpz_powm_ui: Fix typo in esize==0 if stmt.
* mpz_powm: Likewise.
Sun Nov 29 01:16:11 1992 Torbjorn Granlund (tege@sics.se)
* mpn_dm_1.c (mpn_divmod_1): Handle
divisor_limb == 1 << (BITS_PER_MP_LIMB - 1)
specifically.
Sat Nov 28 17:19:40 1992 Torbjorn Granlund (tege@sics.se)
* mpz_div: Remove free_me and free_me_size and their usage.
Wed Oct 28 17:40:04 1992 Torbjorn Granlund (tege@jupiter.sics.se)
* longlong.h (__hppa umul_ppmm): Fix typos.
(__hppa sub_ddmmss): Swap input arguments.
* mpz_perfsqr.c (mpz_perfect_square_p): Avoid , before } in
initializator.
Sun Oct 25 20:30:06 1992 Torbjorn Granlund (tege@jupiter.sics.se)
* mpz_pprime_p.c (mpz_probab_prime_p): Handle numbers <= 3
specifically (used to consider all negative numbers prime).
* mpz_powm_ui: `carry_digit' => `carry_limb'.
* sdiv: Handle zero dividend specifically. Replace most code in
this function with a call to mpn_divmod_1.
* mpn_add: Return type is mp_limb.
* _mpz_get_str: Assign and use MSIZE smarter, to avoid using
m->size.
* _mpz_get_str: Allocate extra STR space if (MSIZE < 0) for minus
sign