2004-10-27 Vincent Lefevre * mpfr-impl.h, set_d.c: Removed the definitions of DBL_POS_INF/DBL_NEG_INF/DBL_NAN for Visual C++ as they were incorrect. Modified DOUBLE_ISINF(x) so that infinities are no longer used (this should fix a part of the problem for Visual C++). If IEEE 754 is not supported, one should probably use the standard INFINITY macro instead of (1.0/0.0), since (1.0/0.0) is specific to IEEE 754. * acinclude.m4, tests/tests.c: Applied patch by Steve M. Robbins for non-IRIX MIPS systems (originally for MPFR 2.0.3). 2004-10-26 Vincent Lefevre * tests/tadd1sp.c, tests/tsub1sp.c: Reformatted the code. * tests/tsub1sp.c, tests/ttanh.c, tests/tset_ld.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tround_prec.c, tests/tset.c, tests/tset_exp.c, tests/trint.c, tests/trandom.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/texp2.c, tests/tgamma.c, tests/tcosh.c, tests/tdiv.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/tcos.c, tests/tacos.c, tests/tadd1sp.c, tests/tasin.c, tests/tatan.c, mpfr-test.h: Replaced mpfr_set_emin/emax by set_emin/emax in tests to check the return value; defined set_emin/emax in "tests/tests.c". Fix: added missing #include in "tests/tests.c". Removed variable names in prototypes in "mpfr-test.h". 2004-10-22 Vincent Lefevre * tests/mpf_compat.h: Reformatted the code -> GNU style. * tests/tinp_str.c, tests/tout_str.c, tests/tset_str.c, tests/tstrtofr.c, mul.c, set_str.c, strtofr.c, tests/mpf_compat.h, tests/tests.c, mpfr-impl.h, mpfr-test.h, mpfr.h, mpfr.texi, INSTALL, NEWS, README, README.dev, configure.in, AUTHORS, BUGS, ChangeLog: Ported the latest modifications to the 2.1 branch. * ChangeLog: Update. 2004-10-22 Patrick Pelissier * tests/tests.c: Declaration of "tests_rand_start" and "tests_rand_end" with the same storage class specifier in tests.c (static missing line 65 and 109). 2004-10-21 Vincent Lefevre * strtofr.c: Bug fixed: cast to unsigned char instead of int for isspace (no, these are not "psycho" systems, just systems with signed chars). Untabified the source. 2004-10-20 Patrick Pelissier * configure.in: Improve ICC CFLAGS by removins meaningless warnings. * strtofr.c: Remove some warnings on some "psycho" systems. * README.dev: Update the chapter "Make a release". * mpfr-test.h, tests/mpf_compat.h, tests/tests.c, tests/tinp_str.c: Fix bug when you build MPFR outside source directory. Add function src_fopen to open a file in the source directory, which may be different from the current directory. * INSTALL: Fix a typo. 2004-10-19 Vincent Lefevre * mpfr.texi: Another correction (English). * mpfr.texi: Minor correction. 2004-10-19 Patrick Pelissier * NEWS: Update NEWS to reflect the change in mpfr_set_str. * mpfr.texi, set_str.c, tests/tset_str.c: Update mpfr_set_str to be much more like strtofr. Update the documentation to reflect the changes. 2004-10-19 Paul Zimmermann * mpfr.texi: changed contributors section 2004-10-19 Patrick Pelissier * NEWS: Add a line about binary compatibility. 2004-10-19 Paul Zimmermann * mpfr.texi: changed "contributors" section * mul.c: changed rights (remove executable permission) 2004-10-18 Vincent Lefevre * mpfr.texi: Misc corrections: + spelling mistakes + consistency: in direction @var{rnd} -> in the direction @var{rnd} + @code{NULL} pointer -> null pointer (as in the C standard) + in the example for mpfr_inits2 / mpfr_clears: NULL -> (void *) 0 as NULL isn't necessarily a pointer. 2004-10-18 Patrick Pelissier * BUGS, README: Update * tests/tstrtofr.c, set_str.c, strtofr.c, tests/tset_str.c, mpfr.h, mpfr.texi: Change "unsigned int" to "int" for base in proto of strtofr. Change set_str to use strtofr (Fix a bug too). Limit base to 36 in strtofr (since get_str is limited to 36). Update documentation to reflect the changes. mpfr_get_d1 is moved to section internal in the documentation. Update the tests. * mpfr-impl.h: Hard code NAN, +INF and -INF values for MVC. * tests/mpf_compat.h, tests/tout_str.c: Fix problem on systems where "/dev/null" doesn't exist. 2004-10-16 Vincent Lefevre * AUTHORS, mpfr.texi: Misc corrections. 2004-10-15 Vincent Lefevre * README.dev: Updated the section "To make a release". * VERSION, mpfr.h, mpfr.texi, version.c: Updated the version on the trunk. * ChangeLog: Update. * NEWS: Update for 2.1.0. 2004-10-13 Vincent Lefevre * README.dev: Added a comment about autoreconf and a bug in Debian (now fixed). 2004-10-12 Patrick Pelissier * INSTALL: Add a note about Windows 64. 2004-10-11 Patrick Pelissier * mpfr.texi: Update documentation. * INSTALL: Improve Windows installation. * README.dev: Add a line about "near" and "far". 2004-10-07 Patrick Pelissier * acinclude.m4, configure.in, tests/tget_str.c: Add support for ".lib" since it seems to work. Display GMP version inside the configure. 2004-10-05 Paul Zimmermann * tests/tget_str.c: added one new test 2004-10-04 Vincent Lefevre * tests/tget_str.c: Added worst cases. 2004-10-02 Paul Zimmermann * tests/tset_str.c: added new tests (worst-case) 2004-10-01 Paul Zimmermann * tests/tget_str.c: added new worst-cases (directed rounding) * TODO: added new function to implement (dilog) 2004-09-30 Paul Zimmermann * get_str.c: fixed bug in get_str_aux when one extra digit 2004-09-30 Vincent Lefevre * mpfr.h, mpfr.texi, rint.c, tests/trint.c: Added functions mpfr_rint_round, mpfr_rint_trunc, mpfr_rint_ceil, mpfr_rint_floor. 2004-09-30 Patrick Pelissier * tests/tget_str.c: Add new test (One failed). 2004-09-30 Vincent Lefevre * get_sj.c: The cast to uintmax_t wasn't really useful, so I removed it. Added a comment. * get_sj.c: The real fix for sizeof(intmax_t) == sizeof(mp_limb_t). 2004-09-30 Patrick Pelissier * get_sj.c: Fix a bug if sizeof(intmax_t) == sizeof(mp_limb_t) 2004-09-29 Paul Zimmermann * tests/tget_str.c: added worst-case 2004-09-29 Patrick Pelissier * TODO, cmp.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, mpfr.texi, tests/tcmp.c, tests/tcmp_d.c, tests/tcmp_ld.c, tests/tcmp_ui.c, tests/tcmpabs.c: cmp(x,y) if x=NAN or y=NAN returns 0 and erange flag. * NEWS, mpfr.texi: Update documentation and NEWS to reflect new functions and functionnality. * get_z.c, strtofr.c: Improve assertion. * tests/tset_si.c, exceptions.c, get_si.c, get_sj.c, get_ui.c, get_uj.c, mpfr-impl.h, set_sj.c, set_uj.c, tests/texceptions.c, tests/tget_sj.c, tests/tset_sj.c: Add mpfr_clear_erangeflag and mpfr_erangeflag_p. Add test for theses two functions. mpfr_get_[s/u][i/j] have a deterministic behavior in case of OVERFLOW. (Return the MINIMUM or the MAXIMUM in the current type, and set ERANGE_flag). * Makefile.am, fits_intmax.c, fits_uintmax.c, mpfr.h, tests/tfits.c: Add mpfr_uintmax_p and mpfr_intmax_p. * TODO, INSTALL: Update INSTALL about C++ Update TODO and VERSION. * mpfr-impl.h, mpfr.texi, mpfr.h: Move mpfr_inits from mpfr-impl to mpfr.h. Add doc too. 2004-09-28 Patrick Pelissier * get_sj.c, get_uj.c: Reindent the sources (again). * mpn_exp.c: Fix how to detect overflow so that it can be build with GCC -ftrapv option without any bugs (In the previous code, the overflow was detected afterwards, whereas, now, it is detected before). Fix also another real problem of overflow (Addition of two signed integers). * div.c: Rename this variable again. * div.c: Replace variable 'near' to 'the_real_near' since MSVC incorreclty recognize "far" and "near" as obsolete keywords (100% incorrect, and clearly MSVC fault but it doesn't cost many things to change the name). 2004-09-27 Patrick Pelissier * mpfr.texi: Fix typo in the documentation about get_ functions. * get_sj.c, get_uj.c: Retab the sources. 2004-09-27 Vincent Lefevre * NEWS: Added mpfr_get_uj and mpfr_get_sj in the changes 2.0.3 -> 2.1.0. * TODO: Added an item about the future MPFR_FLAGS_ERANGE flag. * Makefile.am, get_sj.c, get_uj.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tget_sj.c: New functions mpfr_get_sj and mpfr_get_uj, with tests. 2004-09-27 Patrick Pelissier * set_sj.c: Remove MPFR_NEED_LONGLONG_H macro. 2004-09-26 Vincent Lefevre * set_sj.c: Added a cast to avoid an integer overflow. 2004-09-24 Vincent Lefevre * get_si.c: Fixed integer overflow. * get_si.c: Fixed bugs (like those in mpfr_get_ui). * README.dev: The standard autoreconf script should now be used instead of prepare. 2004-09-24 Paul Zimmermann * get_ui.c: forgot to check for 0 * get_ui.c: now use mpfr_rint() 2004-09-24 Patrick Pelissier * mpfr.texi: Update doc of mpfr_get_str (Minimum space is 7). 2004-09-24 Paul Zimmermann * get_ui.c, tests/tset_si.c: fixed double-rounding bug in get_ui 2004-09-23 Patrick Pelissier * mpf2mpfr.h: Prevent from multiple inclusion. mpf_init inits to 0 rather than NAN. * mpfr.h: Fix some tiny problems. 2004-09-23 Paul Zimmermann * TODO: added item on rounding to odd 2004-09-21 Patrick Pelissier * strtofr.c: Fix a bug in FreeBsd 5.20 / Alpha / Gcc 3.3.3. Nor a MPFR bug, but add some code to avoid it. * strtofr.c, tests/tstrtofr.c: Add a new test and clarify a comment. * strtofr.c: Update Assertion for pow2. 2004-09-20 Patrick Pelissier * NEWS: Update NEWS. * TODO: Update TODO due to new function mpfr_strtofr * configure.in, get_d.c, mpfr-impl.h, mpfr.h, set_d.c, strtofr.c, tests/memory.c, tests/tdiv.c, tests/tests.c, tests/tget_str.c, tests/trint.c, tests/tset_d.c, tests/tset_q.c, tests/tset_str.c, tests/tstrtofr.c: Add ICC detection && support. Remove some potential warnings in the test files. * Makefile.am, mpfr.texi, strtofr.c, tests/Makefile.am, tests/tstrtofr.c: Add mpfr_strtofr function. Add mpfr_strtofr test file. Add mpfr_strtofr documentation. * configure.in: Improve GMP.h vs libgmp.a version checking. 2004-09-17 Paul Zimmermann * TODO: added one entry (new function 1/sqrt(x)) 2004-09-17 Patrick Pelissier * acinclude.m4, configure.in, tests/Makefile.am: Use LIBS instead of LDADD for libraries (GMP). * configure.in: Min GMP version is 4.1.0 now. 2004-09-16 Patrick Pelissier * configure.in: Add a check if both gmp.h and libgmp.a have the same version. * mpfr-impl.h: Fix a typo. 2004-09-15 Patrick Pelissier * tests/tset_str.c: Add a forgotten regression test "1.2.3" 2004-09-15 Vincent Lefevre * config.sub, config.guess: Update from the autotools-dev Debian package. * ChangeLog: Update. 2004-09-14 Patrick Pelissier * mpfr-impl.h: Add 2 new macros for handling correctly overflow. 2004-09-13 Paul Zimmermann * set_str.c: fixed bug (several '.' allowed in mantissa) 2004-09-03 Paul Zimmermann * INSTALL: added notes for Windows 2004-09-02 Patrick Pelissier * TODO: Add a line about Dynamic Version of MPFR. 2004-09-01 Paul Zimmermann * mpfr.texi: added warnings about init functions (mpf wrt mpfr) 2004-08-31 Patrick Pelissier * mpfr.texi: Update documentations. * tests/tget_z.c, get_z.c, mpfr.h: Rename mpz_set_fr to mpfr_get_z. Provide a conditionnal macro for mpz_set_fr. * mpfr.texi: Add doc for mpfr_sqr. * mpfr.texi: Fix month. 2004-08-26 Patrick Pelissier * tests/texp.c: Add a new test to check overflow. 2004-08-24 Patrick Pelissier * exp_2.c: Try to retype correctly the functions (replace int by the correct type). Still some works to do. 2004-08-23 Patrick Pelissier * mpfr-impl.h: Add description of what does MPFR_INT_CEIL_LOG2. * Makefile.am, exp_2.c, isqrt.c: Move __gmpfr_isqrt and __gmpfr_cuberoot to another file. Clean up the code of mpfr_exp_2: remove DEBUG condition to use TRACE, ASSERT and DUMP. Use MPFR_INT_CEIL_LOG2 instead of __gmpfr_ceil_log2. * mpfr-impl.h: Improve a comment. * int_ceil_log2.c, mpfr-impl.h, Makefile.am: Add MPFR_INT_CEIL_LOG2 macro and __gmpfr_int_ceil_log2 function (don't use function but macro). * set_str.c: Fix 2 typos. 2004-08-19 Patrick Pelissier * tests/tpow.c: Fix a bug on 64-bits introduced due to huger MPFR_EMAX_MAX. * exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi: Add new functions: mpfr_get_emin_min, mpfr_get_emax_max, mpfr_get_emin_max and mpfr_get_emax_min. Add documentation and explanation about potential portability problem when you mpfr_set_emin and mpfr_set_emax. 2004-07-28 Vincent Lefevre * Makefile.am: Added mpfr-longlong.h to libmpfr_a_SOURCES so that it is distributed with make dist. * Makefile.am: Added mpfr-gmp.h to libmpfr_a_SOURCES so that it is distributed with make dist. 2004-07-26 Patrick Pelissier * README.dev: Add a new section. 2004-07-20 Patrick Pelissier * Makefile.am, mpfr.h, sqr.c, tests/Makefile.am, tests/tsqr.c: Add function mpfr_sqr (TODO: Make doc) 2004-07-19 Patrick Pelissier * zeta.c: Fix an unsigned/signed comparison. * mpfr-gmp.h: Improve the emulation of mpn_sqr_n and fix some typos. 2004-07-16 Patrick Pelissier * mpfr-impl.h, mpfr.h: Remove unused item "rnd_mode" in cache struct. * mpfr.texi, tests/tversion.c, version.c, mpfr.h: Renamme mpfr_version to mpfr_get_version to be more GMP compatible. Add macro mpfr_version. * round_raw_generic.c, cmp_ui.c: Likely some tests. 2004-07-15 Patrick Pelissier * set_si.c, mpfr.h: Add a speciliation for set_si for GCC. 2004-07-09 Patrick Pelissier * agm.c: Try to optimize a few agm by rewriting a few the loop. * sqrt.c: Likely / Unlikely some tests using gcov. 2004-07-06 Patrick Pelissier * mpfr-impl.h: Remove some unused code. Add MPFR_LMIB_PER_DOUBLE Add MPFR_DUMP Add MPFR_TRACE * set_d.c: Likely some tests. * get_d.c: Used static precision for the array of limb for double. * mul_ui.c: Likely some tests / Other minor optimisations. * ui_div.c: Minor modifications. * div_2si.c, div_2ui.c: Unlikely a test so that it is faster when you call theses functions with the same dest and source which is the common case in MPFR. * mul_2si.c, mul_2ui.c: Likely a test to optimize when dest and src are the same (which is very likely inside MPFR). * cache.c: Likely a test (since cache should always work fine). 2004-06-28 Patrick Pelissier * exp_2.c, get_d.c: Add some likely, and use a static table instead of a dynamic one. 2004-06-16 Patrick Pelissier * asin.c, atan.c: Unlikely some tests. 2004-06-10 Patrick Pelissier * set_z.c: Likely / Unlikely the code. * mpfr-impl.h: Respace some macro. * save_expo.c: Retab some lines. * get_z.c: Optimize a bit. * sin.c, tests/tsin.c: Fix an overflow bug. 2004-06-08 Paul Zimmermann * exp3.c, tests/texp.c: fixed bug in mpfr_exp_3 (wrong assert) 2004-05-27 Patrick Pelissier * mpfr.h: Fix typos. * mpfr.texi: Update doc. 2004-05-18 Paul Zimmermann * cos.c: fixed problem for x near from Pi/2 (the internal precision should take into account the cancellation) 2004-05-18 Patrick Pelissier * sin.c, tests/tsin.c: Improve tests for sin. 2004-05-18 Paul Zimmermann * sin.c: mpfr_sin_sign() should use at least MPFR_GET_EXP() bits 2004-05-17 Patrick Pelissier * TODO: Remove an item. 2004-05-12 Patrick Pelissier * tests/tcos.c, tests/ttan.c: Add a potential test (Too slow). * tan.c: Simplify the code. 2004-05-11 Patrick Pelissier * cos.c: Remove a C++ comment. 2004-05-10 Patrick Pelissier * cos.c: Remove a forgotten "assertd" which isn't usefull anymore. 2004-05-07 Patrick Pelissier * cos.c, mpfr-impl.h: Optimize cos. 2004-05-07 Paul Zimmermann * cos.c: improved initial value of working precision (did not take into account 2K lost bits for large arguments) 2004-05-06 Patrick Pelissier * acos.c, asin.c, atan.c, exp2.c, tests/tacos.c, tests/tasin.c, tests/tatan.c, tests/texp2.c, tests/ttanh.c: Fix overflow and add corresponding tests. * gamma.c: Fix a bug in a formula. * exp2.c: Optimize it a bit. * exp.c, exp_2.c, gamma.c, tests/texp.c, tests/tgamma.c: Fix overflow problems. * gamma.c, tests/tcosh.c: Fix overflow bug. 2004-05-05 Patrick Pelissier * gamma.c: Remove the double vars. (Use fixed instead). * TODO: Add a note about tanh. * tanh.c, tests/ttanh.c: Fix a bug in cas of overflow in tanh. * tanh.c: Optimize a few by reducing the # of used vars. * tests/tcosh.c, cosh.c: Fix critical bugs due to different kind of overflow in cosh. * mpfr-impl.h: Add MPFR_TMP_INIT_ABS macro. * const_pi.c, cosh.c: Optimize cosh a few by removing an unused intermedary var. * const_log2.c: Fix a critical bug in case of overflow. 2004-05-04 Patrick Pelissier * cos.c, tests/tcos.c, tests/tlog.c: Fix a critical bug in cos in case you have set the float range for the exponents. * cos.c: Optimize a few cos. * log.c: Optimize the way of computing initial precision. * tests/tlog.c: Add a test to check an overflow in const_pi (called by log in case of emulation of the float type). * const_pi.c: Move to ASSERT mode some code. * const_pi.c: Push/Pop emin/emax so that an overflow can't occur in mpfr_set_z(x,pi,r) Add test too. * mul_2ui.c: Add some UNLIKELY to the while. * exp.c: Add some UNLIKELY to the tests. * add1sp.c, tests/tadd1sp.c: Fix an overflow bug in add1sp. 2004-04-30 Vincent Lefevre * gmp_op.c, tests/tgmpop.c: Ported bug fix / test in case a mpz_t == 0 (mpz_sizeinbase(0Z,2)==0 and MPFR_PREC_MIN=2) to the 2.0 branch (fixed on 2004-04-07 in the trunk). 2004-04-29 Patrick Pelissier * acinclude.m4: Fix a typo in AC_MY_LIBS. 2004-04-28 Patrick Pelissier * cmp.c, mpfr.h: Add mpfr_cmp as a real function, not only a macro. * mpfr.h, set.c: Add mpfr_set and mpfr_abs as real functions. 2004-04-27 Patrick Pelissier * mpfr.h: When using GCC, optimize certain common comparisons. 2004-04-27 Paul Zimmermann * TODO: added one item 2004-04-27 Patrick Pelissier * agm.c: Minor Optimizations. * cache.c: Fix a bug (Use nextbeloz instead of sub_one_ulp). 2004-04-21 Patrick Pelissier * configure.in, mpfr-impl.h: Add option in configure: --disable-cache to disable the use of the cache for the const. * mpfr.texi: Fix a typo. * tests/tconst_log2.c, tests/tconst_pi.c, cache.c, const_euler.c, const_log2.c, const_pi.c, free_cache.c, mpfr-impl.h, mpfr.h, Makefile.am: Add preliminary generic code to handle cached const. Move const_pi, const_log2 to use this generic cache, which fix bugs of the previous implementation. const_euler is now cached too. * round_prec.c: Fix a bug (If x = Nan, the new new precision wasn't set). * cputime.h: Fix a typo bug. 2004-04-20 Patrick Pelissier * tests/tconst_log2.c: Add new test about the cache: new bug to fix. * iszero.c: Add forgotten file for mpfr_zero_p. * sgn.c, tests/tisnan.c, tests/tsgn.c, Makefile.am, isinf.c, isnan.c, mpfr.h, mpfr.texi: Add mpfr_zero_p. Add macros for mpfr_inf_p, mpfr_nan_p and mpfr_zero_p. Add macro for mpfr_sgn. Update doc. Add new tests. * mpfr-gmp.h: Fix a bug in a proto. * tests/tagm.c, agm.c: Fix a bug when both op are < 0 (It seems it was my fault). Add a test to check it. 2004-04-09 Patrick Pelissier * mpfr-gmp.c: Fix a bug (Remove useless function). 2004-04-08 Patrick Pelissier * mpfr-gmp.h: Fix another bug (Maybe the last?). * mpfr-gmp.h: Fix a tiny bug. * mpfr-gmp.c, mpfr-gmp.h, mpfr-test.h, tests/reuse.c, tests/tests.c, tests/trandom.c, tests/tset_f.c: Update memory allocations scheme without gmp-impl.h. Now the semantic of the memory allocation scheme is the same with and without gmp-impl, as it should be. 2004-04-07 Patrick Pelissier * gmp_op.c, mpfr.texi, sub_ui.c, tests/tgmpop.c, ui_sub.c, add_ui.c: For add/sub_type functions where type is a type without signed zeros, specify the expected result when both operands are 0. * init2.c, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h, mpfr.h: Modify a few the allocation scheme without gmp-impl.h Add pseudo-constants __MPFR_EXP_NAN, __MPFR_EXP_ZERO and __MPFR_EXP_INF for future (?) inlining of some functions. 2004-04-07 Paul Zimmermann * mpn_exp.c, set_str.c, tests/tset_str.c: fixed problem when overflow in destination exponent happens 2004-04-07 Patrick Pelissier * gmp_op.c, tests/tgmpop.c: Fix a bug in case a mpz_t == 0 (mpz_sizeinbase(0Z,2)==0 and MPFR_PREC_MIN=2). * pow_si.c, tests/tpow.c: Fix a bug in case of pow(2E1000000,-10); 2004-04-05 Paul Zimmermann * tests/tui_sub.c: fixed problem (cmpabs doesn't work for x=0) 2004-03-26 Patrick Pelissier * random2.c, round_prec.c, set_d.c, set_z.c, sqrt.c, sub1.c, sub_one_ulp.c, tests/tcheck.c, tests/trandom.c, urandomb.c, add1.c, add_one_ulp.c, check.c, cmp2.c, div_ui.c, exp.c, next.c: Change from MP_LIMB_T_ONE to MPFR_LIMB_ONE and/or MPFR_LIMB_MASK. * init2.c: Improve comments. * gmp_op.c, tests/tgmpop.c: Fix a bug. * mpfr-impl.h, mpfr.h: Move detecting macros (__MPFR_GCC, __MPFR_STDC, __MPFR_GLIBC and __MPFR_GMP) from mpfr to mpfr-impl 2004-03-22 Paul Zimmermann * zeta.c: removed blank 2004-03-22 Vincent Lefevre * gmp_op.c: Test write access to CVS. 2004-03-18 Patrick Pelissier * mpfr-gmp.c: Fix a bug in a string. 2004-03-17 Patrick Pelissier * mpfr.texi: Add documentation of 'j' functions. * mpfr.h: Fix (?) definition of MPFR_PREC_MAX. * tests/Makefile.am: Change the order of the tests. * exp.c, exp3.c, mpfr-impl.h, tests/texp.c: Rename mpfr_exp3 in mpfr_exp_3. Update THRESHOLD for mpfr_exp. Add MPFR_EXP_THRESHOLD. 2004-03-16 Patrick Pelissier * configure.in: Add new option "--with-gmp-build=" * INSTALL: Update INSTALL * mpfr.h: Fix a bug (Forget to cast to mp_exp_t). * swap.c: Update comment * Makefile.am, get_z.c, mpfr.h, tests/Makefile.am, tests/tget_z.c: Add mpz_set_fr function and its test. 2004-03-15 Patrick Pelissier * Makefile.am, mpfr.h, set_sj.c, set_uj.c, tests/Makefile.am, tests/tset_sj.c: Add new functions: mpfr_set_sj_2exp, mpfr_set_sj mpfr_set_uj_2exp, mpfr_set_uj * README.dev, sub1sp.c: Fix a compiler bug (limb !=0 instead of limb). * print_raw.c: Fix a cast problem on some systems (sizeof(mp_limb_t) > sizeof(unsigned long)). 2004-03-12 Patrick Pelissier * tests/tadd1sp.c, tests/tcheck.c, tests/tget_d_2exp.c, tests/tgmpop.c, tests/tsub1sp.c: Remove use of abort (They can create core dump on some systems). * acos.c, tests/tacos.c: Fix bug of inexact flag for acos(0). * TODO, tests/memory.c: Update. 2004-03-11 Patrick Pelissier * si_op.c, tests/tsi_op.c: Fix bug about forgotten MPFR_INVERT_RND. Add test too. * README.dev: Add doc about HAVE_STDINT_H 2004-03-10 Patrick Pelissier * mpfr.texi: Fix doc about MPFR_DECL_INIT. * mpfr.h: Fix the declaration of 'MPFR_DECL_INIT' * init2.c, mpfr.h, mpfr.texi: Add 'MPFR_DECL_INIT' macro. * mpfr.h, rint.c: Rename NEAREST_AWAY in GMP_RNDNA. * mpfr.texi: Add the description of mpfr_set_ui_2exp and mpfr_set_si_2exp. 2004-03-09 Patrick Pelissier * Makefile.am, mpfr.h, set_si_2exp.c, set_ui_2exp.c, tests/tset_si.c: Add mpfr_set_si_2exp and mpfr_set_ui_2exp and their tests. * mpfr.texi: Add doc about mpfr_cmp_f function * tests/tgmpop.c, gmp_op.c, mpfr.h, set_f.c: Add mpfr_cmp_f and its test. * Makefile.am, cmp_ld.c, mpfr.h, tests/Makefile.am, tests/tcmp_d.c, tests/tcmp_ld.c: Add mpfr_cmp_ld and its test * README.dev: Add doc of 2 macros. * cmp_si.c, cmp_ui.c, mpfr.h: Add mpfr_cmp_ui and mpfr_cmp_si as real functions (The macros are still defined and used). * Makefile.am, mpfr.h, mpfr.texi, si_op.c, tests/Makefile.am, tests/tsi_op.c: Add mpfr_add_si, mpfr_sub_si, mpfr_si_sub, mpfr_mul_si, mpfr_div_si and mpfr_si_div. Add the corresponding test. * gmp_op.c, mpfr.h, mpfr.texi, tests/tgmpop.c: Add `mpfr_cmp_q` and `mpfr_cmp_z`. * configure.in: Clean up configure * cmp_ui.c, cmp_si.c: Add ASSERT for NAN. 2004-02-27 Patrick Pelissier * mpfr.texi: Add documentation for MPFR_VERSION 2004-02-26 Patrick Pelissier * mul.c: Optimize a few mpfr_mul. * AUTHORS: Add Laurent Fousse in the AUTHORS file. 2004-02-26 Vincent Lefevre * tests/tadd.c: Fixed a bug in check2b and added a test; add1.c coverage is now complete. 2004-02-25 Vincent Lefevre * tests/tadd.c: Improved coverage. * tests/tadd.c: Bugs fixed in a test function -> improved coverage. 2004-02-25 Patrick Pelissier * mpfr-impl.h, round_raw_generic.c: Optimize mpfr_round_raw_? * sub1sp.c, add.c, add1sp.c, sgn.c: Simplify the code. 2004-02-24 Vincent Lefevre * mpfr.texi: Documented mpfr_version (2.0 branch). * README.dev, mpfr.h, tests/Makefile.am, tests/tversion.c, update-version, version.c, Makefile.am: Ported update-version, version.c, MPFR_VERSION_* to the 2.0 branch. * tests/tmul_2exp.c: Avoid integer overflow. * tests/reuse.c: Ported code clean-up to trunk. * tests/tset_str.c: Added casts to be able to compile with a C++ compiler (2.0 branch). * tests/reuse.c: Oops, forgot to update the copyright line (2.0 branch). * tests/reuse.c: Code clean-up, in particular to compile with g++ (2.0 branch). * mpfr-test.h: More corrections for g++ (2.0 branch). 2004-02-24 Patrick Pelissier * mpfr-test.h, mpfr.h, rint.c, round_prec.c, round_raw_generic.c, set_d.c, set_str.c, sin.c, sqrt.c, sub1.c, sub1sp.c, sum.c, tests/tests.c, add1sp.c, div.c, eq.c, frac.c, log10.c, mpfr-impl.h: Remove some warnings. MPFR can be compiled (but not checked!) with a C++ compiler. 2004-02-24 Vincent Lefevre * mpfr-impl.h, set_str.c: More corrections for g++ (2.0 branch). * round_prec.c: Updated copyright line (2.0 branch). * sub1.c, round_prec.c, set_str.c, sqrt.c: Added casts to be able to compile with a C++ compiler (2.0 branch). * mpfr.h: Removed useless and duplicate declarations (2.0 branch). 2004-02-24 Patrick Pelissier * tests/tmul_2exp.c, tests/tset_str.c, tests/tzeta.c: Improve test coverage. 2004-02-24 Paul Zimmermann * div.c: further simplification of the code (replaced one in-place shift and copy by out-of-place shift or copy) 2004-02-23 Paul Zimmermann * tests/tabs.c, tests/tcbrt.c, tests/tconst_euler.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tfactorial.c, tests/tget_str.c, tests/tmul_ui.c, tests/tpow.c, tests/tset.c, tests/tset_ld.c, tests/tui_div.c: use GMP_RND_MAX instead of hard-coded constant * tests/tdiv.c, div.c: simplified the code of div.c and improved coverage 2004-02-23 Vincent Lefevre * sqrt.c, tests/tsqrt.c: Ported bug fix / test of mpfr_sqrt to the 2.0 branch. 2004-02-23 Patrick Pelissier * longlong.h, mpfr-impl.h, mpfr-longlong.h: Rename 'longlong.h' in 'mpfr-longlong.h' so that when MPFR is built within GMP it uses GMP's 'longlong.h' rather than MPFR's copy. 2004-02-23 Vincent Lefevre * ChangeLog: Update. * VERSION, mpfr.texi: MPFR 2.0.3 has been released. Updated version to 2.0.4 on the 2.0 branch. 2004-02-23 Patrick Pelissier * free_cache.c: Add mpfr_free_cache (2). * Makefile.am, mpfr.h, mpfr.texi, tests/tests.c: Add mpfr_free_cache. * mpfr.texi, tests/tget_str.c, get_str.c, mpfr.h: Add mpfr_free_str function. * tests/tadd.c: Remove a warning. * mpfr.h: Reorder the declarations of the functions. Remove duplicate declarations. Remove mpfr_factorial. 2004-02-23 Paul Zimmermann * sqrt.c: patch from Guillaume Hanrot 2004-02-23 Patrick Pelissier * pow_ui.c, set_str.c, tests/tgmpop.c, tests/tpow.c, tests/tset_si.c, tests/tset_str.c: Improve coverage tests. Fix 2 underflow bugs. * sub1sp.c: Update comment * mpfr.h: Improve comments. * mul.c: Add a comment. 2004-02-22 Vincent Lefevre * tests/tadd.c: Added tests. 2004-02-20 Vincent Lefevre * ChangeLog: Update (2.0 branch). * NEWS, neg.c, tests/tset.c: Ported bug fix / test of mpfr_neg to the 2.0 branch. 2004-02-20 Laurent Fousse * mpfr.h, sum.c, tests/tsum.c, mpfr-impl.h: Changed mpfr_sum to use unsigned long instead of unsigned int. More tests. 2004-02-20 Patrick Pelissier * neg.c, tests/tset.c: mpfr_neg (b, b, r) for b=NAN didnt' set NAN flag. * mpfr.texi: mpfr_sgn is no longer a macro. 2004-02-20 Vincent Lefevre * ChangeLog: Update (2.0 branch). * mpfr-test.h, tests/tgmpop.c, gmp_op.c: Ported bug fix / test of gmp_op.c (0.5+3/2 freezes) to the 2.0 branch. 2004-02-19 Patrick Pelissier * gmp_op.c, tests/tgmpop.c: Fix bug with exact rationnal arguments (0.5+3/2 freezes). 2004-02-18 Vincent Lefevre * ChangeLog: Update. * config.guess, config.sub: Update from the autotools-dev Debian package (2004-01-05). * ChangeLog: Update (2.0 branch). * mpfr.texi: Updated the 2.0 branch. * minmax.c: Updated copyright line (2.0 branch). * mpfr.texi: Updated the 2.0 branch (up to rev. 1.200 / 2004-01-07). * set_f.c, tests/tset_f.c: Ported bug fix / test of mpfr_set_f to the 2.0 branch. * set_f.c, tests/tset_f.c: Fixed a bug in mpfr_set_f for 0 (wrong sign) and added the test. 2004-02-18 Patrick Pelissier * get_str.c: Fix bug if you build MPFR with ASSERT. 2004-02-17 Patrick Pelissier * mul.c: Reduce the number of used variables. 2004-02-17 Paul Zimmermann * round_raw_generic.c: improved again documentation * get_str.c: simplified rounding * round_raw_generic.c: improved documentation of *inexp 2004-02-17 Vincent Lefevre * NEWS, ChangeLog: Update (2.0 branch). * mpf2mpfr.h: Added 2004 in Copyright line (2.0 branch). 2004-02-17 Patrick Pelissier * tests/tsub1sp.c: Simplify the random code. * sub1sp.c: Optimize it a few. * round_raw_generic.c: Add 2004 in copyright line. * README.dev: Add a section which describes the needed macros for building MPFR. 2004-02-17 Vincent Lefevre * set_f.c, tests/tset_f.c: Ported bug fixes / tests of mpfr_set_f to the 2.0 branch. 2004-02-17 Paul Zimmermann * mul.c: added comment about probability of normalized product 2004-02-17 Vincent Lefevre * acinclude.m4: Try so support GMP as a Shared Library (2.0 branch). * gmp_op.c, tests/tgmpop.c: Ported bug fixes / tests of gmp_op.c to the 2.0 branch. * mpfr.texi: Added a note about the ternary value, important in practice. 2004-02-17 Paul Zimmermann * set_f.c, tests/tset_f.c: fixed 2 bugs and added test * round_raw_generic.c: added comment about return value 2004-02-17 Patrick Pelissier * acinclude.m4: Try so support GMP as a Shared Library. 2004-02-16 Paul Zimmermann * tests/tsqrt.c: improved error message 2004-02-16 Patrick Pelissier * gmp_op.c: Fix the computing of the error for mpq_add and mpq_sub. 2004-02-16 Vincent Lefevre * tests/tadd.c: Added more tests (improved tadd1.c coverage). 2004-02-16 Paul Zimmermann * tests/tgmpop.c: added cancellation test for add_q 2004-02-16 Vincent Lefevre * tests/tadd.c: Added tests (improved tadd1.c coverage). 2004-02-16 Patrick Pelissier * gmp_op.c, tests/tgmpop.c: Fix bug of add_q and sub_q with special values (NAN, INF and ZERO). 2004-02-16 Paul Zimmermann * div.c, set_d.c, set_q.c: deal with overflow/underflow in mpfr_div * tests/tgmpop.c: added hard-coded tests 2004-02-16 Vincent Lefevre * tests/tadd.c: When the precisions are the same, test both mpfr_add1sp and mpfr_add1. * tests/tadd.c: Added overflow check. 2004-02-16 Patrick Pelissier * add1sp.c, div.c, sub1sp.c, tests/tsub1sp.c: Optimize add1sp, sub1sp and div. Improve coverage test for sub1sp. 2004-02-16 Vincent Lefevre * tests/texp.c: Removed unused label. * mpf2mpfr.h: Ported the mpf_dump fix to the 2.0 branch. * pow.c: Really reverted to rev. 1.54 + kept optimization + commented out is_odd_even. * tests/texp.c, exp.c: Ported bug fixes / tests of mpfr_exp to the 2.0 branch. 2004-02-16 Paul Zimmermann * set_d.c, set_ld.c: take into account possible out-of-range exponent * pow.c: revert to rev 1.54 code for case x infinite (was less efficient but simpler) * pow.c: fixed bug with in-place computation 2004-02-16 Vincent Lefevre * tests/tsqrt.c, tests/tset_ld.c: Code clean-up and fix to avoid warnings. 2004-02-16 Paul Zimmermann * mpfr.texi, pow.c, tests/tpow.c: changed back to C99 standard for special values of x^y * tests/trint.c: added test for *function* mpfr_round * tests/tinp_str.c, tests/tout_str.c: check return value of fopen 2004-02-16 Vincent Lefevre * sqrt.c: Removed the no longer used label "fin" and fixed the indentation. * pow.c: Fix: MPFR_NOT_ZERO -> MPFR_NOTZERO. * agm.c: Commented out the now useless "double uo, vo;". 2004-02-16 Paul Zimmermann * tests/trandom.c, tests/tzeta.c, zeta.c: improved coverage tests 2004-02-14 Paul Zimmermann * sin.c, sin_cos.c, sinh.c, sqrt.c, tan.c, tanh.c, tests/Makefile.am, tests/tset_d.c, tests/tset_exp.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/ttan.c, tests/ttanh.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, ui_div.c, ui_pow_ui.c, ui_sub.c, add.c, mpfr.texi, set_d.c, set_q.c, set_str_raw.c: new coverage tests * hypot.c, inp_str.c, log.c, log10.c, log1p.c, log2.c, mpfr.texi, mpn_exp.c, mul_ui.c, next.c, pow.c, pow_si.c, pow_ui.c, rint.c, round_prec.c, set.c, tests/Makefile.am, tests/inp_str.data, tests/mpf_compat.h, tests/thypot.c, tests/tinp_str.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_ui.c, tests/tnext.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c: improved coverage test 2004-02-13 Paul Zimmermann * tests/tget_d.c, tests/tset_si.c: improved coverage test * tests/tget_str.c, get_str.c, gamma.c, tests/tgamma.c, exp3.c, tests/texp.c: improved test coverage 2004-02-13 Patrick Pelissier * tests/tadd1sp.c: Fix a bug in taddsp (Forget to check if random does not generate zero). 2004-02-13 Paul Zimmermann * tests/teq.c: improved editing style * cos.c, cosh.c, div_ui.c, tests/tdiv_ui.c: improved test coverage * eq.c, tests/teq.c: partly rewritten, and improved test coverage 2004-02-13 Vincent Lefevre * tests/tmul_2exp.c: Added tests for mpfr_mul_2si and mpfr_div_2si + corrections. * tests/tmul_2exp.c: Replaced mpfr_mul_2exp and mpfr_div_2exp by mpfr_mul_2ui and mpfr_div_2ui as the 2exp form is obsolete. 2004-02-13 Paul Zimmermann * tests/tfactorial.c: removed warnings 2004-02-13 Patrick Pelissier * check.c, cmp_abs.c, set.c, tests/Makefile.am, tests/tcmpabs.c, tests/texceptions.c, tests/tfits.c, tests/toutimpl.c: Add test for mpfr_cmpabs Add test for mpfr_fits_ Add test for internal dumping functions. Improve coverage test for exceptions / set / check. 2004-02-13 Paul Zimmermann * const_pi.c, tests/tconst_pi.c: improved coverage * AUTHORS: removed Kevin, added missing accent * agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp2.c, cmp_ui.c, const_euler.c, const_log2.c, mpfr.texi, tests/tagm.c, tests/tatanh.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_log2.c, uceil_exp2.c: improved coverage test 2004-02-12 Patrick Pelissier * dump.c, mpf2mpfr.h, mpfr.h: Rewrite (simplify) mpfr_dump. Change its proto. Fix mpf_dump macro in mpf2mpfr. * div.c, mul.c, sub.c, add.c: Remove MPFR_ASSERTN(0) and add MPFR_ASSERTD(last condition) instead. 2004-02-12 Paul Zimmermann * add.c, acosh.c, acos.c: improved coverage * tests/tgamma.c, gamma.c, tests/tfrac.c: improved cov. test * fma.c, tests/tfma.c, factorial.c, tests/tfactorial.c: improved coverage test * expm1.c, tests/texpm1.c: improved test coverage 2004-02-12 Patrick Pelissier * tests/tconst_log2.c, tests/tconst_pi.c: Improve coverage of const_pi and const_log2 (Test for prec > 20000). 2004-02-12 Paul Zimmermann * exp.c, tests/texp.c: fixed tiny bugs for corner cases improved test coverage 2004-02-12 Patrick Pelissier * tests/Makefile.am, tests/tadd1sp.c, tests/tcopysign.c, tests/tdim.c, tests/texp.c, tests/tminmax.c, tests/tmul_2exp.c, Makefile.am, add.c, add1sp.c, copysign.c, div_2ui.c, mpfr-impl.h, sqrt.c, sub.c: + Add mpfr_add1sp which provides addition when all the operands have the same precision. + Add new test files for mpfr_copysign and mpfr_min and mpfr_max. + Add test for mpfr_exp10 in tests/texp.c + Improve coverage of div_2ui.c and mul_2ui.c + Add a forgotten ASSERT in mpfr_sqrt 2004-02-12 Paul Zimmermann * exp2.c, tests/texp2.c: improved test coverage replaced mpfr_get_d1 by mpfr_get_si * erf.c, tests/terf.c: improved coverage test * tests/tsub.c: added new coverage test 2004-02-12 Patrick Pelissier * README.dev: Fix some mistakes. * README.dev: Add a description of the gcov tool. 2004-02-12 Paul Zimmermann * tests/tsub.c: now 100% of coverage of sub1.c * dim.c, tests/Makefile.am, tests/tdim.c: new test file for mpfr_dim 2004-02-11 Vincent Lefevre * gmp_op.c, tests/Makefile.am, tests/tgmpop.c: Ported bug fixes / tests of gmp_op.c to the 2.0 branch. * sub1.c, tests/tsub.c: Ported bug fixes / tests of mpfr_sub1 to the 2.0 branch. 2004-02-10 Vincent Lefevre * sqrt.c: Bug fix. 2004-02-09 Vincent Lefevre * tests/tfrac.c: Added missing #include's. * ChangeLog, NEWS: Update (2.0 branch). 2004-02-06 Vincent Lefevre * factorial.c, gamma.c, tests/tfactorial.c, tests/tgamma.c: Ported bug fixes / tests of mpfr_fac_ui and mpfr_gamma to the 2.0 branch. 2004-02-06 Patrick Pelissier * configure.in: Replace AS_HELP_STRING to AC_HELP_STRING (obsolete) * neg.c, next.c, out_str.c, pow.c, pow_si.c, pow_ui.c, powerof2.c, print_rnd_mode.c, random.c, random2.c, rint.c, round_prec.c, set.c, set_dfl_prec.c, set_exp.c, set_inf.c, set_q.c, set_si.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sgn.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub_ui.c, swap.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, volatile.c, acosh.c, add1.c, add_ui.c, agm.c, asinh.c, clear.c, clears.c, cmp.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, comparisons.c, const_pi.c, copysign.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, dump.c, exceptions.c, exp.c, exp10.c, exp2.c, exp3.c, expm1.c, extract.c, fma.c, get_exp.c, get_z_exp.c, init.c, inits.c, inp_str.c, isinf.c, isnan.c, isnum.c, log1p.c, mpfr-test.h, mpfr.texi, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c: Add forgotten copyright 2004 line. Add a small documentation about mpfr_sum. 2004-02-06 Vincent Lefevre * hypot.c, tests/thypot.c: Ported bug fixes / tests of mpfr_hypot to the 2.0 branch. * agm.c, tests/tagm.c: Ported bug fixes / tests of mpfr_agm to the 2.0 branch. 2004-02-06 Patrick Pelissier * tests/Makefile.am, tests/tsum.c, Makefile.am, mpfr-impl.h, mpfr.h, sum.c: Added mpfr_sum function. 2004-02-06 Vincent Lefevre * get_str.c, tests/tget_str.c: Ported bug fixes / tests of mpfr_get_str to the 2.0 branch. 2004-02-06 Patrick Pelissier * tests/texp.c, tests/tfma.c, tests/tfrac.c, tests/tgeneric.c, tests/tget_d_2exp.c, tests/tget_str.c, tests/tgmpop.c, tests/thypot.c, tests/tmul.c, tests/tout_str.c, tests/tpow3.c, tests/trint.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/tui_pow.c, sub_ui.c, swap.c, tan.c, tanh.c, tests/memory.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcan_round.c, tests/tconst_log2.c, tests/tdiv.c, tests/tests.c, tests/texceptions.c, uceil_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, version.c, volatile.c, set_dfl_prec.c, set_exp.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sgn.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub.c, sub1.c, sub1sp.c, sub_one_ulp.c, init2.c, inits.c, inits2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, longlong.h, minmax.c, mp_clz_tab.c, mpfr-gmp.c, mpfr-gmp.h, mpfr-impl.h, mpfr-test.h, mpn_exp.c, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, next.c, out_str.c, pow.c, pow_si.c, pow_ui.c, powerof2.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, round_prec.c, save_expo.c, set.c, set_d.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, erf.c, exceptions.c, exp.c, exp10.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fits_s.h, fits_u.h, fma.c, frac.c, gamma.c, get_d.c, get_exp.c, get_ld.c, get_si.c, get_str.c, get_ui.c, get_z_exp.c, hypot.c, init.c, Makefile.am, acinclude.m4, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, clears.c, cmp.c, cmp2.c, cmp_abs.c, cmp_d.c, cmp_si.c, cmp_ui.c, comparisons.c, configure.in, const_euler.c, const_log2.c, const_pi.c, copysign.c: + Better support of non IEEE doubles. + You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them). 2004-02-06 Vincent Lefevre * ChangeLog: Update. * frac.c, tests/tfrac.c, tests/tzeta.c, zeta.c: Ported bug fixes / tests of mpfr_frac and mpfr_zeta to the 2.0 branch. * from_Torbjorn, gammaPiAGMformula.c, mpfi.c, mpfi.h: (2.0 branch) Removed unused files. * NEWS: Added changes from version 2.0.1 to version 2.0.2 and updated MPFR URL (2.0 branch). * NEWS: Updated MPFR URL. * NEWS: Added the changes from version 2.0.1 to version 2.0.2. * README.dev: Added (2.0 branch): "3) Update the NEWS file.". * README.dev: Added: "3) Update the NEWS file.". * VERSION, mpfr.texi: Updated the branch for the future version 2.0.3 (bug-fix release). 2004-02-03 Paul Zimmermann * get_str.c, mpfr.texi, tests/tget_str.c: fixed bug in get_str (case pow2, rnd=up or down) 2004-01-30 Paul Zimmermann * tests/tzeta.c, zeta.c: fixed problem (s1 = s-1 inexact) * factorial.c, gamma.c, tests/tfactorial.c, tests/tgamma.c: fixed problem in gamma/factorial * tests/tagm.c, tests/thypot.c, agm.c, hypot.c: added new tests for agm and hypot (+ fixed bugs) 2004-01-29 Patrick Pelissier * mpfr.h: Add GMP_RND_MAX so that a for loop of the rounding modes looks like: for(int r = 0 ; r < GMP_RND_MAX ; r++) 2004-01-28 Patrick Pelissier * tests/tagm.c, tests/tdiv.c, tests/tget_d.c, tests/tmul.c, tests/tset_ld.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, get_d.c, mpfr-impl.h, set_d.c, set_ld.c, sub1sp.c, tests/tadd.c, tests/tadd_ui.c, uceil_exp2.c, ufloor_log2.c: Better supports of non IEEE-754 floats (don't use anymore ieee_double_extract if _GMP_IEEE is not set). 2004-01-28 Vincent Lefevre * frac.c: Added comments and a temporary fix. 2004-01-27 Paul Zimmermann * tests/tcbrt.c, tests/terf.c, tests/tgamma.c, tests/tsqrt.c, tests/tzeta.c, atan.c, cbrt.c, erf.c, tests/tatan.c: fixed bugs in atan cbrt erf added new hard-coded tests 2004-01-26 Paul Zimmermann * zeta.c: removed argument reduction in sin(Pi*s/2) [delegated to mpfr_sin] * tests/tzeta.c: print inputs of test2 in binary form commented out test for 0.8 (input is not exactly representable) 2004-01-26 Patrick Pelissier * tests/tzeta.c, zeta.c: + Internal functions of zeta are now declared as static. + Add new tests which fail. 2004-01-22 Paul Zimmermann * tests/terf.c, tests/tfrac.c, tests/thyperbolic.c, tests/trint.c, tests/tacosh.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcbrt.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, asin.c, atan.c, atanh.c, erf.c, exp_2.c, frac.c, mpfr-impl.h, tests/tacos.c, algorithms.tex, acos.c: added several hard-coded tests (and fixed bugs found) 2004-01-20 Patrick Pelissier * mpfr.texi: Fix tiny bug of Concept Index / Rounding Modes. * mpfr.texi: Update minor things. 2004-01-20 Paul Zimmermann * mpfr.texi: minor change in contributions * mpfr.texi: added Patrick in the main contributors 2004-01-20 Vincent Lefevre * mpfr.texi: Fixed spelling mistake. 2004-01-20 Patrick Pelissier * mpfr.texi: Reorder the documentation. 2004-01-19 Patrick Pelissier * tests/tset_d.c, tests/tmul_2exp.c, tests/tcmp_d.c: Update tests to remove the use of double when possible. * sub1sp.c: Reenable the cmp between inexact flags. * tests/texceptions.c, set_rnd.c, mpfr.h: Add mpfr_get_default_rounding_mode. Add the tests for mpfr_get/set_default_rounding_mode. Fix mpfr_set_default_rounding_mode. 2004-01-19 Vincent Lefevre * get_str.c: _mpfr_ceil -> mpfr_ceil_double + check for overflow. * mpn_exp.c, get_str.c, Makefile.am: Moved the mpfr_mpn_exp function to a new file "mpn_exp.c" as it is used by both "get_str.c" and "set_str.c". 2004-01-16 Patrick Pelissier * tests/tdiv.c: Update it to remove the use of float/double. 2004-01-15 Patrick Pelissier * from_Torbjorn, get_str.c, tests/tget_str.c: Add a new check in tget_str.c. * mpfr-impl.h: Add new macros. * zeta.c: Readd stdio.h in case of DEBUG mode. * sub1sp.c: Optimize a few sub1sp by removing the normalisation in case of exact rounding and by removing the calcul of the rounding mode in case of exact rounding. 2004-01-15 Paul Zimmermann * get_str.c: fixed problem in case m=0 and b=2^k (lost bits from 1st digit were not taken into account) * get_str.c, mpfr-impl.h, set_str.c: mpn_exp -> mpfr_mpn_exp 2004-01-15 Vincent Lefevre * gammaPiAGMformula.c: Removed gammaPiAGMformula.c (old version, no longer used). 2004-01-14 Vincent Lefevre * get_ld.c, hypot.c, init2.c, log.c, log10.c, log2.c, reldiff.c, save_expo.c, set_f.c, set_prc_raw.c, set_prec.c, set_str.c, ui_div.c, zeta.c, const_log2.c, cos.c, cosh.c, div_ui.c, eq.c, exp.c, exp_2.c, cbrt.c, const_euler.c: Changed some error messages into assertions. Removed some useless #include's. 2004-01-14 Patrick Pelissier * tests/tasin.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv_ui.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tlog.c, tests/tlog10.c, tests/tmul.c, tests/tround_prec.c, tests/tset_q.c, tests/tsin.c, tests/tsin_cos.c, tests/reuse.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c: Continue to port tests so that they don't use double. 2004-01-09 Patrick Pelissier * tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/tsub.c, tests/tsub_ui.c, tests/tsqrt_ui.c, tests/tgmpop.c, tests/tsqrt.c, tests/cmp_str.c, tests/tadd.c, tests/tcbrt.c, tests/tcheck.c, tests/Makefile.am, mpfr-test.h: Update the tests to reduce the use of floats. * mpfi.c, mpfi.h: Remove unused files mpfi.c and mpfi.h * tests/tabs.c: Update test. Don't use floats anymore. * mpfr-test.h: Add RND_RAND Add SIGN_RAND * isinteger.c: + Simplify the signular code. + Fix potential type errors. (Used mpfr_prec_t instead of mpfr_uexp_t). 2004-01-08 Patrick Pelissier * gmp_op.c, tests/Makefile.am, tests/tgmpop.c: + Add a new test file for checking functions mpfr_add/sub/mul/div_q/z (from gmp_op.c). + Fix bugs of mpfr_add/sub/mul/div_q/z. 2004-01-07 Vincent Lefevre * mpfr.texi: -0 -> @minus{}0. * mpfr.texi: Specifications for mpfr_min and mpfr_max. * mpfr-impl.h: Updated MPFR_INTPREC_MAX definition, as mpfr_prec_t has changed. 2004-01-07 Patrick Pelissier * tests/tsub1sp.c: Add a new test between sub1 and sub1sp. * minmax.c: Fix copyright line. 2004-01-07 Paul Zimmermann * sub1.c, tests/tsub.c: fixed wrong sign of inexact flag 2004-01-07 Vincent Lefevre * mpfr-impl.h: Added casts to size_t so that integers representing a size get this type as soon as possible. 2004-01-07 Patrick Pelissier * sub1sp.c: Use MPFR_ASSERTN(0) instead of abort. * mpfr.h: Fix the definition of MPFR_PREC_MAX 2004-01-07 Paul Zimmermann * tests/tsub.c: added new test to check bug repair * sub1.c: fixed bug (wrong inexact flag) for rounding to nearest when sh=0 and first trailing limbs coincide 2004-01-07 Patrick Pelissier * add.c, sub.c: Fix copyright lines (2004). * tests/tsub1sp.c, Makefile.am, add.c, sub.c, sub1sp.c, tests/Makefile.am: Fix bug of sub1sp.c on sparck. Add new tests for sub1sp. Reenable sub1sp for mpfr_add / mpfr_sub. * print_raw.c: Change output format of mpfr_print_mant_binary. 2004-01-07 Vincent Lefevre * cmp2.c: Clarified comment. 2004-01-06 Vincent Lefevre * mpfr.h: Updated copyright line. * tests/tversion.c, Makefile.am, mpfr.h, mpfr.texi, tests/Makefile.am, update-version, version.c: Added mpfr_version function and test. * mpfr.texi: The mpfr_print_rnd_mode return type is const char *, not char *. 2004-01-06 Patrick Pelissier * tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_z.c: Update the copyright line of the source files to 2004. * tests/tset_z.c, tests/tset_q.c, tests/tset_si.c, tests/tset_f.c: Add the tests to check if 0 for signed class with unsigned 0 is set to 0+. 2004-01-05 Paul Zimmermann * mpfr.texi: specified sign of zero in mpfr_set_* * tests/tadd.c: removed test using denorms 2003-12-22 Patrick Pelissier * acos.c, add.c, sub.c: Disable sub1sp in add.c and in sub.c since it provides some bugs on spark (Log/acos/asin and atan tests failed but not tsub or tsub1sp). * mpfr.h: Change comment. * init2.c, mpfr-impl.h, mpfr.h: + Rearrange the code to be more "compatible" with broken systems. + Preprocessing checks are done in init2.c since GMP constants can't be used in preprocessing #if. * sub1sp.c: Use MPFR_UNSIGNED_MINUS_MODULO when needed. * clears.c, inits.c, inits2.c: Explicit support for K&R C since ansi2knr can't be used. 2003-12-20 Kevin Ryde * tests/tests.c (tests_rand_start): Use gmp_randinit_default not the RANDS macro, to cope with new non-seeding MT setup by RANDS. 2003-12-19 Patrick Pelissier * get_ui.c, init2.c, mpfr-impl.h, mpfr.h: Support of MPFR_PREC_FORMAT. Fix a bug in case mp_prec_t = unsigned short. 2003-12-19 Vincent Lefevre * update-version: Update due to a change in mpfr.h. 2003-12-19 Patrick Pelissier * VERSION, mpfr.h, mpfr.texi: + Modify Version to 2.1.0. + Add MPFR_VERSION_MAJOR, MPFR_VERSION_MINOR and MPFR_VERSION_PATCHLEVEL in mpfr.h + Add MPFR_VERSION_NUM and MPFR_VERSION to check Mpfr version. * sub1sp.c, tests/mpf_compat.h, ui_div.c, ui_sub.c, mpfr-impl.h: Remove one warning in mpf_compat.h Create a new macro: MPFR_RET_NEVER_GO_HERE Modify ui_sub/div to use it to make Insure++ happy. 2003-12-19 Paul Zimmermann * TODO: updated mpfr_root entry 2003-12-19 Vincent Lefevre * update-version, README.dev: Added update-version script to update the MPFR version. 2003-12-19 Paul Zimmermann * TODO: removed one item, added one 2003-12-16 Paul Zimmermann * Makefile.am: removed unused target "tests" * configure.in: removed AC_DEFINE(hpux) [not used any more] 2003-12-15 Kevin Ryde * Makefile.am (EXTRA_DIST): Add round_raw_generic.c. 2003-12-15 Patrick Pelissier * tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tget_d_2exp.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tinits.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tnext.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsgn.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub1sp.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, round_prec.c, round_raw_generic.c, set_ld.c, set_ui.c, sub1sp.c, tests/memory.c, tests/mpf_compat.h, tests/reuse.c, tests/rnd_mode.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcheck.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_d.c, tests/tcmp_ui.c, tests/tcomparisons.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/terf.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, asin.c, atan.c, cbrt.c, div.c, fits_u.h, gamma.c, get_d.c, mpfr-impl.h, mpfr-test.h: + Optimize a few div.c + Remove some warnings in asin.c, atan.c. + Include limits.h before gmp-impl.h in mpfr-impl.h + mpfr-tests.h doesn't include anumore standard include files. + Test files include only standard includes and mpfr-tests.h. + Add some forgotten mpfr_clear in mpf[r]_compat. + Remove some warnings in the tests. 2003-12-15 Paul Zimmermann * tests/tlog.c: removed unused arguments * configure.in: removed AC_DEFINE(__STDC__) for OSF * configure.in: removed MISCFLAGS (not used any more) 2003-12-14 Kevin Ryde * acinclude.m4: Quote AC_DEFUN names, for automake 1.8. 2003-12-10 Patrick Pelissier * powerof2.c, sub1sp.c, tests/tsub1sp.c: + Add a new test in case of underflow. + Fix bug in case of underflow for sub1 / sub1sp (mpfr_powerof2 could be called with inalid numbers). 2003-12-09 Patrick Pelissier * print_raw.c, sub1sp.c: + Fixed bugs of mpfr_print_mant_binary on 64 bits CPU (1L instead of 1). + Fixed bugs of mpfr_sub1sp on 64-bits CPU (mp_limb_t instead of int). * tests/tset_d.c, tests/tset_str.c, tests/tsin.c, tests/tsqrt.c, tests/tsub.c, tests/tsub1sp.c, tests/ttan.c, tests/ttrunc.c, tests/tui_pow.c, sub1sp.c, tests/Makefile.am, tests/tabs.c, tests/tadd.c, tests/tconst_log2.c, tests/tdiv_ui.c, tests/tmul.c, tests/tmul_ui.c, tests/tpow.c, Makefile.am, add.c, clear.c, init2.c, mpfr-impl.h, mul.c, print_raw.c, round_prec.c, set_prec.c, sub.c, sub1.c: + Add function mpfr_print_mantissa_binary, for debugging reason. + Rename MPFR_ALLOC_SIZE in MPFR_MALLOC_SIZE. + Add conditionnal -DSMALL directive in mpfr-impl.h. + Add new function: sub1sp. Substraction in case of all the ops have the same prec. + Add its test (tsub1sp). + Modify a few the tests to avoid comparing mpfr results with double, for portability reason. 2003-12-05 Vincent Lefevre * Makefile.am, exp10.c, mpfr.h, mpfr.texi: Added mpfr_exp10 function. 2003-12-01 Patrick Pelissier * uceil_log2.c, ufloor_log2.c, mpfr-impl.h, neg.c, powerof2.c, set_d.c, set_ld.c, uceil_exp2.c, exceptions.c, get_d.c: Port all the IEEE dependent remaining functions so that it uses a generic way to compute the result if it detects that the double is not in IEEE format ( _GMP_IEEE_FLOATS == 0). MPFR now should work well on non-IEEE machines. 2003-12-01 Paul Zimmermann * TODO: added suggestion for 2 new functions * TODO: added entry (portability) 2003-11-25 Patrick Pelissier * mpfr-impl.h, sub1.c, cmp.c, add1.c: Optmize a few add1.c/sub1.c by using MPFR_LIKELY / MPFR_UNLIKELY. 2003-11-21 Patrick Pelissier * pow.c, pow_ui.c, round_prec.c, set_si.c, set_str.c, sub1.c, zeta.c, const_pi.c, cos.c, eq.c, exp3.c, exp_2.c, factorial.c, fits_s.h, fits_u.h, gamma.c, inp_str.c, isinteger.c, mul.c: Remove some warnings and potential errors (Comparaison between signed and unsigned). * tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_pow.c, tests/tabs.c, tests/tadd.c, tests/tcbrt.c, tests/tcheck.c, tests/tcmp.c, tests/tcmp_d.c, tests/tcos.c, tests/tdiv.c, tests/terf.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tgamma.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, Makefile.am, check.c, clear.c, mpfr-impl.h, tests/Makefile.am, tests/reuse.c: + Add new internal function: mpfr_check. + Add the corresponding test file. + Translate mpfr_set_d to mpfr_set_str / mpfr_set_ui in the tests for portability reasons. 2003-11-21 Vincent Lefevre * mpfr.texi: Updated month: October -> November. * README: Updated list of files. 2003-11-21 Paul Zimmermann * tests/tui_pow.c: use integers instead of double's 2003-11-21 Vincent Lefevre * README.dev, TODO: Notes about not using mpfr_set_d in the tests. 2003-11-19 Vincent Lefevre * ChangeLog: Update (2.0.2 branch). * tests/tui_pow.c, pow.c: Ported Paul's patch (fix and tests) concerning the pow.c bug (in case exact result) to the 2.0.2 branch. 2003-11-19 Patrick Pelissier * set_ui.c, mul.c, pow.c: Optimization of mpfr_mul. Tiny optimization of mpfr_pow (The case y=0 has been put inside the MPFR_ARE_SINGULAR block). Tiny optimisation of mpfr_set_ui. 2003-11-18 Paul Zimmermann * pow.c: fixed bug in case exact result * tests/tui_pow.c: added new tests 2003-11-18 Patrick Pelissier * round_raw_generic.c: Optimize round_raw_generic by reducing the number of redundant tests. 2003-11-17 Patrick Pelissier * tests/Makefile.am, mul.c, round_prec.c, round_raw_generic.c, set_str.c, sub1.c, exceptions.c, get_d.c, get_str.c, mpfr-impl.h, mpfr.h, div.c: * Optimize a few div.c and mul.c. * Reorder the tests. * Remove mpfr_round_raw_generic and create 4 new functions which replace it, for efficiency reasons. * Add round_raw_generic.c which is the generic file to create the 4 new functions. * Add new MACRO: MPFR_RNDUTEST_OR_RNDDNOTTEST which is a faster way to check if (rnd_mode==GMP_RNDU && test) || (rnd_mode==GMP_RNDD && !test). * Add new MACRO: MPFR_UNSIGNED_MINUS_MODULO. * Optimize mpfr_can_round_raw. * Some new defines in mpfr.h to increase compatibility with MPFR v2.0.1 and above. 2003-11-14 Vincent Lefevre * pow_si.c, tests/tpow.c: Ported the pow_si patch (and test) to the 2.0.2 branch. 2003-11-14 Paul Zimmermann * pow_si.c, tests/tpow.c: fixed bug in pow_si (exact result, case z = x) 2003-11-14 Vincent Lefevre * pow.c, tests/tui_pow.c, tests/tzeta.c: Ported the pow.c precision patch to the 2.0.2 branch (with the tests). 2003-11-14 Paul Zimmermann * tests/tzeta.c: added test to check bug fix (bug was in mpfr_pow) * tests/tui_pow.c: added new test to check for bug fix (output precision > input precisions) * zeta.c: just improved editing style * pow.c: fixed bug for output precision > max(input precisions) 2003-11-14 Vincent Lefevre * tests/tset_ld.c: Ported the gcc-3.3 bug detection patch to the trunk. * tests/tset_ld.c: Detect optimization bug of gcc 3.3 on Alpha to avoid a test failure. 2003-11-11 Kevin Ryde * tests/tests.c (tests_rand_start): Use gmp_randinit_default not the RANDS macro, to cope with new non-seeding MT setup by RANDS. 2003-11-07 Patrick Pelissier * add1.c: Fix a stupid bug (diff_exp is not equal to the difference of prec) 2003-11-07 Vincent Lefevre * init2.c: Initialize the exp field. 2003-11-07 Patrick Pelissier * add1.c, copysign.c, div.c, div_2si.c, div_2ui.c, exceptions.c, extract.c, get_d.c, get_exp.c, get_str.c, init2.c, isinteger.c, mpfr-impl.h, mpfr.h, mul.c, mul_2si.c, mul_2ui.c, set_prec.c, set_str_raw.c, sub1.c, swap.c: Some minor optimizations. Optimization of mul.c / sub1.c. Some clean up in the header files. 2003-11-05 Patrick Pelissier * pow.c, pow_si.c, pow_ui.c, rint.c, set.c, sin.c, sin_cos.c, sinh.c, sub.c, sub1.c, swap.c, tan.c, tanh.c, ui_div.c, ui_sub.c, zeta.c, exp2.c, expm1.c, fma.c, gamma.c, gammaPiAGMformula.c, get_z_exp.c, hypot.c, log.c, log10.c, log1p.c, log2.c, mpfr-impl.h, mpfr.h, mul.c, mul_ui.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp_abs.c, cmp_ui.c, copysign.c, cos.c, cosh.c, div.c, div_ui.c, erf.c, exp.c, acos.c, acosh.c, add.c: Fix some bugs (Use MPFR_ASSERT(1) instead of MPFR_ASSERT(0)) Optimize swap.c and copysign.c. * cmp2.c, mpfr-impl.h, round_prec.c, set.c, sub1.c: Optimize mpfr_prec_round. Optimize mpfr_set (Case of both src & dest have the same precision). Start optimizing mpfr_sub1. * set_ui.c, sgn.c, sqrt.c, sub.c, sub1.c, tests/Makefile.am, tests/tsgn.c, Makefile.am, add.c, add1.c, cmp_ui.c, mpfr-impl.h, mpfr.h, mul.c, set.c: Add a real function for mpfr_sgn (not a call to mpfr_cmp_ui_2exp). Add a test for mpfr_sgn. Change the proto of mpfr_add1 and mpfr_sub1 by removing the last arg. Simplify the logic of the sign in mpfr_sub1. Tiny speed up for cmp/set/sqrt. mpfr-impl auto include all the needed local header files (gmp, gmp-impl, mpfr). 2003-11-04 Vincent Lefevre * pow_ui.c: Merged the mpfr-2-0-2-branch pow_ui.c changes to the trunk. * pow_ui.c: Overflow on err (which is now unsigned) avoided, simplified its computation, added some asserts, fixed the underflow check (the cast to double was useless and could be inexact). * tests/tacosh.c: Merged the check_inf test to the 2.0.2 branch. * tests/tacosh.c: The check_inf test wasn't called. Added 2 missing mpfr_clear and \n. 2003-11-04 Patrick Pelissier * log2.c, minmax.c, mpfr-impl.h, mpfr-test.h, mpfr.h, mul.c, rint.c, round_prec.c, set_inf.c, set_str.c, set_str_raw.c, sin_cos.c, sub.c, tests/reuse.c, tests/tacosh.c, tests/tests.c, tests/texp2.c, tests/thyperbolic.c, tests/tui_pow.c, zeta.c, acos.c, acosh.c, add.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, const_euler.c, const_log2.c, const_pi.c, cos.c, cputime.h, dim.c, div.c, div_ui.c, erf.c, exp.c, exp2.c, exp_2.c, expm1.c, fma.c, gamma.c, gammaPiAGMformula.c, get_str.c, hypot.c, log.c, log10.c, log1p.c: + Remove MPFR_CLEAR_NAN and MPFR_CLEAR_INF. Only use MPFR_CLEAR_FLAGS. MPFR_SET_INF, MPFR_SET_ZERO and MPFR_SET_ZERO must clear the flags before setting them. + Add a new test in tacosh.c : check Inf / Nan flags. + Use MPFR_IS_SINGULAR in all the remaining files. + Fix the use of MPFR_CLEAR_FLAGS. + mpfr-impl.h auto include gmp.h, gmp-impl.h, mpfr.h and limits.h. + Rename _PROTO to _MPFR_PROTO, and remove _GMP_PROTO. + Add MPFR_INT_SIGN macro. + Encapsulate a few more the sign. 2003-11-04 Vincent Lefevre * acosh.c: Special cases rewritten. 2003-10-30 Vincent Lefevre * log1p.c: MPFR_RET_NAN -> MPFR_RET(0). 2003-10-28 Patrick Pelissier * tests/tpow.c, sin.c, sinh.c, sqrt.c, sub.c, sub_one_ulp.c, tan.c, tanh.c, ui_div.c, ui_sub.c, zeta.c, mul.c, mul_ui.c, next.c, pow.c, pow_si.c, pow_ui.c, round_prec.c, set.c, set_si.c, set_ui.c, frac.c, gamma.c, gammaPiAGMformula.c, hypot.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpfr-impl.h, mpfr.h, eq.c, erf.c, exp.c, exp2.c, expm1.c, fma.c, cmp.c, cmp2.c, cmp_abs.c, cos.c, cosh.c, div.c, acosh.c, add.c, add1.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, acos.c: Use of MPFR_UNLIKELY and MPFR_IS_SINGULAR for fast detection of special values (Nan, Inf or Zero). Start to encapsulate the sign to be independant of the reprensation (Must be 1 or -1). 2003-10-27 Patrick Pelissier * init2.c, log.c, mpfr-impl.h, mpfr.h, rint.c, round_prec.c, set.c, set_d.c, set_prc_raw.c, set_prec.c, set_str.c, set_str_raw.c, sqrt_ui.c, sub_ui.c, ui_div.c, ui_sub.c, urandomb.c, add.c, add_ui.c, agm.c, clear.c, div.c, exceptions.c, extract.c, get_d.c, get_si.c, get_str.c, get_ui.c: Change the internal format of MPFR: ZERO, INF and NAN have special values of exp. Rename MPFR_ESIZE in MPFR_LIMB_SIZE. Rename MPFR_ABSZISE in MPFR_ALLOC_SIZE. Rename MPFR_INIT in MPFR_TMP_INIT (INIT1 too). "mpfr.h" includes if GMP isn't detected. Change the way of detecting stdio.h (To check). Use mpfr namespace for new definitions in "mpfr.h". 2003-10-27 Vincent Lefevre * tests/thyperbolic.c: Fixes for thyperbolic.c merged to the 2.0.2 branch. * tests/thyperbolic.c: Another fix, for acosh(-INF). * tests/thyperbolic.c: Fixed exit status. 2003-10-21 Vincent Lefevre * ChangeLog: Update. * TODO, const_log2.c, const_pi.c, mpfr.h, tests/trint.c: Merged the mpfr-2-0-2-branch changes to the trunk. * const_log2.c, const_pi.c, mpfr.h, TODO: Fixed the mpfr_round bug (the mpfr_round macro hadn't been updated). The ternary value wasn't always set in const_log2.c and const_pi.c. Updated TODO. * tests/trint.c: Value of y is displayed when a test fails. * tests/trint.c: More tests (showing a bug for mpfr_round). * tests/trint.c: More tests for the rounding-to-integer functions. 2003-10-20 Vincent Lefevre * gmp_op.c, mpfr.texi, rint.c, tests/trint.c: Merged the mpfr-2-0-2-branch changes to the trunk. * gmp_op.c: Wrong comment updated. * rint.c, tests/trint.c, mpfr.texi: Major update of the function mpfr_rint, including a small semantics change to behave like the C function rint (unless the result is not representable); as a consequence, mpfr_round now calls mpfr_rint with the NEAREST_AWAY internal (to rint.c) rounding mode. Manual updated to reflect this change. 2003-10-17 Vincent Lefevre * erf.c, tests/tasin.c, tests/terf.c, tests/tgamma.c, tests/trint.c: Merged the mpfr-2-0-2-branch changes to the trunk. * erf.c, tests/terf.c: Fixed ternary value bugs and added tests. 2003-10-16 Vincent Lefevre * tests/tasin.c, tests/tgamma.c: Added some necessary #include's. * tests/trint.c: Added a test against the libc (compiled and performed only when __STDC_VERSION__ >= 199901L), showing a difference between mpfr_rint and the C rint function (the behavior of mpfr_rint will change and the manual will be updated). * tests/trint.c: Added mpfr_rint tests (as the behavior of this function will change). * README.dev: Update. * VERSION: Updated version on trunk. * ChangeLog: Update. * get_d.c, set_d.c: Fixed several bugs. * get_d.c: Added XDEBUG support (like in set_d.c). 2003-10-15 Vincent Lefevre * mpfr.texi: Replaced all non-ASCII characters by an equivalent 7-bit sequence to support unpatched texinfo.tex files. 2003-10-15 Paul Zimmermann * tests/reuse.c: removed #define DEBUG (turned on accidentally) 2003-10-15 Vincent Lefevre * BUGS: Bug on the ternary value was fixed by Paul Zimmermann on 2003-10-14. 2003-10-14 Paul Zimmermann * mpfr.texi: added preamble about ternary flag for special functions * tests/reuse.c, tests/tacos.c, tests/tagm.c, tests/tasin.c, tests/tatan.c, tests/terf.c, tests/texp.c, tests/tgamma.c, tests/tgeneric.c, tests/thypot.c, tests/tzeta.c: now uses #include "tgeneric.c" everywhere (and modified test_generic to check also the inexact flag) * tests/tui_div.c: check_nan() is back * tests/tlog.c: removed old unused code * tests/thyperbolic.c: fixed tests for x=0 removed composition tests (were already in-between #if 0 ... #endif) * pow.c, pow_si.c, pow_ui.c, sin.c, sinh.c, sqrt.c, tan.c, tanh.c, ui_pow_ui.c, zeta.c, factorial.c, gamma.c, hypot.c, log.c, log10.c, log1p.c, log2.c, asinh.c, atan.c, atanh.c, const_euler.c, const_log2.c, const_pi.c, cos.c, cosh.c, erf.c, exp2.c, expm1.c, acos.c, acosh.c, agm.c, asin.c: replaced mpfr_can_round (approx, err, rnd1, GMP_RNDN, prec) by mpfr_can_round (approx, err, rnd1, GMP_RNDZ, prec + 1) which in addition guarantees a correct inexact flag * TODO: added new items (version number, rounding modes) * README.dev: added comment about --enable-alloca=debug 2003-10-13 Paul Zimmermann * BUGS: added section "Problems due to compiler bugs" * exp3.c, exp_2.c: change in can_round calls to get correct inexact flag for rounding to nearest 2003-10-10 Paul Zimmermann * pow.c, tests/tpow.c: fixed bug in mpfr_pow found by Ming J. Tsai (overflow) 2003-10-08 Vincent Lefevre * acos.c, asin.c, atan.c: Removed useless inclusion of standard headers and some #ifdef DEBUG code. Partial reindentation. * strncasecmp.c: Added a #include because size_t is used. 2003-10-07 Paul Zimmermann * tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcmp.c, tests/tconst_log2.c, tests/tdiv.c, tests/tfactorial.c, tests/tfrac.c, tests/tgamma.c, tests/tget_str.c, tests/tlog10.c, tests/tlog1p.c, tests/tpow3.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsub.c, tests/tui_pow.c, tests/tzeta.c, tests/tsin.c: reduced test time 2003-10-06 Paul Zimmermann * round_prec.c: fixed comment of mpfr_round_raw_generic * add1.c, extract.c, get_si.c, get_ui.c: replaced ABSSIZE by ESIZE (ABSSIZE is the allocated size, and should be used only in functions init, set_prec, round_prec) * tests/tadd.c: fixed bug in allocation for in-place operation * asin.c, atan.c: inexact flag should now be correct for directed rounding fixed a bug for mpfr_atan(-Inf) [gave +Pi/2 instead of -Pi/2] * tests/tatan.c: added test for atan(-Inf) * set_ld.c: use macros to avoid possible problem with float input * TODO: new proposal for mpfr_can_round * mpfr.texi: mpfr_mul_2exp/mpfr_div_2exp are not obsolete 2003-10-05 Vincent Lefevre * mpfr.texi: Clearer mpfr_eq documentation (thanks to Kevin Ryde for the remark). 2003-10-03 Vincent Lefevre * mpfr-impl.h: MPFR_ASSERTN rewritten to avoid "statement with no effect" warnings with gcc when the assertion is always true. * add1.c: Optimization (thanks to Patrick Pelissier), as the allocated size may be larger than the size used by the significant bits. * mpfr.texi, INSTALL: Updated installation notes. * cmp_abs.c, mpfr.texi: Infinities are now accepted in mpfr_cmpabs. Updated its definition in the source (no longer sign(abs(b) - abs(c))). 2003-10-02 Vincent Lefevre * mpfr.texi: Use @url{} for URLs. * mpfr.texi: As suggested by PZ: o documentation of mpfr_fits_* functions moved to the section on conversions; o grouped some mpfr_pow special cases; o explanation concerning the meaning of rnd in mpfr_frac. * tests/tset_str.c, tests/tset_z.c, tests/tsinh.c, tests/tsqrt.c, tests/tsub.c, tests/ttanh.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tset.c, tests/tset_d.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/texpm1.c, tests/tfma.c, tests/tget_str.c, tests/thypot.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/terf.c, tests/texceptions.c, tests/texp.c, mpfr.h, mpfr.texi, print_raw.c, set_str_raw.c, tests/tacosh.c, BUGS, mpfr-impl.h: Updated documentation. In particular, mpfr_set_str_raw renamed as mpfr_set_str_binary. This function and mpfr_print_binary are now internal functions. mpfr_print_binary no longer prints the non-significant 0 bits. Updated the source to match the manual. mpfr_print_binary has been completely rewritten (now directly prints to stdout, without using an intermediate string). In mpfr_set_str_binary, replaced atol by strtol + error checking. 2003-10-02 Paul Zimmermann * mpfr.texi: added paragraph on support/grants added help for mpfr_erf 2003-10-02 Vincent Lefevre * mpfr.texi: Make node titles match section titles, and updated menus and xrefs. Added a line break after @samp{uninstall}. 2003-10-01 Vincent Lefevre * TODO, const_log2.c, const_pi.c, mpfr.h, mpfr.texi, zeta.c: Corrections in the MPFR manual (PZ & VL). Functions mpfr_const_pi, mpfr_const_log2 and mpfr_zeta now return a ternary value. Updated TODO file. 2003-09-30 Vincent Lefevre * BUGS: Added a bug related to the ternary value and worst cases. * pow_si.c, pow_ui.c: Added exponent range support. * mpfr.texi: Corrections up to Section 5.6 (PZ & VL). * get_z_exp.c: Re-added the assert on the exponent, but replacing MPFR_EMIN_MIN by MP_EXP_T_MIN (this makes more sense): an assertion failed would mean that the exponent is not representable (an undefined behavior in the ISO C standard). If need be, we could choose to return MP_EXP_T_MIN in such a case, or perhaps MP_EXP_T_MAX to signal an error. The mantissa would still be meaningful. 2003-09-30 Patrick Pelissier * TODO: Update TODO & mpfr_set_prec. 2003-09-29 Vincent Lefevre * mpfr.texi: Corrections up to Section 4. * AUTHORS: Added authors Kevin Ryde and Patrick Pelissier. * INSTALL: Removed "known problems" that are no longer problems. 2003-09-26 Vincent Lefevre * BUGS: Removed bugs related to the tests and to the exponents as they no longer occur. Updated some potentials bugs. 2003-09-25 Vincent Lefevre * mpfr-impl.h, mpfr.h, mpfr.texi, tests/tinits.c: Removed mpfr_inits, mpfr_inits2, mpfr_clears from the documentation. Moved their prototypes to mpfr-impl.h (internal functions until decided otherwise). 2003-09-25 Patrick Pelissier * const_log2.c, const_pi.c, generic.c, atan.c: Modify 'r' arg of GENERIC from int to long (min 32 bits). 2003-09-25 Vincent Lefevre * mpfr.texi: 8-bit ISO-8859-1 characters + consistent spelling. * ChangeLog: Update. * tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/terf.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/tfactorial.c, tests/tfma.c, tests/tfrac.c, tests/tgamma.c, tests/mpf_compat.h, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tagm.c, tests/tasin.c, tests/tatan.c, tests/tcan_round.c, tests/tcbrt.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_d.c, tests/tcmp_ui.c, tests/tconst_log2.c: Changed the remaining stderr to stdout. 2003-09-24 Vincent Lefevre * tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_si.c: Changed some stderr to stdout. * comparisons.c, mpfr.texi, TODO: Added documentation for mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p, mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p and mpfr_unordered_p. * TODO, tests/Makefile.am, tests/tcomparisons.c: Added tests for mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p, mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p, mpfr_unordered_p. * TODO, tests/tnext.c: Added a few more tests (involving mpfr_nexttoward). The tests for the mpfr_nextabove, mpfr_nextbelow and mpfr_nexttoward functions should now be sufficient. * tests/Makefile.am, tests/tnext.c, next.c: Added generic tests for mpfr_nextabove and mpfr_nextbelow. Fixed a bug in next.c related to assertion checks. * tests/tset_str.c, TODO, set_str.c: Accept (case-insensitive) NaN and Inf in input for bases <= 16 for backward compatibility in these bases (for bases > 16, we cannot guaranty backward compatibility with the current wanted behavior). Added tests. 2003-09-24 Paul Zimmermann * TODO: added one item from Kevin 2003-09-24 Vincent Lefevre * texinfo.tex: Added support for some top-bit-set characters in the .texi source. * mpfr.texi: Added information on special values for mpfr_pow. 2003-09-24 Paul Zimmermann * Makefile.am: added MAKEINFOFLAGS = --enable-encoding to get 8-bit characters in mpfr.info * AUTHORS, mpfr.texi: used ISO-8859-1 in AUTHORS and @`e, @"o in mpfr.texi (waiting for code for ISO-8859-1 compatibility) 2003-09-24 Kevin Ryde * acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Remove conftest* temporary files. 2003-09-24 Vincent Lefevre * set_str.c: Fixed comparisons (cases @NaN@ and @Inf@). 2003-09-23 Paul Zimmermann * TODO: two updates 2003-09-22 Vincent Lefevre * mpfr.texi: Updated mpfr_pow description. 2003-09-22 Paul Zimmermann * print_rnd_mode.c, set_str.c, set_str_raw.c: changed __gmp_const into const in *.c [Torbjo"rn: Please use __gmp_const just in user header files, plain C const in other files.] 2003-09-22 Vincent Lefevre * TODO: Removed - allow the ISO C "P" exponent separator for base 16 in input functions (already done). * TODO, tests/tset_ld.c: Implemented the following: - use (LDBL_MAX/2)+(LDBL_MAX/4*LDBL_EPSILON) instead of loop in tset_ld to get largest power of 2 that fits in a long double * sub1.c: Added some MPFR_ASSERTN and improved a comment. * tests/texp.c, tests/tget_str.c: Avoid string literals longer than 509 characters (ISO C89 limit). * tests/texceptions.c (test_set_underflow, test_set_overflow): Cleaner fix (for pre-C99 compilers). 2003-09-22 Kevin Ryde * tests/texceptions.c (test_set_underflow, test_set_overflow): Use "static" on "r" to allow non-constant initializers. 2003-09-21 Kevin Ryde * mpfr.texi (Converting Floats): In mpfr_get_d_2exp, the rounding mode is given, it doesn't use the default mode. * mpfr.texi (Assigning Floats): In mpfr_set_str and mpfr_set_str_raw, show "const" not "__gmp_const". (Simultaneous Float Init & Assign): In mpfr_init_set_str, ditto. * mpfr.texi (Rounding Modes): Add blank line around @itemize. * mpfr.texi (Miscellaneous Float Functions): In mpfr_urandomb and mpfr_random, use @math and @le. 2003-09-20 Kevin Ryde * mpfr.texi (Assigning Floats): In mpfr_set_*, remove remarks about long being rounded (this should be clear already), about rounding of decimal double constants like 0.1 (too basic to appear here), (Converting Floats): In mpfr_get_d_2exp, remove remark about exp exceeding IEEE exponent range (should be clear already). 2003-09-19 Paul Zimmermann * TODO: updated items: removed conversion from/to float (obsolete) * TODO, zeta.c: got rid of dependency in mpfr_zeta * tests/tround_prec.c, tests/tzeta.c, round_prec.c, tests/tacos.c, tests/tasin.c, tests/texp.c, tests/tgamma.c, exp_2.c, get_str.c, log_b2.h, mpfr.h, mpfr.texi, cos.c: mpfr_round_prec is now obsolete new function mpfr_prec_round replaces it 2003-09-18 Vincent Lefevre * mpfr-impl.h: Fix for C implementations with 16-bit int. 2003-09-18 Patrick Pelissier * mpfr-impl.h: Optimization of macros MPFR_IS_INF, MPFR_IS_NAN and MPFR_IS_FP 2003-09-18 Vincent Lefevre * set_ld.c: Removed a comment that should have been removed in revision 1.8. 2003-09-15 Paul Zimmermann * div.c: No longer perform the pre-check for exactness when first division step was actually a complete division. This introduced way too much overhead. * inp_str.c: replaced test stream==0 by stream==NULL 2003-09-15 Vincent Lefevre * round_prec.c, tests/tcan_round.c: Fixed a bug in mpfr_can_round_raw and added other mpfr_can_round tests. * round_prec.c, tests/tcan_round.c: Added a test to tests/tcan_round.c and assertions to round_prec.c. 2003-09-14 Vincent Lefevre * tests/texceptions.c, exceptions.c, exp.c: Fixed mpfr_set_overflow, added tests for mpfr_set_underflow and mpfr_set_overflow, and reverted exp.c. 2003-09-13 Paul Zimmermann * exp.c: overflow with round to zero was incorrect 2003-09-11 Vincent Lefevre * Makefile.am, clears.c, inits.c, inits2.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tinits.c: New functions mpfr_inits, mpfr_inits2 and mpfr_clears to initialize or free several floating-point numbers (written by Patrick Pélissier). 2003-09-09 Vincent Lefevre * TODO, zeta.c: Replaced malloc/free by __gmp_allocate_func/__gmp_free_func in mpfr_zeta_pos. zeta.c still uses math (libm) functions -> TODO: remove this dependence. * tests/tui_pow.c: Added a test that makes MPFR crash (coming from the mpfr_zeta crash). * tests/tzeta.c: Case that crashes MPFR (coming from test_generic) -> function test1. * ui_pow.c: Ended up by simplifying mpfr_ui_pow to fix it completely (with a call to mpfr_pow, in a way similar to other ui functions). There isn't significant differences with the old code anyway, and the case integer^integer wasn't optimized like in mpfr_pow. The test tui_pow now passes, but the test tzeta now fails! * tests/tui_pow.c, ui_pow.c: Code clean-up and reindented. Replaced a 8 by CHAR_BIT, as CHAR_BIT isn't necessarily equal to 8. The bug seems to occur on all machines. 2003-09-08 Vincent Lefevre * tests/tui_pow.c: Added a test to reproduce a bug (to be fixed later) on all 64-bit machines. * tests/tset_str.c: Added a cast (useful under Linux/alpha). 2003-09-01 Vincent Lefevre * mpfr.h, mpfr.texi, print_rnd_mode.c, TODO: Changes (Patrick Pelissier's suggestions): _ mpfr_print_rnd_mode now has __gmp_const char * return type; _ some corrections in mpfr.texi, documentencoding set. 2003-08-30 Kevin Ryde * tests/Makefile.am (EXTRA_libfrtests_a_SOURCES): Add amd64.asm. * tests/amd64.asm: New file. * acinclude.m4: Correction to: (MPFR_CONFIGS): Add amd64-*-* to x86 test objects. * tests/tests.c (tests_machine_prec_long_double): Add amd64 to the comments. * acinclude.m4 (MPFR_CONFIGS): Add amd64-*-* to x86 test objects. * tests/tset_ld.c (check_set_get): Improve error messages. * mpfr-test.h, tests/tests.c (ld_trace): New function. * set_ld.c (ldbl_max_struct): Use octal character constants, since hex is an ANSI-ism. 2003-08-07 Vincent Lefevre * ui_pow_ui.c: Avoid a potential overflow. 2003-08-04 Paul Zimmermann * agm.c, tests/tagm.c: fixed pb found by Damien Fisher 2003-07-24 Vincent Lefevre * get_d.c: If the exponent of the number is meaningless (src = NaN, inf or 0), 0 is stored in expptr (behavior similar to the ISO C frexp function). 2003-07-21 Paul Zimmermann * TODO: added one item 2003-07-19 Kevin Ryde * tests/Makefile.am (check_PROGRAMS): Add tget_d_2exp.c. * tests/tget_d_2exp.c: New file, partly derived from tget_d.c. * get_d.c (mpfr_get_d_2exp): Ensure 0.5 <= abs(ret) < 1.0 is respected when rounding away from zero. * mpfr-test.h, tests/tests.c (d_trace): New function. * mpfr.texi (Converting Floats): mpfr_get_d_2exp stores to a long. * get_d.c (mpfr_get_d_2exp): Store exp in a long, same as mpz_get_d_2exp and mpf_get_d_2exp. 2003-07-18 Kevin Ryde * mpfr.h (mpfr_get_d_2exp): Store exp in a long, same as mpz_get_d_2exp and mpf_get_d_2exp. 2003-07-15 Vincent Lefevre * get_d.c: Updated comment. 2003-07-08 Vincent Lefevre * random2.c: Correction in a comment (patch by Torbjorn). 2003-07-01 Paul Zimmermann * mpfr.texi, round_prec.c: can_round returns 0 for NaN/Inf * round_prec.c: fixed Uninitialized memory read in mpfr_can_round (when b is NaN or Inf) 2003-06-30 Paul Zimmermann * tests/tget_str.c: fixed array bound write (need 6+1 characters in s1 to represent -@inf@ + \0) 2003-06-28 Kevin Ryde * get_d.c: Add "const" to IEEE byte sequence data. * tests/tests.c (tests_rand_end): Remove explicit __gmp_rands clearing, it's what RANDS_CLEAR does already. 2003-06-26 Paul Zimmermann * cmp_d.c, get_d.c, get_ld.c, mpfr-impl.h, set_d.c, set_dfl_prec.c, set_ld.c: moved macros for [L]DBL_MANT_DIG in mpfr-impl.h 2003-06-25 Paul Zimmermann * urandomb.c: fixed several problems noticed by Kevin * tests/tset_ld.c: changed test for 2^1024, using LDBL_MAX_EXP 2003-06-24 Kevin Ryde * mpfr-math.h: Remove file, no longer used. * Makefile.am (libmpfr_a_SOURCES): Remove mpfr-math.h. * get_d.c (MPFR_DBL_INFP, MPFR_DBL_INFM, MPFR_DBL_NAN): Make private definitions based on IEEE byte sequences, in particular avoid HUGE_VAL from mpfr-math.h since that's not infinity on hppa1.1-hp-hpux10. Remove includes of mpfr-math.h, math.h and stddef.h. * tests/tget_d.c (check_inf_nan): New test. * acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Use octal char constants, '\xHH' is an ANSI-ism. 2003-06-24 Paul Zimmermann * tests/tset_ld.c: check 2^1024 only when sizeof(long double) > sizeof(double) * tests/tsub.c: correction to previous patch * tests/tadd.c: correction to previous patch: problem was that x and u can be 0, then MPFR_PREC() undefined 2003-06-24 Kevin Ryde * tests/tests.c (tests_start_mpfr): Make stdout and stderr unbuffered. * tests/tsub.c, tests/tadd.c (check_inexact): For pz, use at least MPFR_PREC_MIN since this is required by mpfr_set_prec. 2003-06-23 Kevin Ryde * TODO: Remove mingw portability of random/rand48, no longer used. * TODO: Remove __setfpucw, no longer used. Remove mpfr_integer_p, done. Remove gmp rand functions in test programs, done. Remove MPFR_CHECK_RANDOMIZE, done (as GMP_CHECK_RANDOMIZE). 2003-06-21 Vincent Lefevre * mpfr.texi: mpfr_random is deprecated. 2003-06-20 Paul Zimmermann * tests/tdiv.c, tests/tsub.c, tests/tui_div.c: changed since mpfr_random now can return 0 2003-06-20 Vincent Lefevre * random.c: The distribution should now be uniform (mpfr_random implemented by calling mpfr_urandomb). * mpfr.h, mpfr.texi, urandomb.c: Take the current exponent range into account in mpfr_urandomb (which now returns an int). * urandomb.c: Bug fix. 2003-06-20 Paul Zimmermann * tests/tests.c: moved _gmp_rands_initialized stuff from tests_end_mpfr() to tests_rand_end() * tests/tset_z.c, tests/tset_si.c: reduced default number of tests improved style 2003-06-19 Paul Zimmermann * exp_2.c: fixed bug in mpfr_exp2_aux2 (spe175.testdrive.hp.com) * exp3.c: improved style * tests/texp.c: added more information in case of failure * tests/tests.c, tests/tlog.c, tests/tmul_2exp.c, tests/tout_str.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tadd.c, tests/tagm.c: removed randseed() stuff [obsolete now we use the GMP mechanism] * tests/tzeta.c: added memory test mechanism * tests/tdiv.c: added new test from Parks * zeta.c: fixed allocation problem (forgot to clear) 2003-06-19 Vincent Lefevre * mpfr-test.h: Removed drand48/lrand48/srand48 prototypes. 2003-06-18 Kevin Ryde * tests/tset_z.c, tests/tset_si.c: Don't use mpz_get_d1, since a 53-bit double is not enough when long is 64-bits. 2003-06-13 Kevin Ryde * tests/tests.c: Use autoconf recommended style for time.h with sys/time.h. * acinclude.m4 (MPFR_CONFIGS): Require AC_HEADER_TIME, add AC_CHECK_HEADERS of sys/time.h. * acinclude.m4 (MPFR_CONFIGS): Add AC_CHECK_FUNCS of gettimeofday. 2003-06-13 Paul Zimmermann * tests/tsqrt.c: moved disabled test to "special" code * algorithms.bib, algorithms.tex: added reference to Higham * algorithms.tex, erf.c, exp.c: improved error analysis on erf * tests/tlog.c: improved indentation 2003-06-12 Paul Zimmermann * tests/tests.c: added support for random see (when env. variable GMP_CHECK_RANDOMIZE set) 2003-06-12 Vincent Lefevre * tests/tatan.c, tests/tcmp.c, tests/tcmp2.c, tests/tdiv_ui.c, tests/terf.c, tests/tests.c, tests/texp.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/thypot.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, acinclude.m4, mpfr-test.h, tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tagm.c, tests/tasin.c: Replaced misc random functions by GMP ones. * mpfr-test.h, tests/tests.c: Added function randlimb(). * erf.c: Fixed a few bugs concerning special values, code simplified. 2003-06-12 Paul Zimmermann * Makefile.am, algorithms.tex, erf.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/terf.c: added error function 2003-06-11 Vincent Lefevre * random2.c: Make x positive + some minor changes. * random2.c: New version written by Torbjorn Granlund. 2003-06-10 Paul Zimmermann * algorithms.bib, algorithms.tex: updated formular for erf added url for Abramowitz & Stegun 2003-06-10 Vincent Lefevre * get_d.c: Added a comment concerning NO_MATH_DEFS. 2003-06-10 Paul Zimmermann * tests/tgamma.c: made test faster * tests/tzeta.c: reduced test time * tests/tdiv.c: reduced time of test * tests/tfrac.c: reduced time 2003-06-09 Kevin Ryde * tests/tabs.c, tests/tacos.c, tests/tadd.c, tests/tasin.c, tests/tatan.c, tests/tcmp2.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tlog.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c: Patch by Torbjorn: use puts not putchar, to avoid GNUPro compiler bug. 2003-06-08 Kevin Ryde * tests/tsqrt.c: Disable "8093416094703476*2^(-1075)" because mips64 SGI cc doesn't seem to like the value (a denorm). * get_d.c: Include before , to avoid problems with gcc 3.2 on hppa2.0w-hp-hpux11.11. * mpfr-test.h (random): Remove prototype, since it conflicts with stdlib.h on osf4. 2003-05-28 Vincent Lefevre * mpfr-test.h, tests/tzeta.c, mpfr-impl.h: Added prototypes of non-standard functions that weren't always defined. * mpfr-impl.h: MPFR_EXP_CHECK is now defined when WANT_ASSERT is defined. 2003-05-26 Vincent Lefevre * zeta.c: The special case s = 1 is taken into account (the previous code seemed to work, but perhaps not for rigorous reasons). * tests/tzeta.c: Added test for case s = 1. * round_prec.c (mpfr_round_prec): Bug fixed (case zero wasn't taken into account) and 'assertion failed' avoided. * add_one_ulp.c, div_ui.c, sub_one_ulp.c: Update related to MPFR_GET_EXP and MPFR_SET_EXP. * rint.c: MPFR_GET_EXP (r) -> exp. * swap.c: Function mpfr_swap rewritten using memcpy. * set.c, set_si.c, set_ui.c, sqrt_ui.c, sub_ui.c, add_ui.c, mpfr-impl.h: Updates/optimizations related to MPFR_GET_EXP and MPFR_SET_EXP. 2003-05-23 Vincent Lefevre * add1.c: Code clean-up. Assertion failed avoided. 2003-05-22 Vincent Lefevre * ChangeLog: Update. * mpfr-impl.h, mul.c, mul_2si.c, mul_2ui.c, mul_ui.c, next.c, pow.c, print_raw.c, random.c, random2.c, rint.c, round_prec.c, set.c, set_d.c, set_exp.c, set_f.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, setmax.c, setmin.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, ui_div.c, ui_pow.c, ui_sub.c, urandomb.c, zeta.c, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, cmp.c, cmp2.c, cmp_abs.c, cmp_si.c, cmp_ui.c, const_log2.c, const_pi.c, cos.c, div.c, div_2si.c, div_2ui.c, div_ui.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, frac.c, generic.c, get_d.c, get_exp.c, get_ld.c, get_si.c, get_str.c, get_ui.c, get_z_exp.c, hypot.c, isinteger.c, log.c, log1p.c, log2.c, BUGS: Macros MPFR_EXP_INVALID (invalid exponent value) and MPFR_EXP_CHECK added. Code update to use MPFR_GET_EXP and MPFR_SET_EXP instead of MPFR_EXP to allow more bug detection related to special values. Macros MPFR_SET_NAN, MPFR_SET_INF, MPFR_SET_ZERO and MPFR_INIT set the exponent of the number to MPFR_EXP_INVALID if MPFR_EXP_CHECK is defined. Compile with -DMPFR_EXP_CHECK and make check to see the potential problems; currently, 40 of 76 tests fail. 2003-05-21 Vincent Lefevre * mpfr-impl.h: MPFR_ASSERTD: use MPFR_ASSERTN instead of ASSERT_ALWAYS so that it can be used as an expression. New macros MPFR_GET_EXP and MPFR_SET_EXP (they should almost completely replace MPFR_EXP). 2003-05-19 Paul Zimmermann * tests/teq.c: added test 'special' * eq.c: fixed bug when n_bits larger than size*BITS_PER_MP_LIMB 2003-05-18 Vincent Lefevre * eq.c: Bugs fixed (special cases). 2003-05-13 Paul Zimmermann * tests/Makefile.am: removed dummy test tdump * TODO: compatibility with mpf is done * mpfr.texi, cmp_d.c, mpf2mpfr.h: updated mpfr_cmp_d added mpfr_cmp_d in mpf2mpfr.h and mpfr.texi 2003-05-13 Guillaume Hanrot * cmp_d.c, tests/tcmp_d.c: Added cmp_d.c, tcmp_d.c. * mpfr.h, tests/Makefile.am, tests/mpf_compat.h, Makefile.am: Added cmp_d/tcmp_d. 2003-04-11 Paul Zimmermann * tests/reuse.c, zeta.c: moved test for NaN/Inf * Makefile.am, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tzeta.c, zeta.c: added Riemann Zeta function (contribution from Jean-Luc Re'my) 2003-04-08 Kevin Ryde * mpfr.texi: Move macros down below @copying. * mpfr.texi: Add @: after various abbreviations. 2003-04-01 Paul Zimmermann * exp_2.c: fixed pb with count_leading_zeros (n=0) * tests/texp.c: added test for bug found by Franky Backeljauw * exp_2.c: fixed bug found by Franky 2003-03-28 Vincent Lefevre * exp3.c: Added some asserts. 2003-03-28 Paul Zimmermann * tests/tconst_pi.c: fixed pb found by Will Galway (continued) 2003-03-28 Guillaume Hanrot * const_pi.c, tests/tconst_pi.c: Patches from W. Galway. 2003-03-28 Paul Zimmermann * mpfr.texi: fixed reference to Plouffe/Bailey/Borwein formula 2003-03-27 Guillaume Hanrot * const_pi.c: Credits for the pi formula modified. 2003-03-26 Paul Zimmermann * mpfr.texi, set_str.c, set_str_raw.c, mpfr.h: changed back "unsigned char *" to "char *" 2003-03-25 Paul Zimmermann * mpfr.h, mpfr.texi, set_str.c, set_str_raw.c: char * -> const unsigned char * for mpfr_set_str, mpfr_set_str_raw, and mpfr_init_set_str 2003-03-24 Paul Zimmermann * get_ld.c: removed unused variable 2003-03-18 Paul Zimmermann * mpfr.texi: fixed documentation bug in mpfr_log2 (exact results) * tests/tsqrt.c: changed new test in 'check4' style 2003-03-17 Vincent Lefevre * BUGS, mpfr.texi: Update concerning underflow problems. 2003-03-17 Kevin Ryde * tests/tpow.c (main): Comment out underflows(), until it works. * get_z_exp.c: Comment out an assert tickled for an f with exponent near MPFR_EMIN_MIN. 2003-03-16 Kevin Ryde * mpfr-impl.h (LONGDOUBLE_NAN_ACTION): New version for IEEE quad big endian, fixing HP cc. (WANT_LONGDOUBLE_VOLATILE): New define for when LONGDOUBLE_VOLATILE is wanted. (WANT_GMPFR_LONGDOUBLE_VOLATILE): New define for when __gmpfr_longdouble_volatile is wanted. * volatile.c: Use WANT_GMPFR_LONGDOUBLE_VOLATILE. * acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): Add IEEE quad big endian, check long double exists before testing. 2003-03-14 Vincent Lefevre * tests/tpow.c: Added underflow test showing a bug in mpfr_pow. 2003-03-14 Paul Zimmermann * pow.c: fixed bug for x=1 2003-03-14 Vincent Lefevre * BUGS, pow.c: This wasn't a compiler bug; mpfr_pow is really buggy. Added some asserts to show that. * tests/tpow.c, BUGS: The infinite loop concerning 1^0.5 was probably due to a bug in the compiler [cc (GCC) 3.2.3 20030309 (Debian prerelease)]: adding some printf's changes the values of the variables and the correct result is returned. 2003-03-13 Paul Zimmermann * tests/tpow.c: fixed sign problem in particular_cases() * ui_pow.c: declared mpfr_ui_pow_is_exact as static * pow_si.c, pow.c: gnu-style 2003-03-13 Vincent Lefevre * tests/tpow3.c: Removed some useless and inaccurate tests on NaN, infinities, zeros (as the behavior of mpfr_pow on such particular cases has changed); similar tests were added to "tests/tpow.c". * BUGS, tests/tpow.c: Test of mpfr_pow: particular cases. Bugs. 2003-03-12 Vincent Lefevre * pow.c, tests/tpow3.c: Special cases for mpfr_pow(). 2003-03-11 Paul Zimmermann * out_str.c: when stream=NULL, use stdout (as indicated in the documentation) 2003-03-03 Vincent Lefevre * sin.c: mpfr_sin_sign -> static. * pow.c: Useless declaration removed. * pow.c: Special cases for mpfr_pow: like Section F.9.4.4 of the ISO C99 standard. * pow.c: Prototype fixed. 2003-02-27 Vincent Lefevre * set_str.c, tests/tset_str.c, mpfr.texi: mpfr_set_str now accepts a binary exponent for base 16 (as defined by the ISO C99 standard). * TODO: Comment concerning the installation of MPFR: done. * INSTALL, mpfr.texi: New recommendation to install MPFR. 2003-02-24 Guillaume Hanrot * tests/tget_str.c, tests/tset_str.c, dump.c, get_str.c, out_str.c, print_raw.c, set_str.c: Replaced NaN, Inf by @NaN@, @Inf@ [for bases > 24]. 2003-02-21 Paul Zimmermann * tests/thypot.c: added one test 2003-02-21 Vincent Lefevre * get_ui.c: Fixed cast (though unnecessary). 2003-02-21 Paul Zimmermann * tests/tsqrt.c: added one test 2003-02-13 Paul Zimmermann * tests/Makefile.am: added mpf_compat, mpfr_compat * tests/mpf_compat.c, tests/mpf_compat.h, tests/mpfr_compat.c: test files for mpf-mpfr compatibility * set_str.c: added mpfr_init_set_str * mpfr.h: added "const" to char* arg. of mpfr_init_set_str * mpf2mpfr.h: added macros for new mpfr functions changed some old macros * tests/tpow3.c, pow.c: mpfr_isinteger -> mpfr_integer_p * mpfr.texi: document new functions (fits_*, get_ui, get_si, get_d_2exp) added integer_p that was not documented * mpfr.h: mpfr_isinteger -> mpfr_integer_p new functions: mpfr_fits_*, mpfr_get_ui, mpfr_get_si, mpfr_get_d_2exp * log10.c, isinteger.c: mpfr_isinteger -> mpfr_integer_p * get_d.c: added mpfr_get_d_2exp * frac.c, exp2.c: mpfr_isinteger -> mpfr_integer_p * Makefile.am: new functions mpfr_fits_* and mpfr_get_ui/si * fits_s.h, fits_sint.c, fits_slong.c, fits_sshort.c, fits_u.h, fits_uint.c, fits_ulong.c, fits_ushort.c, get_si.c, get_ui.c: new functions mpfr_fits_* and mpfr_get_[us]i 2003-01-27 Paul Zimmermann * tests/tset_str.c: check for +/-0.0 after variable set to NaN 2003-01-25 Vincent Lefevre * acinclude.m4: Suppressed the underscores of AC_CHECK_LIBM in comments, otherwise aclocal 1.4-p6 includes libtool code in aclocal.m4 and this leads to compilation problems. 2003-01-25 Kevin Ryde * mpfr.h (_MPFR_H_HAVE_FILE): Copy FILE define tests from gmp.h, adds Borland, Microsoft and Apple MPW. * Makefile.am (libmpfr_a_SOURCES): Add volatile.c. * volatile.c: New file. * tests/tset_ld.c (Isnan_ld): New function based on LONGDOUBLE_NAN_ACTION, use it instead of LONGDOUBLE_ISNAN. * mpfr-test.h (LONGDOUBLE_ISNAN): Remove. * set_ld.c (LONGDOUBLE_ISNAN): Remove this, use LONGDOUBLE_NAN_ACTION instead. * mpfr-impl.h (LONGDOUBLE_NAN_ACTION): New macro. 2003-01-24 Kevin Ryde * set_str.c: Allow "e" exponent in base<=10 not <10. Restrict "E" exponent to base<=10 too, since digits are not case sensitive. 2003-01-24 Vincent Lefevre * tests/tcmp2.c, tests/tconst_log2.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/tset_ld.c, tests/tset_q.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tabs.c, tests/tatan.c: Prototypes: use static. Some code reformatting. * set_str.c: The sign wasn't set when the result was zero. 2003-01-24 Kevin Ryde * set_str.c: Reject "", "+" and "-", also fixing an attempt to allocate a 0 length block in these cases. * set_str.c: Clear NAN and INF flags when setting result to zero. 2003-01-24 Vincent Lefevre * tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcos.c, tests/tmul.c, tests/tsin.c, tests/tsin_cos.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_sub.c: Fixed prototypes (use static...). * tests/tcbrt.c: Missing #include. 2003-01-23 Paul Zimmermann * tests/tget_d.c: workaround for gcc bug on m68040-unknown-netbsd1.4.1 * tests/tget_d.c: added cast to double 2003-01-23 Kevin Ryde * tests/tadd.c: Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests, not "double" nans and infs. 2003-01-22 Kevin Ryde * tests/tmul.c, tests/tui_sub.c, tests/tsub_ui.c, tests/tadd_ui.c: Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests, not "double" nans and infs. * tests/tgamma.c, tests/tdiv.c, tests/tui_div.c, tests/tzeta.c, tests/tsqrt.c: Use tests_start_mpfr / tests_end_mpfr. * tests/tout_str.c: Use tests_start_mpfr / tests_end_mpfr. (check_large): Use __gmp_free_func to free mpfr_get_str result. * tests/tget_d.c, tests/tcbrt.c: Use tests_start_mpfr / tests_end_mpfr. * tests/tsin_cos.c: Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests, not "double" nans and infs. Use tests_start_mpfr / tests_end_mpfr. * tests/tagm.c: Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests, not "double" nans and infs. * tests/tsqrt.c: Remove tests involving "double" nans and infs, covered by check_nan. * tests/tsin.c, tests/tcos.c, tests/ttan.c: Use mpfr_set_nan and mpfr_set_inf for NaN and Inf tests, not "double" nans and infs. 2003-01-18 Kevin Ryde * Makefile.am: Move log_b2.h from include_HEADERS to libmpfr_a_SOURCES, it doesn't want to be installed. * set_str.c: Correction to memory leak fix, need "result" for final rounding. 2003-01-17 Kevin Ryde * set_str.c: Fix two memory leaks. * tests/Makefile.am (LDADD): Add $(MPFR_LIBM). * configure.in: Remove -lm setups, now handled by MPFR_CHECK_LIBM. * acinclude.m4 (MPFR_CHECK_LIBM): New macro. (MPFR_CONFIGS): Use it. 2003-01-17 Paul Zimmermann * BUGS, NEWS, README, TODO, acinclude.m4: added copyright notices and license statements * tests/tcmp2.c: now use __gmpfr_floor_log2 instead of floor/log to get rid of math.h * tests/tagm.c: removed unused function dagm(), and get rid of math.h added tests for NaN, Inf's 2003-01-17 Vincent Lefevre * acinclude.m4: Re-added $OBJEXT, using AC_REQUIRE([AC_OBJEXT]) for old autoconf. 2003-01-16 Paul Zimmermann * tests/tcmp2.c: put back math.h * tests/tagm.c: added back math.h (for sqrt) * Makefile.am: added log_b2.h in include_HEADERS * tests/Makefile.am: added tsin_cos * tests/tadd.c: added #ifdef HAVE_DENORMS for denormalized test * tests/tcmp2.c, tests/tcmp_ui.c, tests/teq.c, tests/tmul_ui.c, tests/tout_str.c, tests/tset.c, tests/tsub.c: removed math.h * tests/tset_d.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tadd.c, tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tlog.c, tests/tmul.c: added year 2003 in copyright line removed math.h * tests/ttan.c, tests/tui_div.c, tests/tui_sub.c: added 2003, removed math.h * tests/tabs.c: added 2003 * tests/tadd_ui.c: added 2003, removed math.h * tests/tagm.c: removed math.h * tests/tset_str.c, tests/memory.c: added 2003 * tests/trandom.c: removed math.h * tests/tget_str.c: added year 2003 removed math.h * tests/tadd.c: patch for compiler bug on hppa2.0w-hp-hpux11.11 2003-01-16 Vincent Lefevre * set_ld.c: Macro LONGDOUBLE_ISNAN wasn't defined. 2003-01-16 Paul Zimmermann * mpfr-test.h: now always define Isnan * mpfr-impl.h: moved LONGDOUBLE_ISNAN to mpfr-test.h * acinclude.m4: removed check from isnan * tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tests.c, tests/texp.c, tests/tlog.c, tests/tmul.c, tests/tset_d.c, tests/tset_ld.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c: replaced isnan() by Isnan() 2003-01-16 Vincent Lefevre * acinclude.m4: AC_PREREQ(2.50) added (useful when both autoconf 2.13 and autoconf 2.50 are installed, with a wrapper to select the required version). * tests/tests.c: Comment in mpfr_test_init: s/preprocessor/compiler/. 2003-01-16 Paul Zimmermann * tests/tests.c: fixed pb in mpfr_test_init with the compiler optimizing too much (this happened on Alpha with -O1 or higher) 2003-01-15 Vincent Lefevre * zeta.c: Standard prototype only. Particular cases added. 2003-01-15 Paul Zimmermann * get_str.c, set_str.c: moved common prototype for mpn_exp in mpfr-impl.h * mpfr-impl.h: removed spurious ; after MPFR_ESIZE added prototype for mpn_exp * TODO: removed items done * tests/tset_str.c: new tests from Alain Delplanque * set_str.c: new version using mpn_set_str [written by Alain Delplanque, edited by Paul Zimmermann] 2003-01-15 Vincent Lefevre * acinclude.m4: Replace $OBJEXT by o (as $OBJEXT isn't defined everywhere). * acinclude.m4: A ` must be quoted to avoid an error with Autoconf 2.13. * gamma.c: Use type mp_prec_t for precisions. * gamma.c: Source re-indented. * gamma.c: Several bugs fixed concerning the particular cases. and not included by default. int mpfr_gamma _PROTO ... removed (was useless). 2003-01-15 Paul Zimmermann * gamma.c: get rid of ceil() call, that requires -lm 2003-01-14 Kevin Ryde * get_ld.c: Force LDBL_MANT_DIG on IEEE extended, to avoid problems with some i386 gcc. * set_ld.c: Avoid problems with bad LDBL_MAX and LDBL_MANT_DIG on some i386 gcc. * acinclude.m4 (MPFR_C_LONG_DOUBLE_FORMAT): New macro. (MPFR_CONFIGS): Use it. 2003-01-11 Vincent Lefevre * tests/memory.c: Required casts added (and switch from uint to ulong); in particular, useful on Alpha. 2003-01-10 Kevin Ryde * tests/trandom.c, tests/tconst_pi.c: Tolerate empty argv[1], which can arise from ancient bash executing the libtool shared library wrapper script. * get_ld.c: Avoid unnecessary extra power of 2 squaring, so as not to provoke an overflow exception when result is in range. 2003-01-10 Vincent Lefevre * tests/tests.c: Extended precision detection fixed. 2003-01-09 Paul Zimmermann * get_ld.c: fixed possible overflow when EXP=1024 * set_ld.c: rewritten to avoid overflows * tests/tpow.c: added one test 2003-01-08 Kevin Ryde * get_str.c (mpn_exp): Don't store -1 in a uint then return it as a long. Fixes systems such as alpha where sizeof(uint)!=sizeof(long). * acinclude.m4 (AC_CHECK_HEADERS): Remove fpu_control.h, no longer required. * tests/tset_ld.c: Use tests_machine_prec_long_double. Use LDBL_MAX for largest value and to find largest power of 2. * mpfr-test.h (__setfpucw, _FPU_EXTENDED, etc): Remove these setups. (tests_machine_prec_double, tests_machine_prec_long_double, x86_fstcw, x86_fldcw): Add prototypes. * tests/tests.c (tests_machine_prec_double, tests_machine_prec_long_double): New functions. (mpfr_test_init): Replace __setfpucw with tests_machine_prec_double. * acinclude.m4 (MPFR_CONFIGS): Add tests/x86.asm support. * configure.in (X86_PATTERN): New define, supporting acinclude.m4. * tests/Makefile.am: Add x86.asm support. * tests/x86.asm: New file. 2003-01-07 Paul Zimmermann * exp2.c: fixed pb for underflow and rounding to nearest * mpfr-impl.h, set_ld.c: added macro LONGDOUBLE_ISNAN use LONGDOUBLE_ISNAN in set_ld instead of cast to double and DOUBLE_ISNAN (did raise exception under freebsd) 2003-01-07 Vincent Lefevre * exp2.c: Added assertions that can be resolved at compile time: the exponents must be representable in a long int (IMHO, this limitation should be avoided in a clean way). 2003-01-06 Kevin Ryde * TODO: Remove mpfr_get_ld, done. * TODO: Remove mpfr_set_machine_rnd_mode, done. 2003-01-06 Vincent Lefevre * exp2.c: Bug fix: __mpfr_emax -> __gmpfr_emax. 2003-01-06 Kevin Ryde * set_str.c: Use separate function calls to second strncasecmp and strncmp for consistency and to avoid gcc warnings. 2003-01-06 Paul Zimmermann * exp2.c, tests/texp2.c: fixed infinite loop for 2^integer 2003-01-06 Vincent Lefevre * set_str.c: Use digit_value_in_base for the part after the '.'. * set_str.c: Static function digit_value_in_base is now compatible with any locale. 2003-01-03 Kevin Ryde * tests/tests.c, mpfr-test.h: () [__mips]: Move from mpfr-test.h to tests/tests.c, and conditionalize with HAVE_SYS_FPU_H. * acinclude.m4 (AC_CHECK_HEADERS): Add sys/fpu.h. * mpfr-test.h: (HAVE_DENORMS) [__mips]: Remove this, let the configure test decide. * set_str.c: Use separate function calls to strncasecmp and strncmp, rather than ?: on function pointers, since the latter demands declarations not present on SunOS. Both forms are optimized the same by gcc. 2003-01-03 Vincent Lefevre * BUGS: Added some potential bugs (mpfr_exp2 is known to have such a bug). 2003-01-02 Kevin Ryde * tests/tset_str.c, tests/tget_str.c: Add gmp-impl.h for __gmp_free_func. 2002-12-16 Vincent Lefevre * tests/tconst_log2.c, tests/tests.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sub1.c, sub_one_ulp.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_pow.c, mul_2si.c, mul_2ui.c, mul_ui.c, next.c, pow.c, pow_si.c, rint.c, round_prec.c, save_expo.c, set.c, set_dfl_prec.c, set_exp.c, set_nan.c, log10.c, log1p.c, log2.c, mpf2mpfr.h, mpfr-impl.h, mpfr.h, mul.c, factorial.c, gamma.c, gammaPiAGMformula.c, get_d.c, get_str.c, get_z_exp.c, hypot.c, init.c, const_pi.c, cos.c, cosh.c, div_2si.c, div_2ui.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, acosh.c, add1.c, add_one_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, const_euler.c, const_log2.c, acos.c: Suppress some #define and fix symbol names (makes code cleaner): perl -pi -e 's/__mpfr_flags/__gmpfr_flags/g' **/*.{c,h} perl -pi -e 's/__mpfr_emin/__gmpfr_emin/g' **/*.{c,h} perl -pi -e 's/__mpfr_emax/__gmpfr_emax/g' **/*.{c,h} perl -pi -e 's/__mpfr_default_fp_bit_precision/__gmpfr_default_fp_bit_precision/g' **/*.{c,h} perl -pi -e 's/__gmp_default_rounding_mode/__gmpfr_default_rounding_mode/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_log2_prec/__gmpfr_const_log2_prec/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_pi_prec/__gmpfr_const_pi_prec/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_log2/__gmpfr_ceil_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_floor_log2/__gmpfr_floor_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_exp2/__gmpfr_ceil_exp2/g' **/*.{c,h} perl -pi -e 's/_mpfr_isqrt/__gmpfr_isqrt/g' **/*.{c,h} perl -pi -e 's/_mpfr_cuberoot/__gmpfr_cuberoot/g' **/*.{c,h} perl -pi -e 's/^#define __gmpfr_.*\n//' *.h 2002-12-13 Vincent Lefevre * ChangeLog: Update. * mpfr.texi: IEEE 754 / IEEE P754 -> IEEE 754-1985. * mpfr.texi: Correction. * mpfr.texi: Added a note about the signed zero. * set_d.c: Assertion re-added. * missing: Update for new version of automake/autoconf. * depcomp: depcomp script added for new version of automake. 2002-12-12 Kevin Ryde * configure.in: Don't -D define PACKAGE_VERSION etc, to avoid conflict with gmp config.h. 2002-12-12 Paul Zimmermann * mpfr.texi: added paragraph about accuracy * mpfr.texi: rewritten unclear paragraph about precision * TODO: added one item * set_d.c: use MPN_NORMALIZE_NOT_ZERO instead of loop 2002-12-11 Vincent Lefevre * tests/memory.c: Added #include "mpfr.h" (needed by mpfr-test.h as it uses mp_rnd_t in one of the prototypes). 2002-12-10 Vincent Lefevre * set_d.c: Patch by Torbjorn Granlund : Don't use TMP_ allocation mechanism for fixed size objects. Resulting streamlining. Misc addressing changes to work around GNUPro bugs. Patch by VL: Some other changes in mpfr_set_d. 2002-12-07 Vincent Lefevre * const_euler.c: (mpfr_const_euler_S, mpfr_const_euler_R) Make declaration match prototype (patch by Torbjorn Granlund). 2002-12-04 Vincent Lefevre * config.guess, config.sub: Update from ftp://ftp.gnu.org/pub/gnu/config/ 2002-12-03 Paul Zimmermann * mpfr.texi: Use @ifnottex/@end iffnotex instead of @ifinfo/@end ifinfo 2002-12-02 Vincent Lefevre * mpfr-test.h, tests/rnd_mode.c: Fix rnd_mode.c (again). 2002-12-02 Paul Zimmermann * mpfr-impl.h, mpfr.h: put redefinitions of external symbols just before prototypes * TODO: updated * BUGS: added new known bugs 2002-11-29 Kevin Ryde * TODO: Add notes on mpf_t maintaining actual size for efficiency. * TODO: Remove mpfr_set_machine_rnd_mode task. * mpfr.texi: Tweak some math formatting for tex. * mpfr-test.h, mpfr.h (mpfr_set_machine_rnd_mode): Move prototype to mpfr-test.h. * tests/Makefile.am (libfrtests_a_SOURCES): Add rnd_mode.c. * Makefile.am (libmpfr_a_SOURCES): Remove rnd_mode.c. * rnd_mode.c: Remove file, moved to tests directory. * tests/rnd_mode.c: New file, moved from top-level directory. * mpfr.texi (Rounding Modes): Remove mpfr_set_machine_rnd_mode. * setmin.c, setmax.c: Use GNU style code layout. 2002-11-29 Paul Zimmermann * mpfr-impl.h, mpfr.h: redefined external symbols in the __gmpfr namespace 2002-11-25 Paul Zimmermann * tests/tout_str.c: added one fprintf in case of error 2002-11-25 Vincent Lefevre * mpfr.texi, rnd_mode.c, mpfr.h: mpfr_set_machine_rnd_mode fixed to compile on some architectures (e.g. ARM). Now returns an int. * tests/tmul.c: Bug fixed. 2002-11-25 Paul Zimmermann * tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c: removed all tests that compare to libm * tests/tdiv.c: changed to distinguish mpfr failures from libm failures * tests/tdiv.c: added 3 tests that make libm fail under HP-PA 2002-11-23 Vincent Lefevre * ChangeLog: Update. 2002-11-22 Paul Zimmermann * ui_pow.c: forgot to remove debug statement * pow.c, tests/tui_pow.c, ui_pow.c: fixed bug (infinite loop) for exact powers 2002-11-21 Kevin Ryde * TODO: More on tuned thresholds, more on config.h etc, new section on mpf/mpfr integration. 2002-11-20 Vincent Lefevre * get_str.c: Code clean-up. 2002-11-20 Paul Zimmermann * gamma.c, log.c, set_ld.c: fixed some problems found by insure * tests/tout_str.c: forgotten fclose() call * tests/tget_str.c: fixed array bound write 2002-11-19 Paul Zimmermann * get_str.c: fixed non-ansi features * div.c, div_ui.c: added explicit cast 2002-10-24 Paul Zimmermann * mpfr.texi: added mpfr_cbrt 2002-10-20 Vincent Lefevre * BUGS: Update. 2002-10-20 Paul Zimmermann * sin.c: fixed bug with wrong sign detection 2002-10-19 Vincent Lefevre * hypot.c: Some fixes to avoid overflows. 2002-10-19 Paul Zimmermann * hypot.c: fixed bug for large arguments * cbrt.c: improved code for rounding to nearest * asinh.c: fixed bug for EXP(x) > EMAX/2 * algorithms.tex: modified description of hypot and cbrt * acosh.c: fixed bug for EXP(x) > EMAX/2 2002-10-18 Vincent Lefevre * BUGS: Update. * tests/tsin.c: Added test showing bug in sign detection. * tests/thypot.c: Added newline. * BUGS: Bug in mpfr_hypot. * tests/thypot.c: Added test that makes mpfr_hypot fail. * hypot.c: Precision Nt: int -> mp_prec_t. * tests/tcbrt.c: Added some tests. * tests/tcbrt.c: main () -> main (void). 2002-10-18 Paul Zimmermann * tests/Makefile.am, tests/tcbrt.c: added tcbrt.c, test file for mpfr_cbrt * hypot.c: fixed overflow problem * cbrt.c: completely rewritten using mpz_root * Makefile.am: added cbrt 2002-10-17 Vincent Lefevre * mpfr.texi: C9X -> ISO/IEC 9899:1999 (ISO C99). * set_ld.c: Cases NaN and -0.0 taken into account. 2002-10-17 Paul Zimmermann * tests/tset_ld.c: added check for +0 and -0 * tests/tset_ld.c: added one test (2^1024) * set_ld.c: fixed bug when overflow for double type * mpfr.texi: added mpfr_set_ld and mpfr_get_ld 2002-10-16 Vincent Lefevre * get_ld.c: Fix for -0.0. 2002-10-16 Paul Zimmermann * log_b2.h: constants for mpfr_get_str and mpfr_set_str 2002-10-16 Vincent Lefevre * tests/tset_ld.c: Obsolete comment removed. * Makefile.am: Removed log_b2.h as it doesn't seem to be necessary. 2002-10-16 Paul Zimmermann * mpfr.h: added prototype for mpfr_get_ld * Makefile.am, get_ld.c, tests/tset_ld.c: added mpfr_get_ld and tests for set_ld/get_ld * set_ld.c: added cast to long double 2002-10-16 Vincent Lefevre * TODO: Update (tset_ld). * tests/tset_ld.c: Test removed as the minimal precision for a long double is something like 10 decimal digits. Anyway, there are implementations for which long double = double = IEEE double precision. * set_ld.c: DBL_MANT_DIG and LDBL_MANT_DIG are normally defined by . 2002-10-15 Paul Zimmermann * Makefile.am, mpfr.h, set_ld.c, tests/Makefile.am, tests/tset_ld.c: added mpfr_set_ld and test file 2002-10-13 Vincent Lefevre * BUGS: Bug in mpfr_sin (and perhaps other functions): error analysis. * atan.c: Bug fixed (found by Dmitrii Baksheyev): atan(1) cannot be exact. 2002-10-08 Kevin Ryde * TODO: Remove mpfr_get_str using mpn_get_str (done). Remove no grepping for __setfpucw, done (near enough). New thread-safety section, add const_pi and const_log2 caching. New portability section, add mingw random and _mpfr_ceil_log2 IEEE-ism. * acinclude.m4 (AC_MY_LIBS): Show the filename in the error message. 2002-10-04 Paul Zimmermann * mpf2mpfr.h: mpfr_get_default_prec was missing (thanks to F. Morain) 2002-09-30 Vincent Lefevre * BUGS: Removed get_str.c bug, as the mpfr_get_str function has completely been rewritten. 2002-09-26 Paul Zimmermann * sub.c: fixed wrong inexact flag for a - b where a and b are of different signs and EXP(a) < EXP(b) * tests/tsub.c: added test for inexact flag (bug found by Andreas Enge) 2002-09-23 Kevin Ryde * mpfr.texi, set_prec.c, init2.c, init.c, mpfr.h (mpfr_init, mpfr_init2, mpfr_set_prec): Make void return, these always succeed. 2002-09-23 Paul Zimmermann * urandomb.c: fixed various tiny problems * tests/trandom.c: added more tests for mpfr_urandomb, and for small precision * random2.c, tests/trandom.c: fixed bugs in mpfr_random2 (wrong exponent, invalid numbers) * tests/trandom.c: added checks for mpfr_random2 * tests/tadd.c, tests/tsub.c, cmp_abs.c, mpfr.h, mpfr.texi, pow.c: cmp_abs -> cmpabs (for compatibility with mpz) 2002-09-21 Kevin Ryde * mpfr.texi (Converting Floats): Don't refer to the internal _mp_free_func with mpfr_get_str. * mpfr.texi (Special Functions, Internals): Make these into nodes. 2002-09-20 Paul Zimmermann * set_str.c: now accept uppercase letters too * tests/tset_str.c: added test for uppercase letters 2002-09-18 Paul Zimmermann * agm.c, mpfr.h, mpfr.texi: now mpfr_agm returns an int (inexact flag) 2002-09-13 Vincent Lefevre * prepare, README.dev: Some more information. 2002-09-12 Vincent Lefevre * configure.in: On HP-UX, use the +allowunsats switch for ld, otherwise ld complains that some GMP symbols are unsatisfied. 2002-09-12 Paul Zimmermann * tests/tgamma.c, gamma.c: fixed bug in reflection formula for x<1 2002-08-23 Vincent Lefevre * INSTALL, mpfr.texi: MPFR now needs GMP 4.1 or higher. 2002-08-22 Kevin Ryde * mpfr-math.h (__mpfr_nan): Clarify comments about HP C and alpha. * mpfr-math.h: (_MPFR_NAN_BYTES, _MPFR_INFP_BYTES, _MPFR_INFM_BYTES): Use HAVE_DOUBLE_IEEE_LITTLE_ENDIAN etc to select endianness, not a big block of #ifdefs. 2002-08-12 Vincent Lefevre * acinclude.m4, strcasecmp.c, strncasecmp.c: strcasecmp.c -> strcasecmp.c & strncasecmp.c 2002-08-07 Kevin Ryde * tests/Makefile.am: Use $(top_builddir) consistently with libmpfr.a, for the benefit of srcdir!=builddir. 2002-08-02 Vincent Lefevre * configure.in: Don't touch user specified flags (CFLAGS). [patch by Kevin Ryde] 2002-07-30 Vincent Lefevre * acinclude.m4, mpfr-impl.h, set_str.c: Better check for strcasecmp and strncasecmp. Bug fixed. 2002-07-28 Vincent Lefevre * Makefile.am, TODO, comparisons.c, mpfr.h: Functions mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p, mpfr_lessequal_p, mpfr_lessgreater_p, mpfr_equal_p, mpfr_unordered_p. * prepare, tests/Makefile.am, Makefile.am: Use AUTOMAKE_OPTIONS = gnu [suggested by Kevin Ryde] * tests/Makefile.am: check target -> TESTS = $(check_PROGRAMS) [suggested by Kevin Ryde] * mpfr-impl.h, strcasecmp.c: strcasecmp and strncasecmp -> mpfr_strcasecmp and mpfr_strncasecmp if they are provided by MPFR. * get_str.c: TMP_MARK missing (patch by Kevin Ryde). 2002-07-26 Vincent Lefevre * ChangeLog: Update. * README, README.dev: Update (mainly concerning CVS use). * TODO, exceptions.c, exp.c, mpfr-impl.h, next.c, setmax.c, setmin.c: Prototype of mpfr_setmax and mpfr_setmin changed (exponent given). In mpfr_exp for x ~= 0, add_one_ulp and sub_one_ulp are no longer used (sub_one_ulp was incorrect). These cases should now be faster. Small fix in mpfr_nextabove, mpfr_nextbelow and mpfr_nexttoward. * next.c, setmax.c, setmin.c, sub_one_ulp.c, Makefile.am, TODO, exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi: New internal functions mpfr_setmin and mpfr_setmax. New functions mpfr_nextabove, mpfr_nextbelow, mpfr_nexttoward. Small fix in mpfr_sub_one_ulp. 2002-07-26 Paul Zimmermann * get_str.c: improved the computation of g = ceil((e-1)/log_2(beta)), using two tables 2002-07-25 Vincent Lefevre * mpfr-impl.h, mpfr.texi, save_expo.c, set_q.c, sqrt_ui.c, sub_ui.c, ui_pow_ui.c, add_ui.c, exceptions.c: Function mpfr_check_range now propagates the inexact ternary value. Function mpfr_restore_emin_emax OR's the saved flags with the current flags, as this is more useful in general. Macro MPFR_RESTORE_RET removed (no longer useful). 2002-07-24 Vincent Lefevre * frac.c: Change concerning an assertion, due to GMP limitation. 2002-07-24 Paul Zimmermann * tests/tout_str.c: gnu indentation * tests/tgamma.c: reduce range of tests (did take too much time) * tests/tget_str.c: added plenty of new cases, now covers all lines of get_str.c * mpfr.texi: updated documentation of mpfr_get_str * get_str.c: completely new version, written by Alain Delplanque and Paul Zimmermann. It now directly uses mpn_get_str, with subquadratic complexity. About 3 times faster than previous version in most cases. 2002-07-24 Vincent Lefevre * frac.c: Bug fixed: unsigned int variables changed to int to avoid operations with mixed signed/unsigned variables and unwanted casts. * Makefile.am, frac.c, mpfr.h, mpfr.texi, tests/Makefile.am, tests/tfrac.c: Function mpfr_frac and tests added. * set.c: Bug fixed (0 was forgotten). * isinteger.c: Optimization: mpfr_trunc no longer used! * isinteger.c: mpfr_isinteger extended to non-fp numbers and to zero. * isnum.c: Simpler test. 2002-07-23 Vincent Lefevre * mul.c: Re-adding mul.c with fixed permissions. * mul.c: Temporarily removing mul.c in order to try to fix its permissions. * mul.c: Fixed permissions. * exceptions.c, mpfr-impl.h, mpfr.h, mpfr.texi, set_si.c, set_ui.c, tests/texceptions.c: Function mpfr_check_range improved in the underflow case. 2002-07-22 Vincent Lefevre * ChangeLog: Update. 2002-07-22 Paul Zimmermann * dump.c: now dump in base 2 * tests/tget_str.c: forgot one free() call 2002-07-22 Vincent Lefevre * BUGS: mpfr_pow bug removed. * pow.c: Reindentation. * pow.c, tests/tpow.c: pow.c: bug fixed (in the call to mpfr_can_round). tpow.c: mpfr_clear added. * tests/tpow.c: Modified the two tests to make the bug appear. 2002-07-22 Paul Zimmermann * tests/tpow.c: added two tests 2002-07-19 Vincent Lefevre * README.dev: Updated note concerning rcs2log. * TODO: Line mpfr_get_exp / mpfr_set_exp removed. 2002-07-16 Paul Zimmermann * tests/tget_str.c: added function check_large 2002-07-15 Vincent Lefevre * config.guess, config.sub: Update from ftp://ftp.gnu.org/pub/gnu/config/ 2002-07-14 Vincent Lefevre * mpfr-math.h: Add __sparc__ (patch by Nix ). * TODO: Note about randomized tests. 2002-07-04 Vincent Lefevre * BUGS: Bug concerning the rounding of pow(). * pow.c: mpfr_pow() didn't work when the exponent was a negative integer. * get_z_exp.c: mpfr_get_z_exp() didn't work when the MPFR number was negative. * Makefile.am, get_exp.c, mpfr.h, mpfr.texi, set_exp.c: New functions mpfr_get_exp and mpfr_set_exp. 2002-06-27 Paul Zimmermann * TODO: removed duplicated entry (thread-safe) * TODO: added new items * tests/tpow.c: added special cases * algorithms.tex: added one reference (nocite) * algorithms.bib: added one reference * inp_str.c: fixed bug in return value * TODO: new additions * mpfr.texi: added pointer to mpfr_inp_str in mpfr_set_str 2002-06-26 Vincent Lefevre * ChangeLog: Update. * exceptions.c, mpfr-impl.h, mul.c, mul_ui.c, print_raw.c, rint.c, round_prec.c, set.c, set_si.c, set_ui.c, set_z.c, sqrt.c, sub1.c, add1.c, add_one_ulp.c, div.c: MP_LIMB_T_HIGHBIT -> MPFR_LIMB_HIGHBIT. MPFR is now compatible with GMP 4.1. 2002-06-15 Vincent Lefevre * TODO: Added: make MPFR thread-safe. 2002-06-14 Paul Zimmermann * set_q.c: fixed bug found by Gerardo Ballabio * tests/tset_q.c: added one test (bug in mpfr-2.0.1 found by Gerardo Ballabio) 2002-06-13 Paul Zimmermann * TODO: added mpfr_modf 2002-06-12 Vincent Lefevre * TODO: Added modf (to implement). 2002-06-08 Vincent Lefevre * tests/tmul.c, tests/tadd.c: check: Apply a hack to the parameter order to make sparc gcc 2.95.2 happy (patch by Kevin Ryde) + static added. * mpfr.texi: Patch by Kevin Ryde. * tests/tsqrt.c, tests/tsqrt_ui.c: Suppress tests if sqrt is not affected by mpfr_set_machine_rnd_mode (patch by Kevin Ryde). * ChangeLog: Update. * README: fdl.texi added. * Makefile.am, README.dev, fdl.texi, mpfr.texi, texinfo.tex: Patch by Kevin Ryde (and Vincent Lefevre). mpfr.texi: Change license to FDL, use @copying per texinfo 4.2. Use @dircategory, @direntry, @documentdescription. Move @contents to start of file. (VERSION, UPDATED): New variables. (m, GMPtimes, times): New macros. (Float Arithmetic): Fix html output. Reported by Richard Dawe. (GNU Free Documentation License): New appendix. 2002-06-06 Vincent Lefevre * rnd_mode.c: Use gmp-impl.h to get MPFR_HAVE_FESETROUND (reported by Kevin Ryde). 2002-06-05 Paul Zimmermann * ChangeLog: patch for mpfr.texi * mpfr.texi: patch from Richard Dawe to generate HTML * tests/Makefile.am, tests/tgamma.c, Makefile.am, gamma.c, mpfr.h, mpfr.texi: added mpfr_gamma in libmpfr 2002-06-05 Vincent Lefevre * tests/tests.c, acinclude.m4, mpfr-test.h: Check for isnan. 2002-05-29 Vincent Lefevre * rint.c, sub_one_ulp.c, add_one_ulp.c, sub1.c, add1.c: Bug fixed (possible integer overflow). * exceptions.c: Note added for mpfr_check_range. Bug fixed. * urandomb.c: Sign wasn't set (reported by Dmitrii Baksheyev). Types fixed and code clean-up. * random.c: Types fixed and code clean-up. 2002-05-27 Vincent Lefevre * tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsinh.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_pow.c, tests/tui_sub.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/tests.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tget_str.c, tests/Makefile.am, tests/memory.c, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, TODO, const_log2.c, const_pi.c, mpfr-impl.h, mpfr-test.h: Patch by Kevin Ryde for memory leak checking + misc declaration fixes. Code moved from mpfr-test.h to tests.c. 2002-05-14 Vincent Lefevre * TODO: Ternary flag for mpfr_agm. * tests/texceptions.c, tests/texp2.c, tests/texpm1.c, tests/tfma.c, tests/tgamma.c, tests/thypot.c, tests/tlog1p.c, tests/tlog2.c, tests/tpow3.c, tests/tset.c, tests/tsinh.c, tests/tsub.c, tests/tswap.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_pow.c, tests/tzeta.c, tests/tacos.c, tests/tacosh.c, tests/tasinh.c, tests/tatanh.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcosh.c, div.c, exceptions.c, gamma.c, generic.c, init.c, init2.c, isinteger.c, mpfi.h, out_str.c, set_si.c, set_str_raw.c, set_ui.c, sub.c, ui_div.c, zeta.c, acos.c, add.c, asin.c, atan.c, cmp2.c, const_euler.c, const_log2.c, const_pi.c: Copyright line updated. 2002-05-14 Paul Zimmermann * TODO: ternary flag for mpfr_agm? * TODO: update wrt mpfr_set_machine_rnd_mode * mpfr.texi: added mathematical description of arithmetico-geometric mean 2002-05-08 Vincent Lefevre * INSTALL, acinclude.m4: The problem on a G4 PowerPC was a bug in gcc; this is now tested in configure (float-conversion bug) and -ffloat-store is used if need be. 2002-05-06 Vincent Lefevre * INSTALL: Problem on the G4 PowerPC. 2002-04-30 Paul Zimmermann * tests/tpow.c, algorithms.tex, pow.c: fixed problem (infinite loop) in mpfr_pow for exact powers * mpfr.texi: fixed errors found by Sylvain Pion 2002-04-27 Vincent Lefevre * mpfr.texi: not relevant -> undefined. * mpfr.texi: Some changes concerning the internals and zeros (including remarks by Kevin Ryde). 2002-04-25 Vincent Lefevre * acinclude.m4, mpfr-math.h: Check if HUGE_VAL is supported. * TODO: Changes in mpfr_set_str. 2002-04-25 Paul Zimmermann * TODO: update * mpfr.texi, set_str.c: mpfr_set_str doesn't require any more a final '\0' and return the number of characters read * tests/tset_str.c: modified tests for special values 2002-04-24 Vincent Lefevre * cmp_abs.c: Description updated. * mpfr-impl.h, mpfr.h, mpfr.texi: mpfr_cmp_abs no longer an internal function and described in mpfr.texi. In mpfr.texi, a @var{} was forgotten. * cmp_abs.c: mpfr_cmp_abs can now be called on zero numbers. * mpfr-math.h: Structures are used to get correct alignment. 2002-04-23 Vincent Lefevre * mpfr-math.h: _MPFR_INF*_BYTES fix. On alpha, use a "double" for the bytes, to avoid a mis-conversion on alpha gcc 3.0.2. (Kevin Ryde) * Makefile.am, div_2si.c, div_2ui.c, exceptions.c, mpfr-impl.h, mul.c, mul_2si.c, powerof2.c, set_z.c, sub1.c, sub_one_ulp.c: Underflow semantics changed (not tested). * mul.c: Code simplified due to change in the maximum exponent range. 2002-04-23 Paul Zimmermann * algorithms.tex: modifs from Andreas 2002-04-22 Vincent Lefevre * mpfr-math.h: Union -> array + cast because of the HP compiler. 2002-04-20 Vincent Lefevre * get_d.c: Avoid constant floating expression, as this doesn't give the correct result with gcc on some Alpha machines. (patch by Paul Zimmermann) 2002-04-19 Vincent Lefevre * mpfr-test.h: RAND_MAX defined if not already defined (as it should be). * mpfr-test.h: Include config.h, for the benefit of test programs not using gmp-impl.h (Kevin Ryde). 2002-04-19 Paul Zimmermann * mpfr-test.h: added tests in mpfr_test_init for denorms and extended precision * init.c, init2.c, mpfr.h, mpfr.texi: mpfr_init and mpfr_init2 now return an int 2002-04-19 Vincent Lefevre * set_q.c: Exponent range saved/restored. Returns NaN when the numerator or the denominator is too large for MPFR. * sqrt_ui.c, sub_ui.c, ui_div.c, ui_sub.c, add_ui.c, div_ui.c, mul_ui.c, set_si.c, set_ui.c: Added some assertions (any unsigned long must be representable in a mp_limb_t). * cmp_si.c, mpfr-impl.h, set_si.c: SAFE_ABS changed so that it can be used for any unsigned type. 2002-04-18 Vincent Lefevre * set_z.c: Added code to prevent possible integer overflow when the input number is very large. * mpfr.h: New values for exponent range. 2002-04-18 Paul Zimmermann * tests/tadd.c: call get_d with rounding mode in check2, to avoid problems near +Inf * mpfr-test.h: 2147483647 -> INT_MAX * tests/tadd.c, mpfr-test.h: improved ulp() to deal with infinities and fixed tadd/check2 to deal with infinities 2002-04-17 Paul Zimmermann * mpfr.texi: improved documentation of mpfr_set_precset_prec. 2002-04-16 Paul Zimmermann * mpfr.texi: fixed documentation of cosh/sinh/tanh 2002-04-16 Vincent Lefevre * Makefile.am, cmp_si.c, cmp_ui.c, mpfr.h, mpfr.texi: mpfr_cmp_ui_2exp and mpfr_cmp_si_2exp rewritten. Prototype changed. * acinclude.m4, configure.in: Use AC_CANONICAL_HOST and $host instead of $OS_TYPE and $MACHTYPE (patch suggested by Kevin Ryde). * config.guess, config.sub: Added files from ftp.gnu.org for automake and AC_CANONICAL_HOST. 2002-04-15 Paul Zimmermann * tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tdiv_ui.c, tests/tout_str.c, tests/tset_d.c, tests/tsub_ui.c, tests/tui_sub.c: replaced 2.2e-307 by DBL_MIN 2002-04-15 Vincent Lefevre * README: Typo: Gnu -> GNU. * VERSION, mpfr.texi: Update for future 2.0.2. * ChangeLog: Update for mpfr 2.0.1. * VERSION, mpfr.texi, README.dev: Back to version 2.0.1, updated documentation. * README.dev, VERSION: Post-release commit. * ChangeLog: Update for mpfr 2.0.1. * cmp_ui.c: mpfr_cmp_ui_2exp and mpfr_cmp_si_2exp can no longer be called with a NaN. Misc bugs fixed. 2002-04-15 Paul Zimmermann * NEWS: added main changes in version 2.0.1 2002-04-15 Vincent Lefevre * Makefile.am, README: Update for "make dist". * tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/reuse.c, ui_sub.c, urandomb.c, zeta.c, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, set_d.c, set_dfl_prec.c, gmp_op.c, hypot.c, init.c, init2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-math.h, mpfr-test.h, mpfr.h, mpfr.texi, mul.c, mul_2exp.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_d.c, get_str.c, get_z_exp.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, dim.c, COPYING, COPYING.LIB, README, acos.c, acosh.c, add.c: COPYING -> COPYING.LIB and GPL re-added. * BUGS: Update. * configure.in: Removed switches -g -O2 as already done by configure. 2002-04-14 Vincent Lefevre * INSTALL: Update. * mpfr.texi: Removed useless @iftex... * TODO: Update. * set_q.c: When q = 0, +0 is returned. 2002-04-13 Vincent Lefevre * ChangeLog: Update for the next pre-release. * tests/tset_str.c, Makefile.am, acinclude.m4, set_str.c, strcasecmp.c: Support for NaN and Inf (case insensitive) in mpfr_set_str. Tests. * acinclude.m4: Bug fixed. * ChangeLog: Update for the next pre-release. * acinclude.m4, configure.in: Misc changes. Use of AC_CACHE_CHECK. 2002-04-12 Vincent Lefevre * tests/tconst_log2.c, tests/texp.c, exp3.c, exp_2.c, mpfr-impl.h, exp.c: Code clean-up. * ChangeLog: Update for the next pre-release. * tests/tget_d.c: New tests. * BUGS, get_d.c: mpfr_get_d* fixed. * INSTALL, const_log2.c: Types fixed in const_log2.c (this fixes the tconst_log2 crash). * README.dev: Added a note about the native SunOS 4 C compiler. 2002-04-11 Vincent Lefevre * tests/tconst_log2.c: Type fixed. * set_d.c, BUGS: mpfr_set_d bug fixed, but other bugs still remain... * print_rnd_mode.c: NULL was undeclared on some architectures (reported by Torbjorn Granlund). * configure.in: LDFLAGS changed on HP-UX. * ChangeLog: Update for the next pre-release. * tests/tget_d.c: Subnormal test in different rounding modes + fix. * acinclude.m4, configure.in: Function MPFR_CONFIGS. * tests/tget_d.c: Tests added. * BUGS, get_d.c: get_d.c partly rewritten (Paul Zimmermann). * configure.in: Check for gcc float-conversion bug. 2002-04-10 Vincent Lefevre * round_prec.c: Added comment for mpfr_round_raw_generic (about using 1-bit precision). * mpfr.texi: Update (thanks to Nathalie Revol). * ChangeLog: Update for the next pre-release. * tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, rnd_mode.c, configure.in: HAVE_FESETROUND renamed to MPFR_HAVE_FESETROUND to avoid possible name conflict. * Makefile.am, srandom.h: Added missing headers in libmpfr_a_SOURCES. 2002-04-09 Vincent Lefevre * ChangeLog: Update for the next pre-release. * INSTALL: Possible tconst_log2 crash under Solaris. * configure.in: Under OSF, use option -ffloat-store only when the compiler is gcc. * Makefile.am: include_HEADERS should contain only mpfr.h and mpf2mpfr.h. * configure.in: Added code to support fesetround under Solaris. * INSTALL: "In case of problem" update. * INSTALL: Old URL removed. * INSTALL: Renaming: DIR -> GMPINSTALL, GMPDIR -> GMPBUILD. Bug on IRIX updated. * INSTALL: Removed note about stack-alloc.h. * tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, configure.in, rnd_mode.c: Check for fenv.h -> check for fesetround. * README.dev: Added note concerning patch submission. 2002-04-08 Vincent Lefevre * mpfr.texi: Note about overflows. Functions mpfr_{div,mul}_{si,ui} described. 2002-04-07 Vincent Lefevre * ChangeLog: Update for the next (and last?) pre-release. * configure.in: Stricter test for HAVE_INFS. * BUGS: Update. * INSTALL: Added note about IRIX. * ChangeLog: Update for the next pre-release. * tests/tzeta.c, tests/tlog10.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/trandom.c, tests/tround_prec.c, tests/tset_d.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tcmp_ui.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/texp2.c, tests/tfma.c, tests/tget_d.c, tests/tlog.c, mpf2mpfr.h, mpfr.h, mpfr.texi, zeta.c, agm.c, exp.c, exp_2.c, get_d.c, log.c, log10.c: mpfr_get_d -> mpfr_get_d1 and mpfr_get_d2 -> mpfr_get_d. 2002-04-06 Vincent Lefevre * ChangeLog: Update for the next pre-release. * INSTALL: Update. 2002-04-05 Vincent Lefevre * INSTALL: New file from Paul. * Makefile.am: COPYING.LIB removed. * tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/reuse.c, tests/tabs.c, tanh.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sin_cos.c, sinh.c, sqrt.c, sqrt_ui.c, srandom.h, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_inf.c, set_nan.c, set_prc_raw.c, init.c, init2.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-math.h, mpfr-test.h, mpfr.h, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_d.c, get_str.c, get_z_exp.c, gmp_op.c, hypot.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, cbrt.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, COPYING, COPYING.LIB, acos.c, acosh.c: COPYING.LIB -> COPYING. * README, README.dev: README.dev added. 2002-04-05 Paul Zimmermann * sqrt.c: put back label removed by error * mpfr-test.h: removed _FPU_RC_NEAREST ... for x86 (not used any more, now use fenv.h) * agm.c, sqrt.c: removed nested TMP_MARK's (problems when configuring gmp with --disable-alloca) * agm.c: fixed pb with two markers (with --disable-alloca) 2002-04-05 Vincent Lefevre * shortmul.c: Removed (not used). 2002-04-05 Paul Zimmermann * tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tset_q.c, configure.in, mpfr-test.h, rnd_mode.c: use AC_CHECK_HEADERS to check for fenv.h and AC_CHECK_FUNCS to check for lrand48 2002-04-04 Vincent Lefevre * README: Added "VERSION" and "prepare" descriptions. 2002-04-04 Paul Zimmermann * mpfr.texi: fixed bugs found by Nathalie 2002-04-04 Vincent Lefevre * ChangeLog: Update for the next pre-release. * configure.in: Removed check for extended precision, as no longer used. 2002-04-04 Paul Zimmermann * tests/tget_d.c: added check for denormalized numbers * TODO: added new functions to implement 2002-04-03 Vincent Lefevre * ChangeLog: Update for the next pre-release. * configure.in: -ffloat-store is a gcc option. * configure.in: Added 4th argument to AC_TRY_RUN. * configure.in: Re-fix. 2002-04-03 Paul Zimmermann * configure.in, mpfr-test.h: added check for fpu_control.h * tests/tadd.c: added missing cast to double 2002-04-02 Vincent Lefevre * configure.in: [ ] used around error message. * ChangeLog: Update. * configure.in: Check BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB. * sqrtrem.c, Makefile.am, mpfr-impl.h: sqrtrem.c removed. * ChangeLog: New ChangeLog file (generated by rcs2log). * configure.in: Suppress PACKAGE and VERSION definitions for the compiler. 2002-04-01 Paul Zimmermann * Configure: old file 2002-03-31 Paul Zimmermann * mpfr.texi: more "internal" changes suggested by Vincent * mpfr.texi: added suggestions from Kevin in "internals" 2002-03-28 Paul Zimmermann * tests/tset_d.c: added test for denorms * set_d.c: on a 32-bit machine, denormalized numbers with high 32 bits to 0 were flushed to zero 2002-03-27 Paul Zimmermann * asin.c: sign of sin(-1) was not set * tests/tasin.c: added check for asin(-1) * tests/texp2.c: added one test * exp2.c: previous fix was completely wrong * cmp_ui.c: fixed pb in cmp_si when i = -2^31 (then beware that -1 * i < 0 !!!) * exp2.c: added check for underflow 2002-03-26 Paul Zimmermann * tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tfma.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_ui.c, tests/tpow.c, tests/tset_d.c, tests/tset_q.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c: - use mpfr_test_init to initialize harware floats - use #ifdef HAVE_INFS when using DBL_NAN, ... - fixed some problems with wrongly converted f-p values (esp. under IRIX) * configure.in: use AC_TRY_CPP instead of AC_TRY_RUN for fenv.h (otherwise fails on Itanium) * mpfr-test.h: added function mpfr_test_init to initialize full IEEE behaviour * fma.c: put back simple algorithm that computes x*y exactly and then directly calls mpfr_add, to avoid wrong inexact flags * tests/tset_si.c, tests/tset_q.c: added 2002 in copyright line * tests/tget_d.c: fixed problem on x86 (set precision to double to avoid double rounding) * tests/tdump.c: added 2002 in copyright line * configure.in: added check for valid 1/0, denormalized, and extended precision 2002-03-26 Vincent Lefevre * tests/tget_d.c: New-style comment removed. 2002-03-26 Paul Zimmermann * mpfr.texi: added a description of the mpfr_t type in "Internals" 2002-03-26 Vincent Lefevre * tests/tagm.c, tests/tdiv.c, tests/tlog.c, tests/tmul_2exp.c, tests/tout_str.c, tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tui_div.c: Patch by Kevin Ryde + misc fixes. 2002-03-25 Paul Zimmermann * tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tout_str.c: replaced getpid() by time(NULL) * set_str_raw.c: MPFR_SIZE and sign were incorrectly set [thanks Kevin] * tests/tsqrt.c: added check_nan (from Kevin) * sqrt.c: fixed bug for sqrt(-0) found by Kevin [NaN flag not cleared] 2002-03-22 Vincent Lefevre * tests/tget_d.c: Error message now copes with extended precision. 2002-03-22 Paul Zimmermann * configure.in, mpfr-test.h, mpfr.texi, rnd_mode.c, tests/tget_d.c: added test in configure for checking rand48 functions (HAVE_RAND48) and fenv.h (HAVE_FENV) added mpfr_set_machine_rnd_mode (if fenv.h exists) replaced TEST by HAVE_FENV 2002-03-22 Vincent Lefevre * tests/tadd_ui.c, tests/tget_d.c, tests/tmul_2exp.c, tests/trandom.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c: Missing #include. * set_nan.c: MPFR_RETNAN shouldn't be used as no value is returned. * set_inf.c: Regarde 0 as positive rather than negative (though it's better not to use it). * isinteger.c: Memory leak (patch by Kevin Ryde). 2002-03-21 Paul Zimmermann * tests/tdiv_ui.c, tests/texp.c, tests/tget_d.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/trint.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcmp2.c, tests/tdiv.c: replaced rand/lrand48, drand48, srand/srand48 by macros LONG_RAND, DBL_RAND, SEED_RAND and time(NULL) by getpid() * mpfr-test.h: added macros LONG_RAND, DBL_RAND, SEED_RAND * Makefile.am: added VERSION and mpfr-math.h for "make dist" 2002-03-19 Paul Zimmermann * set_inf.c, set_nan.c: new functions * tests/tcmp.c, tests/tcos.c, tests/tdiv.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tpow.c, tests/tsin.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c: now use macros DBL_NAN, DBL_POS_INF, DBL_NEG_INF, and functions mpfr_set_nan, mpfr_set_inf * mpfr-impl.h: defined macros for 0/0, 1/0, -1/0 * Makefile.am, mpfr.h, mpfr.texi: added new functions mpfr_set_nan and mpfr_set_inf 2002-03-19 Vincent Lefevre * VERSION, configure.in: File VERSION added. Contains the next version (currently 2.0.1). configure.in updated accordingly. * tests/tadd.c, get_d.c, mpfr-math.h: Macros MPFR_DBL_NAN, MPFR_DBL_INFP and MPFR_DBL_INFM. 2002-03-19 Paul Zimmermann * tests/tmul_ui.c: MP_LIMB_T_HIGHBIT -> ULONG_HIGHBIT * tests/tdiv.c: moved code under #ifdef * tests/tadd.c: moved code under #ifdef TEST * set_d.c: remove variable sizer (not used) * cbrt.c: Library GPL -> Lesser GPL * TODO: updated * fma.c: changed Nt variable to signed 2002-03-17 Vincent Lefevre * fma.c: Some changes in the types. * log.c, log10.c, log2.c: Bugs fixed. 2002-03-17 Paul Zimmermann * Makefile.am, mpfr.h, mpfr.texi: added back mpfr_sin_cos * sin_cos.c: new version (adapted from sin.c) * tests/ttan.c: added tests for tan(3*Pi/4) and tan(7*Pi/4) * tan.c: fixed bug for tan(3*Pi/4) [wrong sign] * tests/tlog10.c: added test for log(10^n) * log10.c: fixed infinite loop problem for log(10^n) 2002-03-13 Vincent Lefevre * tests/reuse.c: Fix (patch by Kevin Ryde). * get_d.c: Do not read the exponent if it has no meaning. 2002-03-12 Vincent Lefevre * mpfr.texi: mpfr_random update (patch by Kevin Ryde). * BUGS: 2 more known bugs. * mpfr.texi: mpfr_a{cos,sin,tan} documentation at a better place. * acos.c: Some mpfr_clear added (patch by Kevin Ryde). 2002-03-11 Vincent Lefevre * tests/tget_d.c, TODO, get_d.c: mpfr_get_d3 partially rewritten (to follow the new specifications). tget_d.c updated because of changes in get_d.c. * print_rnd_mode.c, mpfr.texi: Return a null pointer if rnd_mode is an invalid rounding mode. 2002-03-11 Paul Zimmermann * set_si.c: set sign before calling mpfr_check_range * tests/tset_si.c: stupid typo in previous commit * exp_2.c: removed expx (not used) * tests/tset_si.c, set_si.c: fixed typo (ai [potentially unsigned] replaced by i) 2002-03-11 Vincent Lefevre * tests/tget_d.c, TODO, get_d.c, get_str.c, mpfr-impl.h, mpfr.h, mpfr.texi: New mpfr_get_d, mpfr_get_d2, mpfr_get_d3. 2002-03-11 Paul Zimmermann * print_rnd_mode.c: added return 2002-03-11 Vincent Lefevre * set_d.c, Makefile.am, get_d.c: set_d.c split into get_d.c and set_d.c 2002-03-11 David Daney * cbrt.c: add cbrt in fonctionnality 2002-03-11 Vincent Lefevre * BUGS: Bug removed. 2002-03-07 Paul Zimmermann * sinh.c: fixed problem when te=ti=1 (i.e. t=0) found by Kevin Ryde * tests/reuse.c: simplified test4() 2002-03-06 Vincent Lefevre * BUGS, TODO: Update. * mpfr.texi: Patch by Kevin Ryde concerning nodes/menus. 2002-03-05 Vincent Lefevre * tests/reuse.c: Casts fixed. 2002-03-04 Vincent Lefevre * internal_ceil_log2.c, internal_floor_log2.c, mpz_set_fr.c, uceil_exp2.c, uceil_log2.c, ufloor_log2.c, Makefile.am, get_z_exp.c, internal_ceil_exp2.c: File renaming. * tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/trint.c, tests/tround_prec.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog10.c, tests/tlog1p.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texceptions.c, tests/reuse.c, tests/tabs.c, tests/tacos.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, sqrtrem.c, srandom.h, sub.c, sub1.c, sub_one_ulp.c, sub_ui.c, swap.c, tan.c, tanh.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_2si.c, mul_2ui.c, mul_ui.c, neg.c, out_str.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rint.c, rnd_mode.c, round_prec.c, save_expo.c, set.c, internal_ceil_log2.c, internal_floor_log2.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log10.c, log1p.c, log2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-test.h, mpfr.h, eq.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_str.c, gmp_op.c, hypot.c, init.c, init2.c, inp_str.c, internal_ceil_exp2.c, atanh.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, const_euler.c, const_log2.c, const_pi.c, copysign.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c, div_2si.c, div_2ui.c, div_ui.c, dump.c, acos.c, acosh.c, add.c, add1.c, add_one_ulp.c, add_ui.c, agm.c, asin.c, asinh.c, atan.c: Copyright line changed. 2002-03-01 Paul Zimmermann * AUTHORS: updated * atan.c, exp_2.c, mpfr.h, mpfr.texi, mpz_set_fr.c, pow.c: changed name of mpz_set_fr to mpfr_get_z_exp 2002-02-28 Vincent Lefevre * tests/tabs.c, tests/tadd.c, tests/tdiv.c, tests/tdiv_ui.c: Removed some dependencies. * tests/tget_d.c: Fixed. * set_d.c: mpfr_get_d rewritten (still needs to be fixed when the result is a subnormal). 2002-02-27 Vincent Lefevre * tests/tget_d.c: mpfr_get_d2 tested. * TODO: Update. * tests/tget_d.c, tests/tset_d.c: New tests. * configure.in: Additional flags for gcc + minor changes. * get_str.c: Minor update. 2002-02-25 Vincent Lefevre * mpfr-impl.h, set_d.c: mpfr_get_d2 prototype changed (mp_exp_t instead of long). __mpfr_scale2 fixes: checks for integer overflows, signed zeros, exact rounding for subnormals in the rounding to the nearest mode (problems due to multiple roundings avoided). mpfr_get_d2: signed zeros taken into account. This function still needs to be rewritten (because of multiple roundings). 2002-02-21 Vincent Lefevre * internal_ceil_exp2.c, internal_ceil_log2.c, internal_floor_log2.c, Makefile.am, agm.c: _mpfr_ceil_log2, _mpfr_floor_log2, _mpfr_ceil_exp2 in separate files. 2002-02-19 Vincent Lefevre * get_str.c: Fixes, code clean-up and some asserts against integer overflows. Code need to be checked. 2002-02-14 Vincent Lefevre * const_pi.c, cos.c, cosh.c, exp3.c, exp_2.c, gamma.c, generic.c, get_str.c, sin.c, sinh.c, tanh.c, zeta.c, acos.c, agm.c, atan.c, atanh.c, const_euler.c, const_log2.c: mpfr_{div,mul}_2exp -> mpfr_{div,mul}_2ui. * get_str.c: Partial code clean-up and some asserts against integer overflows (2). 2002-02-13 Vincent Lefevre * get_str.c: Partial code clean-up and some asserts against integer overflows. * mpfr-impl.h, mpfr.h: MP_EXP_T_MAX and MP_EXP_T_MIN defined. * mpfr-impl.h: Macros IS_POW2 and NOT_POW2. 2002-02-12 Vincent Lefevre * ui_pow_ui.c: Use mpfr_save_emin_emax and MPFR_RESTORE_RET. * tests/tdump.c: Update due to changes in mpfr_get_str. * get_str.c, mpz_set_fr.c, out_str.c: mpfr_get_str: the returned exponent for 0 is 0 (like in frexp()). mpz_set_fr.c: comment added. out_str.c: minor changes. * BUGS: Update. * ui_pow_ui.c: Bug fixed and other changes. * mpfr.texi: NULL -> null pointer and other small changes. * get_str.c, mpfr.texi: mpfr_get_str: null pointer returned in case of error, NaN taken into account. 2002-02-11 Vincent Lefevre * mpfr.texi, set_str.c: mpfr_set_str partially rewritten to cope with integer overflows. The rounding code hasn't been fixed yet. 2002-02-08 Vincent Lefevre * mpfr.texi: Typo. * set_str.c, mpfr.texi: mpfr_set_str: base must be between 2 and 36. 2002-02-06 David Daney * acosh.c: chnage the return values * tests/thyperbolic.c: Change the test return values 2002-02-06 Vincent Lefevre * pow.c: Some optimizations. 2002-02-04 Vincent Lefevre * tan.c, tanh.c, ui_pow.c, ui_sub.c, exp.c, pow_ui.c, sin.c, sinh.c, mul.c, mul_ui.c, pow.c, mpz_set_fr.c: Misc bug fixes and code clean-up. 2002-02-03 Vincent Lefevre * mpz_set_fr.c: For the value 0, return __mpfr_emin instead of 0. 2002-02-01 Vincent Lefevre * div_ui.c, exp.c, exp2.c, expm1.c, hypot.c, log.c, log10.c, log1p.c, log2.c, pow_si.c, acosh.c, agm.c, asinh.c, atanh.c, copysign.c, cos.c, cosh.c, dim.c: Misc bug fixes and code clean-up. 2002-02-01 Guillaume Hanrot * pow_si.c: Patch. 2002-01-30 Vincent Lefevre * tests/trint.c: Bux fixed. * set_z.c: mpfr_set_z rewritten. * mpfr.texi: Update concerning mpfr_round_prec, mpfr_rint, mpfr_ceil, mpfr_floor, mpfr_round and mpfr_trunc. * tests/Makefile.am, tests/reuse.c, tests/trint.c: Tests added (mpfr_trunc, mpfr_floor, mpfr_ceil, mpfr_round). * rint.c, trunc.c, Makefile.am, mpf2mpfr.h, mpfr.h: mpfr_rint, mpfr_trunc, mpfr_floor, mpfr_ceil, mpfr_round rewritten. 2002-01-25 Vincent Lefevre * tests/tgamma.c, tests/tround.c, tests/tround_prec.c, tests/Makefile.am, tests/tacos.c, tests/tasin.c, round.c, round_prec.c, Makefile.am, cos.c, get_str.c, mpfr.h: mpfr_round -> mpfr_round_prec. * sqrt.c: Code reformatted. 2002-01-23 Vincent Lefevre * mpfr-test.h: MAX, MIN, ABS macros undefined before being redefined. Fix in ABS macro. 2002-01-22 Vincent Lefevre * tests/tmul_ui.c: Example with high bit set. * mul_ui.c: Fix (Kevin Ryde). * mpfr-impl.h, mpfr.h, mul.c, sqrt.c: MPFR_PREC_MAX redefined. MPFR_INTPREC_MAX defined (internal maximum precision). Some integer overflow detection. 2002-01-21 Vincent Lefevre * sqrt_ui.c: Set sign of sqrt(0). Support for exponent range. * sqrt.c: can_round type changed: char -> int. Case sqrt(0) improved. * sqrt.c: Bug fixes: * return 1 -> MPFR_RET_NAN * a MPFR_CLEAR_INF was missing. 2002-01-20 Vincent Lefevre * mpfr-impl.h, sub_ui.c, add_ui.c: New macro MPFR_RESTORE_RET. 2002-01-18 Vincent Lefevre * fma.c: Code clean-up (goto suppressed). * fma.c: Cases 0 * 0 + 0. * fma.c: Nt: int -> mp_prec_t * fma.c, tests/tacosh.c: <> changed back to "". 2002-01-18 David Daney * tests/tacosh.c: change "" -> <> in headers * fma.c: Change indendation + replace "" -> <> in header 2002-01-17 Vincent Lefevre * fma.c: Particular cases rewritten. * mpfr-test.h: Test "__hpux", not "hpux". Mask off mrand48 return value to 31 bits to work around sloppy mpfr #include practices. (Torbjorn Granlund) 2002-01-16 Vincent Lefevre * div.c: Comments were incorrect. 2002-01-15 Vincent Lefevre * BUGS: Note concerning mpfr_trunc, mpfr_floor and mpfr_ceil. 2002-01-14 Vincent Lefevre * div.c: Special cases. 2002-01-12 Vincent Lefevre * tests/tmul.c, tests/tout_str.c, tests/tpow.c, tests/trandom.c, tests/tset.c, tests/tset_z.c, tests/tsin.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/ttan.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tatan.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/reuse.c, tests/tabs.c, mpfr-test.h, mpfr.h, shortmul.c: Patches by Kevin Ryde for K&R compilers and other fixes in prototypes. 2002-01-10 Vincent Lefevre * tests/tmul.c: Test check_min added. * tests/tmul.c: Test check_max added. * algorithms.tex, cmp2.c, log.c: Spelling: "canceled" 2002-01-10 Paul Zimmermann * mpfr.h: GMP_PROTO change was already done by Vincent * mpfr.h: prepare change PROTO -> GMP_PROTO 2002-01-04 Vincent Lefevre * sub_one_ulp.c: The precision can no longer be 1. * mpfr.h: __GMP_PROTO defined if not already defined. * tests/tcmp.c, tests/tcmp2.c, cmp2.c, mpfr-impl.h, sub.c, sub1.c, add.c, agm.c: Optimization: mpfr_cmp2 now accepts any combination of real arguments and computes the sign of |b| - |c| (in addition to the number of cancelled bits); mpfr_add, mpfr_sub, mpfr_sub1, mpfr_agm and some tests updated to take this change into account. 2001-12-21 Paul Zimmermann * tests/tsin.c: added check for sin(3*Pi/2) * sin.c: fixed bug for sin(3*Pi/2) 2001-12-19 Vincent Lefevre * set_str_raw.c: Global NaN flag set when result is NaN. 2001-12-19 Paul Zimmermann * set_str_raw.c: forgot to clear nan flag for Inf * mpfr.texi: changed description of mpfr_cmp to correspond to the implementation: NaNs are not allowed * algorithms.tex: fixed mpfr_cmp2 : there was a bug noticed by Nicolas Magaud and Didier Bondyfalat for inputs: 100 011 111 100 010 110 where it gave 8 instead of 5. 2001-12-19 Vincent Lefevre * add1.c, sub1.c: Better comments. 2001-12-10 Paul Zimmermann * algorithms.bib, algorithms.tex: added "PI and the AGM" 2001-12-06 Vincent Lefevre * tests/Makefile.am, tests/tlog10.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c: Files renamed (log in base 2 and 10). * tests/teuler.c, tests/tlog2.c, tests/tpi.c, tests/Makefile.am, tests/tconst_euler.c, tests/tconst_log2.c, tests/tconst_pi.c: Files renamed (constants). * aclocal.m4: File aclocal.m4 removed, as generated by aclocal (called by prepare). * Makefile.am, log10.c, log2.c, log_base_10.c, log_base_2.c: Files log_base_*.c renamed. * log2.c, pi.c, Makefile.am, const_euler.c, const_log2.c, const_pi.c, euler.c: Functions (constants) renamed. * tests/Makefile.in, configure, Makefile.in: Files configure, Makefile.in, tests/Makefile.in removed. Use the `prepare' script to generate them. * BUGS: Removed 2 bugs. * prepare: Initial release. 2001-12-05 Paul Zimmermann * algorithms.tex: added arc-tangent (from Mathieu) * algorithms.tex: added paragraph on asin and acos from Mathieu Dutour * tests/Makefile.am, tests/tacos.c: added tacos * tests/tadd.c: in check5, test NaNs before calling mpfr_cmp * tests/reuse.c: added acos * Makefile.am: added acos.c * acos.c, mpfr.h, mpfr.texi: added acos (from Mathieu Dutour) * sqrt.c: use now new sqrtrem from gmp-4.0 * tests/tdiv_ui.c: improved test (avoid mpfr_get_d) * tests/tset_d.c: removed isnan prototype * rnd_mode.c: added stdlib.h for exit 2001-11-30 Paul Zimmermann * tests/tdump.c, dump.c: test NaN before Inf changed precision to 2 for test 2001-11-30 Vincent Lefevre * set_prc_raw.c: Cast added. 2001-11-30 Paul Zimmermann * tests/tatan.c: added a new test (worst case) * atan.c: nouvelle version de Mathieu Dutour, corrigeant certains bugs avec les pires cas de Vincent 2001-11-30 Vincent Lefevre * set_prec.c: Misc fixes. * fma.c: Unused variables. 2001-11-30 Paul Zimmermann * tests/tsub.c, tests/tsub_ui.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tsinh.c, tests/tsqrt.c, tests/tmul.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpow.c, tests/tpow3.c, tests/tset.c, tests/tset_f.c, tests/tset_si.c, tests/tsin.c, tests/tfma.c, tests/tget_str.c, tests/thypot.c, tests/tlog.c, tests/tlog1p.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c, tests/tdiv_ui.c, tests/teuler.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/texp.c, tests/tacosh.c, tests/tadd.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c: start tests with precision 2 instead of 1 * tests/tabs.c: start from precision 2 * get_str.c: big rewrite to fix problems when the estimate base exponent is too small * fma.c: fixed detection of exact cases (in particular 0) * cos.c: now use MPFR_PREC_MIN * atan.c: exptol is now of type mp_exp_t * log2.c: rewritten part with Taylor series * mpfr.h: changed MPFR_PREC_MIN to 2 * set_prc_raw.c, mpfr.texi: updated wrt MPFR_PREC_MIN/MPFR_PREC_MAX * mpz_set_fr.c: case x=0 was forgotten * set_prec.c: now use MPFR_PREC_MIN * sub1.c: added comment 2001-11-30 Vincent Lefevre * set_z.c: mpfr_set_z rewritten to support overflows/underflows and ternary value. * set_z.c: 0 -> set to +0. * mul.c: Better sign comparison. 2001-11-29 Vincent Lefevre * set_si.c, set_ui.c: Use MPFR_SET_POS. * trunc.c: Bug fixed concerning integer overflows. 2001-11-29 Paul Zimmermann * init2.c: added comment * cos.c: fixed bug for small precision, where r can be >= 1 2001-11-29 Vincent Lefevre * mul_2exp.c, mul_2si.c, mul_2ui.c, Makefile.am, Makefile.in, div_2exp.c, div_2si.c, div_2ui.c, log.c, mpfr.h: Functions mpfr_{mul,div}_2{si,ui} added. Functions mpfr_{mul,div}_2exp still exist for backward compatibility; they are obsolete and should not be used any longer. 2001-11-28 Vincent Lefevre * minmax.c: Particular cases (NaN and signed zeros). * tests/texp2.c, tests/thyperbolic.c, init2.c: Init variables to NaN instead of 0. * atan.c: Possible integer overflow fixed. * asin.c, atan.c: Particular cases fixed. 2001-11-25 Vincent Lefevre * trunc.c: Overflow support. * trunc.c: K&R -> ISO C prototype. * div_2exp.c: mpfr_div_2exp rewritten. * mul_2exp.c: mpfr_mul_2exp rewritten. * mul_ui.c: Overflow support. * add1.c, init2.c, mpfr-impl.h, round.c: Casts to size_t added (safer and could be required in the future). 2001-11-23 Vincent Lefevre * mul.c: Minor change. * mul.c: mpfr_mul partially rewritten: * Integer overflows almost completely avoided. * Now supports signed zeros and overflows. Not tested yet. 2001-11-22 Vincent Lefevre * round.c: mpfr_can_round_raw: integer overflows checked and code duplication avoided. * BUGS: More bugs. * round.c, mpfr-impl.h, mpfr.h, mpfr.texi: mpfr_can_round and mpfr_can_round_raw: prototypes changed. 2001-11-21 Vincent Lefevre * exceptions.c: Bug fixed. * tests/tdiv.c, tests/texp.c, tests/tsqrt.c, Makefile.am, Makefile.in, add_one_ulp.c, add_ulp.c, div_ui.c, exp.c, mpfr.h, mpfr.texi, set_z.c, sub_one_ulp.c: mpfr_add_one_ulp and mpfr_sub_one_ulp changed. * round.c, set_dfl_prec.c, set_rnd.c, init2.c, mpfr.h, mpfr.texi: Added MPFR_PREC_MIN and MPFR_PREC_MAX. * init2.c: Error test -> assert. mp_prec_t -> mp_size_t. 2001-11-20 Vincent Lefevre * tests/tround.c: Test added. * round.c, mpfr-impl.h: mpfr_round rewritten. mpfr_round_raw_generic: NULL changed to 0 as not necessarily defined. * mpfr-impl.h: Added macro MPFR_SET_ABSSIZE. * round.c: mpfr_round: Check for overflow. 2001-11-17 Vincent Lefevre * sub1.c: Some type changes. 2001-11-16 Vincent Lefevre * add1.c, mpz_set_fr.c: Integer overflows checked. * mpz_set_fr.c: MPFR_ASSERTN instead of fprintf + exit. * mpfr-impl.h: GMP assert mechanism: macros changed until GMP is fixed. 2001-11-16 Paul Zimmermann * mpfr.texi: version -> 2002 removed executable flag * tests/thypot.c, tests/tlog.c, tests/tmul_ui.c, tests/tpow.c, tests/tpow3.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsub.c, tests/tsub_ui.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tabs.c, tests/tadd.c, tests/tatan.c, tests/tcmp2.c, tests/tcos.c, tests/tdiv.c, tests/tdiv_ui.c, tests/teq.c, tests/teuler.c, tests/texceptions.c, tests/texp.c, tests/tfactorial.c, tests/tfma.c, tests/tgeneric.c, mpfr.texi, print_raw.c, sub1.c, Makefile.in, exp_2.c, log.c, mpfr.h: mpfr_print_raw -> mpfr_print_binary * init2.c: split from init.c 2001-11-16 David Daney * expm1.c, log1p.c, tanh.c: remove math.h * sinh.c: remve math.h 2001-11-16 Paul Zimmermann * tests/tdiv.c: added one test 2001-11-16 David Daney * atanh.c: remove math.h 2001-11-16 Paul Zimmermann * Makefile.am, init.c: init -> init + init2. 2001-11-16 David Daney * asinh.c, acosh.c: remove math.h 2001-11-16 Guillaume Hanrot * div.c: Ajoute retours chariots dans div.c, etc. * div.c: if () remplace par if ( ==0) ou if ( != 0) 2001-11-16 Paul Zimmermann * tests/Makefile.in, pow.c, pow_si.c, print_raw.c, rnd_mode.c, set_rnd.c, set_str_raw.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, tan.c, tanh.c, ui_pow.c, Makefile.in, TODO, add_ui.c, asin.c, asinh.c, atanh.c, clear.c, copysign.c, cos.c, cosh.c, dim.c, exp.c, exp2.c, expm1.c, extract.c, factorial.c, fma.c, gmp_op.c, hypot.c, isinteger.c, log1p.c, log2.c, log_base_10.c, log_base_2.c, minmax.c, mul.c: removed K&R function headers 2001-11-16 Guillaume Hanrot * tests/tdiv.c: Beuh ? * inp_str.c, div.c: return -> MPFR_RET, patch d'un leak dans inp_str.c 2001-11-16 Paul Zimmermann * mpfr-impl.h: changed to use GMP assert mechanism 2001-11-16 David Daney * pow_si.c: remove stdio.h math.h 2001-11-16 Paul Zimmermann * cos.c, euler.c: assert -> MPFR_ASSERT 2001-11-16 David Daney * pow.c: remove stdio math .h * isinteger.c: remove stdio.h math.h 2001-11-16 Paul Zimmermann * mul_ui.c, sub1.c: ASSERT_ALWAYS -> MPFR_ASSERTN * Makefile.am: added COPYING.LIB * COPYING: replaced by GPL 2001-11-16 David Daney * factorial.c: remove limits.h 2001-11-16 Paul Zimmermann * tests/tout_str.c, tests/tpi.c, tests/tpow.c, tests/tpow3.c, tests/trandom.c, tests/tround.c, tests/tset.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin.c, tests/tsin_cos.c, tests/tsinh.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub.c, tests/tsub_ui.c, tests/tswap.c, tests/ttan.c, tests/ttanh.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_pow.c, tests/tui_sub.c, tests/tzeta.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/teuler.c, tests/texceptions.c, tests/texp.c, tests/texp2.c, tests/texpm1.c, tests/tfactorial.c, tests/tfma.c, tests/tgamma.c, tests/tgeneric.c, tests/tget_d.c, tests/tget_str.c, tests/thyperbolic.c, tests/thypot.c, tests/tisnan.c, tests/tlog.c, tests/tlog1p.c, tests/tlog2.c, tests/tlog_base_10.c, tests/tlog_base_2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/reuse.c, tests/tabs.c, tests/tacosh.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tasin.c, tests/tasinh.c, tests/tatan.c, tests/tatanh.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tcos.c, tests/tcosh.c, tests/tdiv.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, set_ui.c, set_z.c, sin.c, sinh.c, sqrt.c, sqrt_ui.c, sqrtrem.c, srandom.h, sub.c, sub1.c, sub_ui.c, swap.c, tan.c, tanh.c, trunc.c, ui_div.c, ui_pow.c, ui_pow_ui.c, ui_sub.c, urandomb.c, zeta.c, log2.c, log_base_10.c, log_base_2.c, minmax.c, mpf2mpfr.h, mpfi.c, mpfi.h, mpfr-impl.h, mpfr-test.h, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, pow_si.c, pow_ui.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, rnd_mode.c, round.c, save_expo.c, set.c, div_ui.c, dump.c, eq.c, euler.c, exceptions.c, exp.c, exp2.c, exp3.c, exp_2.c, expm1.c, extract.c, factorial.c, fma.c, gamma.c, gammaPiAGMformula.c, generic.c, get_str.c, gmp_op.c, hypot.c, init.c, inp_str.c, isinf.c, isinteger.c, isnan.c, isnum.c, log.c, log1p.c, acosh.c, add.c, add1.c, add_ui.c, add_ulp.c, agm.c, asin.c, asinh.c, atan.c, atanh.c, clear.c, cmp.c, cmp2.c, cmp_abs.c, cmp_ui.c, copysign.c, cos.c, cosh.c, dim.c, div.c, div_2exp.c: changed Library GPL to Lesser GPL * COPYING.LIB: GNU Lesser General Public License, version 2.1 2001-11-16 David Daney * ui_pow.c: remove limits.h math.h 2001-11-16 Paul Zimmermann * replace_all: now treats all *.h 2001-11-16 David Daney * exp2.c: remove the proto, remove math.h 2001-11-16 Paul Zimmermann * div_ui.c: removed DEBUG's * div_ui.c: removed old patch for GMP 2.xx * urandomb.c, swap.c, eq.c: GNU MP -> MPFR * add_ulp.c, tests/tout_str.c, tests/tabs.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/thyperbolic.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tpi.c, tests/tpow.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tswap.c, tests/ttrunc.c, tests/tui_div.c, tests/reuse.c, tests/tmul_2exp.c, tests/trandom.c: added year 2001 in copyright line * acosh.c, div_2exp.c, dump.c, exp3.c, exp_2.c, init.c, log2.c, mpfr-test.h, mpfr.h, mpz_set_fr.c, mul_2exp.c, out_str.c, pow_ui.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, save_expo.c, set_dfl_prec.c, set_prc_raw.c, set_prec.c, sqrtrem.c, sub_ui.c, trunc.c, ui_pow_ui.c, cmp.c, cmp_abs.c, cmp_ui.c, div.c, get_str.c, inp_str.c, log.c, mpf2mpfr.h, mpfr-impl.h, mul_ui.c, round.c, set.c, set_d.c, set_f.c, set_q.c, set_str.c, set_z.c, ui_div.c, ui_sub.c: added year 2001 in copyright line removed #if __STDC__ * sin_cos.c: now two separate files cos.c and sin.c * agm.c, urandomb.c, pi.c, clear.c: added year 2001 in copyright line * BUGS: updated * div2.c: old version, removed * Makefile.am: added isinf and isnum (split from isnan) * isinf.c, isnum.c: new files (split from isnan.c) * acosh.c: removed prototype already in mpfr.h * agm.c: translated french comments to english * algorithms.tex: added mpfr_sub * asinh.c: removed prototype already in mpfr.h * atan.c: added static to local functions * atanh.c: removed prototype already in mpfr.h * cmp2.c: 1 -> MP_LIMB_T_ONE * copysign.c: removed prototype already in mpfr.h * cos.c: added static to local functions * cosh.c: removed prototype already in mpfr.h * div.c, div_ui.c: 1 -> BITS_PER_MP_LIMB * euler.c: added static to local functions removed prototype already in mpfr.h * exp2.c: removed mpfr_exp2_si (not used) * exp3.c: added static to local functions translated french comments to english * exp_2.c: added static to local functions * expm1.c: translated french comments to english removed prototype already in mpfr.h * factorial.c: initialized inexact to 0 * generic.c: used TMP_ALLOC translated french comments to english * get_str.c: simplified test * isnan.c: moved inf_p and number_p to different files * log1p.c: translated french comments to english removed prototype already in mpfr.h * log2.c: added static to local functions explained threshold * minmax.c: removed prototypes already in mpfr.h * mpfr.h: does not include stdio.h any more * mpz_set_fr.c: added stdio.h * add_ulp.c, mul.c, mul_ui.c, print_raw.c, round.c, set_z.c, sqrt.c, trunc.c: 1 -> BITS_PER_MP_LIMB 1 << (BITS_PER_MP_LIMB - 1) -> MP_LIMB_T_HIGHBIT * out_str.c: removed french comment * pi.c: added static to local functions * pow_si.c: removed prototype already in mpfr.h * print_raw.c: 1 -> BITS_PER_MP_LIMB translated french comments to english added static to local functions * random.c, random2.c: 1 -> BITS_PER_MP_LIMB * reldiff.c: removed french comment * round.c: 1 -> BITS_PER_MP_LIMB translated french comments to english * set_d.c: 1 -> BITS_PER_MP_LIMB added static to local functions * set_z.c: 1 -> BITS_PER_MP_LIMB * sinh.c: removed prototype already in mpfr.h * sqrt.c: 1 -> BITS_PER_MP_LIMB * sqrtrem.c: 1 -> BITS_PER_MP_LIMB added static to local functions * sub1.c: 1 -> BITS_PER_MP_LIMB * tanh.c: removed prototype already in mpfr.h * trunc.c: 1 -> BITS_PER_MP_LIMB * ui_pow.c: removed proto already in mpfr.h * urandomb.c: 1 -> MP_LIMB_T_ONE * tests/reuse.c, tests/tcos.c, tests/tdump.c, tests/teuler.c, tests/texp.c, tests/tlog2.c, tests/tpi.c, tests/tpow.c, tests/tset_q.c, tests/tset_z.c, tests/tsin.c, tests/tswap.c, tests/ttan.c: added stdio.h 2001-11-15 Vincent Lefevre * add.c, add1.c, sub.c, sub1.c, Makefile.am, Makefile.in: add.c -> add.c & add1.c sub.c -> sub.c & sub1.c + some changes. 2001-11-13 Paul Zimmermann * mpfr.texi: iff the results are exact -> iff the result is exact 2001-11-10 Vincent Lefevre * add.c, cmp.c, cmp_abs.c, exceptions.c, neg.c, round.c, save_expo.c, set.c, set_si.c, set_ui.c: GNU coding style. K&R function headers removed. * mpfr-impl.h: MP_LIMB_T_ONE defined. mp_size_unsigned_t defined. Important bugs fixed (in particular when int has fewer than 32 bits). Still unavoidable possible bugs due to the fact that mp_size_t is signed. 2001-11-09 David Daney * tests/tgamma.c: add tests file for gamma * gammaPiAGMformula.c: add gamma function an other version * gamma.c: add gamma function 2001-11-09 Paul Zimmermann * mpfr.texi: mis a` jour valeur de retour de mpfr_tan 2001-11-09 Vincent Lefevre * mpfr.texi: Some -'s missing in floating-point. 2001-11-08 Paul Zimmermann * mpfr.texi: modifs suite aux remarques de Nathalie 2001-11-08 David Daney * mpfr.h: remove some name of variables 2001-11-08 Vincent Lefevre * cmp2.c, pow2.c: cmp2.c: Integer overflows checked. * isinteger.c, mpfr.h, pow.c, Makefile.am, Makefile.in: Update. * mpfr.h: Fix. 2001-11-08 David Daney * mpfr.h: suppress variable name in dim min max * isinteger.c: export isinteger in the file isinteger.c * pow_si.c: exporte pow_si from pow2.c to pow_si.c * pow.c: rename pow2.c in pow.c (source for mpfr_pow) * ui_pow_ui.c: add ui_pow_ui.c (initially in pow.c) * pow_ui.c: add pow_ui.c file (initially in pow.c) 2001-11-08 Vincent Lefevre * cmp2.c, mpfr-impl.h: mpfr_cmp2: return type changed to mp_prec_t. 2001-11-08 David Daney * tests/reuse.c: add function test4 for 3 input test + fma tests 2001-11-08 Vincent Lefevre * mpfr.h: Macros added. * add.c: MP_LIMB_T_MAX instead of (mp_limb_t) -1 (a little nicer...). 2001-11-06 Vincent Lefevre * round.c: Code clean-up. 2001-11-05 Vincent Lefevre * exceptions.c: Prototypes for K&R C. * round.c: mpfr_round_raw_generic prototype fixed. 2001-11-01 David Daney * asin.c: clear xp for Nan Inf or 0 are returned * tests/thyperbolic.c: clear variable if an error is return * atanh.c: clear x for Nan inf 0 return * asinh.c: clear x for Nan Inf 0 return * expm1.c: clear te 2001-11-01 Vincent Lefevre * tests/tpow.c: Added prototype. * add.c: Bug fixed. 2001-11-01 Paul Zimmermann * tests/tfma.c: fixed MLK's * pow2.c: fixed MLK's in mpfr_isinteger * tests/tpow3.c: fixed MLK's * tests/tui_pow.c: fixed missing mpfr_clear's * tests/tsin.c: added missing mpfr_clear * tests/tsub.c: added clear's in bug_ddefour * tests/tgeneric.c: added mpfr_clear's * tests/tdiv.c: fixed MLK's 2001-10-31 Paul Zimmermann * set_str_raw.c: fixed MLK for Inf or Nan * tests/tadd.c: fixed MLK in check_case_2 2001-10-31 David Daney * mpfr.texi: rename factorial -> fac_ui 2001-10-30 Fabrice Rouillier * tests/Makefile.in, Makefile.in, gmp_op.c, mpfr.h: Change mpfr__mpz to mpfr__z Change mpfr__mpq to mpfr__q where is mul,div,add,sub 2001-10-30 David Daney * factorial.c: correct factorial -> fac_ui in comments * tests/tfactorial.c: rename tfactorial -> fac_ui * factorial.c, mpfr.h: rename factorial -> fac_ui 2001-10-27 Vincent Lefevre * add.c: Bug fixed. 2001-10-26 Paul Zimmermann * tests/tadd_ui.c, tests/tsub_ui.c: drand -> drand48 * tests/tdiv.c: put MAX_PREC back to 100 * tests/tpow.c: added test for inexact flag * div_ui.c: use MPFR_RET_NAN and MPFR_RET * div.c: removed MPFR_DEBUG_LEVEL definition * mpfr.texi: mpfr_set_q and mpfr_abs now return an int mpfr_pow_ui and mpfr_ui_pow_ui now implement exact rounding updated the documentation of the mpfr_*pow* functions removed some internal functions * pow.c: implemented exact rounding (but no ternary flag) 2001-10-26 David Daney * hypot.c: add some flags * fma.c: mixed version beetwen DD and Pau => (gestion des flag inexacte dirige) * tests/tfma.c: rien 2001-10-26 Paul Zimmermann * tests/tdiv.c: MAX_PREC included * set_q.c: implemented inexact flag 2001-10-26 Guillaume Hanrot * div.c: Clearing high part of rem2. 2001-10-26 Fabrice Rouillier * Makefile.am: adds gmp_op.c 2001-10-26 Paul Zimmermann * mpfr.h: mpfr_set_q now returns an int * tests/tset_q.c: added test for inexact flag 2001-10-26 Fabrice Rouillier * gmp_op.c: Adds the file gmp_op.c containing the implementations of operations between mpfr and mpz/mpq data 2001-10-26 David Daney * hypot.c: err <0 => is now tester 2001-10-26 Guillaume Hanrot * div.c: Patch for bits shifted out when the high word of the quotient is nonzero. Induced error on inexact flag (and hence on rounding in some cases). 2001-10-26 David Daney * copysign.c: add copysign.c 2001-10-26 Paul Zimmermann * tests/tdiv.c: added one test 2001-10-26 David Daney * dim.c: simplify dim * tests/thypot.c: add exact flag * pow2.c: err => long int 2001-10-26 Paul Zimmermann * tests/tset.c: added one test * log1p.c: cosmetic changes * round.c: can_round return 0 for b=0 2001-10-26 David Daney * exp2.c: err => long int * tests/Makefile.am: add thypot * log_base_10.c, log_base_2.c: err => long int * Makefile.am: add coopysign * mpfr.h: add copysign * expm1.c: correct mp_prec_t err => long int * log1p.c: correst mp_prec_t err => long int 2001-10-26 Fabrice Rouillier * Makefile.in, mpfr.h, mpfr.texi: Add multiplication/division/addition/substraction by mpz and mpq 2001-10-26 Paul Zimmermann * tests/tadd.c: added two tests fixed bug in generic tests (one more bit is needed to get an exact result) * add.c: fixed pb with exact results not detected (ck was < 0) 2001-10-26 Guillaume Hanrot * tests/tfma.c: Rien. * div.c: Patch for the computation of the u_lo + r part of the remainder when u_lo = 0. 2001-10-26 Paul Zimmermann * tests/tui_div.c, tests/tsub.c, tests/tdiv_ui.c, tests/tadd.c: added test for inexact flag * sub.c: fixed pbs with inexact flag * mpfr.texi: now mpfr_div and mpfr_ui_div return an int * mpfr.h, ui_div.c: implemented ternary flag in mpfr_ui_div * log_base_2.c: removed unnecessary CLEAR_FLAGS used MPFR_RET_NAN * tests/tlog_base_2.c: reduced number of tests * log_base_10.c: removed unnecessary CLEAR_FLAGS * tests/reuse.c: improved mpfr_compare fixed wrong function name for mpfr_log2 * div_ui.c: rewritten to implement ternary inexact flag * tests/tfma.c: fixed generic test (pb with double rounding) * tests/tdiv.c: increased MAX_PREC 2001-10-25 Guillaume Hanrot * acosh.c: Changed the type of err from mp_prec_t (unsigned) to int. * tests/Makefile.in, tests/tdiv.c: Added tests for inexact flag. * Makefile.in, algorithms.tex, configure, div.c: Patch for even rounding. 2001-10-25 David Daney * log_base_2.c, log_base_10.c: rien 2001-10-25 Vincent Lefevre * tests/reuse.c: Warning avoided. 2001-10-25 Paul Zimmermann * tests/Makefile.am: added tfma * tests/tfma.c: slong -> t * fma.c: nouvelew version (without loop) 2001-10-25 David Daney * pow2.c, tests/reuse.c: rien * tests/reuse.c: change 2001-10-25 Vincent Lefevre * add.c: Bug fixed. 2001-10-25 David Daney * pow2.c: correct bugs with reuse * tests/reuse.c: test for log2 log10 pow 2001-10-25 Guillaume Hanrot * mpfr.h, div.c: La division nouvelle est arrivee. 2001-10-25 Paul Zimmermann * tests/tadd.c: ajoute' nouveau test 2001-10-25 Vincent Lefevre * add.c: Bug fixed. 2001-10-25 Guillaume Hanrot * mpfr-impl.h, round.c: round_raw, round_raw2 -> round_raw_generic. Macros to simulate previous behaviour. Even rounding returns +- MPFR_EVEN_INEX. 2001-10-25 Paul Zimmermann * log_base_10.c: fixed pb with mpfr_log10(a, a) with a=-Inf * tests/tadd.c: added two tests * tests/tcmp.c: added one test 2001-10-25 David Daney * tests/reuse.c: add log2 and log10 * log_base_10.c: correction for reuse * log_base_2.c: coorection for reuse 2001-10-25 Paul Zimmermann * tests/texceptions.c: test file for testing exceptions 2001-10-25 Vincent Lefevre * add.c: mpfr_add1 completely rewritten. Overflows are checked. The ternary value should now be supported (but it hasn't been tested yet). 2001-10-25 David Daney * fma.c: new version 2001-10-25 Paul Zimmermann * tests/tmul_ui.c: added one test * tests/tgeneric.c: add possibility to define a random function (default is mpfr_random) to get random variables in specific ranges * tests/tatanh.c, tests/tasinh.c, tests/tacosh.c: now use tgeneric.c * tests/Makefile.am: added texceptions * mpfr.texi: documented exception mechanism (with Vincent Lefe`vre) * tests/tfactorial.c: changed stupid test (was computing only 200!) * factorial.c: implemented inexact flag * exceptions.c: 1999 -> 2001 * add.c: check overflow * tests/tui_sub.c: added two tests * sub.c: implemented overflow/underflow 2001-10-25 David Daney * atanh.c: correct atanh(INF)=INF exact * tests/thyperbolic.c: correct test inf for atanh 2001-10-25 Paul Zimmermann * mpfr.texi: added warning for mpfr_set_d 2001-10-25 David Daney * tests/thyperbolic.c: correct bug in tests file (test of atanh for + or - Inf) 2001-10-25 Paul Zimmermann * tests/Makefile.am: added tadd_ui (forgotten?) * tests/tadd_ui.c: added special test * add.c: fixed bug in rounding part when rounding towards 0 (infinite loop due to bn * minmax.c: correct the Nan case * dim.c: add the function mpfr_dim * minmax.c: add function mpfr_min and mpfr_max * tests/tasinh.c, tests/tatanh.c: correct these tesats files * acosh.c, asinh.c, atanh.c, cosh.c, sinh.c, tanh.c: correct some bugs 2001-10-24 Paul Zimmermann * tests/Makefile.am: added EXTRA_DIST= tgeneric.c 2001-10-24 David Daney * tests/Makefile.am: remove tfma * tests/tfma.c: add tfma * acosh.c: acosh revue et corrige...+beau 2001-10-23 David Daney * mpfr.h: add mpfr_log10 * Makefile.am: add log_base_10 * tests/Makefile.am: add tlog_base_10 * tests/tlog_base_10.c: add test file for log_base_10 function * log_base_10.c: add log_base_10 * mpfr.texi: correct a bug in mpfr_log10 section * mpfr.texi: add help of log10 + fma * log_base_2.c: correct particular cases * log_base_2.c: improve the clear flags * tests/tpow3.c: correction dans l'entete 2001-10-21 Vincent Lefevre * tests/tdiv.c, tests/reuse.c: Some changes to avoid warnings. * div.c: Bug fixed (char -> int). 2001-10-19 Vincent Lefevre * tests/Makefile.in, Makefile.in: Update. * add_ui.c, sub_ui.c: Bugs fixed concerning the "inexact" ternary value. 2001-10-19 David Daney * tests/Makefile.am: suppress thypot tgeneric * tests/Makefile.am: suppress sample 2001-10-19 Paul Zimmermann * mpfr.h: void -> int as return value for mpfr_add_ui * add_ui.c: added ternary flag * mpfr.texi: void -> int for mpfr_add and mpfr_add_ui 2001-10-19 David Daney * tests/thypot.c: add test for hypot * tests/Makefile.am: add some test * Makefile.am: add some functions * mpfr.h: add some proto * tests/tpow3.c: add test file for pow * mpfr.texi: add the help for pow and pow_si * pow2.c: add the function pow and pow_si 2001-10-19 Paul Zimmermann * tests/tsub.c: added two tests for 0-c and c-0 with prec(c) > prec(a) 2001-10-19 Vincent Lefevre * neg.c: Removed #include , "return 0;" replaced by "MPFR_RET(0);". * mpfr-impl.h, mpfr.h, sub.c, add.c: mpfr_add1 and mpfr_sub1 prototypes moved to mpfr-impl.h (to detect clashes). Bug fix concerning the inexact ternary value in mpfr_sub. mpfr_add now returns an int (inexact ternary value unsupported if true add). * Makefile.in: Update. * set_si.c: Underflow/overflow check. * mpfr-impl.h: Documentation updated. * set_ui.c: Comment added. * set.c: MPFR_RET(0) replaced by MPFR_RET_NAN. * mpfr-impl.h: Macro MPFR_RET_NAN. 2001-10-18 Vincent Lefevre * round.c: Code clean-up in mpfr_round_raw (well... IMHO). 2001-10-18 David Daney * ui_pow.c: take in account of CHAR_BIT in ui_pow 2001-10-18 Paul Zimmermann * sqrt.c: cast to mp_limb_t was missing 2001-10-18 Vincent Lefevre * acosh.c, asinh.c, atanh.c, factorial.c: BITS_PER_CHAR replaced by the standard CHAR_BIT. 2001-10-18 Guillaume Hanrot * div.c: *** empty log message *** 2001-10-18 David Daney * tests/tui_pow.c: add test of ui_pow * mpfr.texi: add the help of ui_pow * ui_pow.c: add the function pow(unsign long int, mpfr_t) 2001-10-18 Vincent Lefevre * configure, configure.in: Improved configure.in. configure generated by Autoconf 2.52. 2001-10-18 David Daney * exp2.c: ajout du flag inexact 2001-10-18 Vincent Lefevre * configure: fixed and improved check for gmp.h/gmp-impl.h/config.h/gmp-mparam.h/longlong.h and corresponding error message 2001-10-18 David Daney * mpfr.texi: add the help on log2 * tests/tlog_base_2.c: add the test file of the log2 (log in base 2) * log_base_2.c: ajout de log2 (log en base 2) * tanh.c: correst tanh(0) 2001-10-18 Paul Zimmermann * tests/tset_si.c: added two more tests * set_si.c: wrong sign passed to mpfr_can_round (mp_limb_t may be unsigned) 2001-10-18 David Daney * sinh.c: correct a bug for sinh(Inf) 2001-10-17 David Daney * tanh.c: correct syntax of tanh.c * sinh.c: correct an error * cosh.c: correct few things * cosh.c: little patch for cosh * tests/texpm1.c: add the test function of expm1 * tests/tlog1p.c: add the test of the function log1p * expm1.c: add the function expm1 * log1p.c: add the function log1p * mpfr.texi: add to mpfr.texi log1p and expm1 * exp2.c: actualisation de exp2.c * exp2.c: actualisation de exp2 2001-10-17 Guillaume Hanrot * tests/Makefile.in, tests/tdiv.c: New tests in tdiv.c. * div.c, div2.c: New division in div.c, old one renamed in mpfr_div2. Remains to implement exact/inexact flag. Should not be *that* hard. 2001-10-16 David Daney * algorithms.tex: ajout de functions pow, fma, hypot etc etc 2001-10-16 Paul Zimmermann * Makefile.am: added fma.c * mpfr.h: added prototypes for mpfr_fma and mpfr_hypot * hypot.c: small changes for inexact flag * fma.c: added some cases for Inf implement (partly) inexact flag 2001-10-16 David Daney * hypot.c: ajout hypot * fma.c: ajout de fma 2001-10-16 Vincent Lefevre * sub.c: Comment: // --> /* ... */ 2001-10-15 Paul Zimmermann * tests/tgeneric.c: generic test file * tests/reuse.c: added cast to (void*) for new functions returning an int * tests/tabs.c: added test for inexact flag * tests/tcos.c: now use tgeneric.c added more tests * tests/tcosh.c, tests/texp.c, tests/texp2.c: now use tgeneric.c * tests/thyperbolic.c: fixed test of return values for infinities: foo(+/-Inf) is *exact* * tests/tlog.c: now use tgeneric.c * tests/tset.c: now also try with negative numbers * tests/tsin.c, tests/tsinh.c, tests/ttan.c, tests/ttanh.c: now use tgeneric.c * cos.c, cosh.c: implement ternary inexact flag * div_2exp.c: implement inexact flag * exp.c, exp2.c: implement ternary inexact flag * exp3.c: implement inexact flag * exp_2.c, log.c: implement ternary inexact flag * mpfr.h: return type is now int for mpfr_mul_2exp and mpfr_div_2exp * mpfr.texi: return type is now int for more functions * mul_2exp.c: implement inexact flag * random.c: sign was not set * round.c: rewritten completely mpfr_can_round_raw * set.c: documented mpfr_set4 * set_prec.c: return non-zero if malloc failed * set_q.c: cosmetic changes * sin.c, sinh.c: implement ternary inexact flag * sqrt_ui.c: avoid one variable * tan.c, tanh.c: implement ternary inexact flag * agm.c: cosmetic changes 2001-10-12 David Daney * algorithms.tex: correction d'erreurs sur les notations + correction de la regle 9 2001-10-12 Paul Zimmermann * mpfr-impl.h: fixed MPFR_ASSERT documented MPFR_ASSERTN and MPFR_ASSERTD * tests/tset_f.c: added test for mpfr_init_set_f prototype * tests/tmul_ui.c: added test for inexact flag corrected a wrong test * tests/tadd.c: cosmetic change * tests/Makefile.am: added tsub_ui (did exist but forgotten in Makefile) and tset (new file) * tests/tset.c: test file for mpfr_set, initial version * mpfr.texi: void -> int as return value for several functions and explained the ternary return value * ui_sub.c, set_f.c: implemented inexact flag * mpfr.h: void -> int as return value for new functions implementing inexact flag * set_d.c: implemeted inexact flag in mpfr_set_d * round.c: implemented inexact flag in mpfr_round * neg.c: implemented inexact flag * mul_ui.c: completely rewritten * mul.c: computation of inexact flag now directly uses mpfr_round_raw * mpfr-impl.h: added 'if' in MPFR_ASSERT to avoid compiler warning * add.c: put initial value in variables which may be used without being initialized * TODO: updated things done, added Rounding section 2001-10-11 David Daney * algorithms.tex: ajout de log1p et expm1 2001-10-11 Paul Zimmermann * tests/tatan.c: reduced number of random tests (took too much time) * tests/tsub.c: added random tests for inexact flag * sub.c, sub_ui.c: implemented inexact flag * tests/tui_sub.c, tests/tsub_ui.c: added random tests for inexact flag 2001-10-11 David Daney * algorithms.tex: ajout du log generic et de fma 2001-10-11 Paul Zimmermann * sqrt.c: inexact flag was wrong in some cases * tests/tsqrt.c: added random tests for inexact flag * tests/tasin.c: reduced number of loops per precision from 100 to 10 (test was too long) * configure: improved check for gmp-impl.h/config.h/gmp-mparam.h/longlong.h and corresponding error message * INSTALL: stack-alloc.h no longer needed (will be included in gmp-impl.h) * mpfr.texi: stack-alloc.h is no longer needed (will be included in gmp-impl.h) 2001-10-09 Paul Zimmermann * algorithms.tex: added proof of rules * tests/tadd.c: fixed buggy test 2001-10-05 Paul Zimmermann * add.c: fixed bug for b + d where b=2^900+2^500+2^110, d=2^900-2^500-2^110 2001-10-03 Paul Zimmermann * set_d.c: fixed bug in mpfr_set_d on 64-bit machines 2001-09-28 Paul Zimmermann * set_d.c: fixed a few problems in mpfr_set_d for sizer < MPFR_LIMBS_PER_DOUBLE * algorithms.bib: added paper of Brent and McMillan * tests/texp.c: does not call compare_exp2_exp3 when argc=4 * TODO: added one item * mpfr.h, mpfr.texi, set_prec.c: now mpfr_set_prec returns 1 instead of producing an error in case prec=0 2001-09-27 David Daney * algorithms.tex: New version with new generic function + / * etc 2001-09-20 Vincent Lefevre * BUGS, INSTALL, README: BUGS updated. 2001-09-13 Vincent Lefevre * tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tcmp.c, tests/tcos.c, tests/tmul_ui.c, tests/trandom.c, tests/tsin.c, tests/tsub_ui.c, tests/ttan.c: Prototype changes. * dump.c, set_str.c, set_str_raw.c: -> (ISO C). * configure, configure.in, mpfr-impl.h: GCC option -Wno-implicit removed and prototype added to mpfr-impl.h 2001-09-12 Vincent Lefevre * tests/Makefile.in, tests/Makefile.am: INCLUDES in Makefile.am: -I$(top_srcdir) and @INCLUDES@ swapped. This defines the following precedence for the tests: 1) MPFR directories 2) User-defined directory 3) GMP include directory This allows the user to override the GMP longlong.h file with the gcc-3 one, by using: INCLUDES="-I.../include" ./configure ... * tests/tset_si.c: Tests added (in particular, inex value). * set_si.c: Bug fixed. 2001-09-11 Vincent Lefevre * mpfr-impl.h: MPFR_RET: definition changed to avoid warning. * set_ui.c, mpfr.h, set.c, set_si.c: Inexact ternary value for mpfr_set4, mpfr_set_ui and mpfr_set_si. * mpfr-impl.h: Macro SAFE_ABS. * exceptions.c, mpfr-impl.h: Inexact ternary value and flag for mpfr_set_underflow, mpfr_set_overflow and mpfr_check_range. * mpfr-impl.h, mpfr.h, set.c: Macro MPFR_RET added. Ternary value for mpfr_set4. * exceptions.c, mpfr.h: New flags. 2001-09-10 Vincent Lefevre * tests/Makefile.in, Makefile.in, div.c, mpfr-impl.h, mpfr.texi, mul.c, mul_ui.c, round.c, set.c, set_f.c, set_si.c, set_ui.c, sqrt.c: Parameter added to mpfr_round_raw: pointer to inexact ternary value. 2001-09-10 Guillaume Hanrot * set_d.c: Zqwiuyt * set_d.c: Zorgs. * set_d.c: Gleurbs. * set_d.c: Patch grotesque. * set_d.c: Patch for the case SIZE(r) < MPFR_LIMBS_PER_DOUBLE. 2001-09-10 Paul Zimmermann * tests/ttan.c: test file for mpfr_tan * tests/tsin.c: fixed a few typos * tests/reuse.c: added mpfr_tan * tests/Makefile.am: added ttan * algorithms.tex: added the tangent * Makefile.am: added tan.c * mpfr.h: added mpfr_tan * tan.c: tangent function 2001-09-07 Paul Zimmermann * sin_cos.c: removed mpfr_sin and mpfr_cos (now separate implementations) * mpfr.h: removed sin_cos * algorithms.tex: added sine and cosine * Makefile.am: removed sin_cos, added sin and cos * mpfr.texi: removed mpfr_sin_cos * tests/reuse.c: removed sin_cos, added sin and cos * tests/Makefile.am: removed tsin_cos, added tsin and tcos * tests/tcos.c, tests/tsin.c: test files for mpfr_cos and mpfr_sin * sin.c: new implementation of mpfr_sin, using mpfr_cos * cos.c: new (faster) implementation of mpfr_cos 2001-09-06 Vincent Lefevre * exceptions.c: Fix: flags set in mpfr_set_{under,over}flow(). * sub.c: Cases where the result is 0 fixed. Integer overflow checked in mpfr_sub. * Makefile.am, Makefile.in, add.c: In add.c: use mpfr_cmp_abs instead of mpfr_cmp3; x - x fixed for GMP_RNDD. * cmp_abs.c: Compare the absolute values of two nonzero FP numbers. 2001-09-05 Vincent Lefevre * cmp.c, mpfr.h: mpfr_cmp3 changed and integer overflows checked. 2001-09-05 Paul Zimmermann * TODO: added efficiency item 2001-09-03 Vincent Lefevre * add.c: Cases [+-]0 + [+-]0 fixed (depending on the rounding mode). 2001-08-29 Vincent Lefevre * set.c: Optimization + overflow support. * add.c, mpfr-impl.h: Case +0 + -0 fixed. 2001-08-29 Paul Zimmermann * tests/tadd.c: added one test * tests/tmul_ui.c: another test from Norbert * mul_ui.c: another fix (final copy when xsize > ysize was wrong) 2001-08-28 Paul Zimmermann * tests/tadd.c: added several tests for case (1b) * mul_ui.c: another fix (previous one was incomplete) * tests/tmul_ui.c: added one more test (from Norbert) 2001-08-28 Vincent Lefevre * add.c: Bug fixed. * add.c: Bug fixed and update to check the exponents. 2001-08-27 Paul Zimmermann * tests/tdiv_ui.c: added test for 53 <= xprec, yprec <= 128 * tests/tmul_ui.c: added multiple tests for 53 <= xprec, yprec <= 128 * mul_ui.c: was completely wrong for ysize > xsize * algorithms.tex: added faster formula in exp(-8*n) for Euler's constant 2001-08-25 Vincent Lefevre * mpfr-impl.h: Assertion support with debug level. * add_ui.c, exceptions.c, mpfr-impl.h, mpfr.h, save_expo.c, sub_ui.c, Makefile.am, Makefile.in: Some support for exponent change and exceptions. 2001-08-23 Paul Zimmermann * mpfr-impl.h: added constant ALPHA (for mpfr_const_euler) * tests/Makefile.in, Makefile.in: added euler/teuler * tests/Makefile.am: added teuler * Makefile.am: added euler.c * add.c: fixed pb with c2 = c2old << dif with dif negative * sub.c: fixed bug for (2^53+4) - 1 * tests/tmul_ui.c: added new test from Norbert Mueller * mul_ui.c: fixed pb: sh becomes "negative" * algorithms.tex: included Euler's constant * algorithms.bib: bibtex file for algorithms.tex * tests/teuler.c: test file for mpfr_const_euler * euler.c: computation of Euler's constant 0.577... * tests/tsub.c: added missing prototype * mpfr.h: mpfr_const_euler returns an int * mpfr.h, mpfr.texi: added mpfr_const_euler 2001-08-22 Vincent Lefevre * tests/tadd.c: Tests added. * sub.c: Bugs fixed (particular cases). * add.c: "mant(c) != 1/2" test was broken. * tests/tadd.c: check fixed. Check added: 2^53 + 1 --> 2^53. * tests/Makefile.in, Makefile.in: Update. 2001-08-21 Paul Zimmermann * tests/tdiv_ui.c: added one test * div_ui.c: fixed stupid bug when dif < 0 2001-08-14 Paul Zimmermann * mpfr.h: added mpfr_asin * tests/tget_str.c: added missing cast * mpfr.texi: added mpfr_asin * tests/tasin.c: test file for mpfr_asin * asin.c: arc-sine, contributed by Mathieu Dutour * tests/reuse.c: added mpfr_asin * tests/tatan.c: new name for file tarctan.c * tests/tarctan.c: renamed to tatan.c * tests/Makefile.am: renamed tarctan.c into tatan.c added tasin.c * Makefile.am: renamed arctan.c to atan.c added asin.c * atan.c: new name for file arctan.c * arctan.c: moved to atan.c * add.c: low significant bit is in ap[0] and not in ap[an-1] !!! 2001-08-13 Vincent Lefevre * mpfr-impl.h: Cleaner MPFR_SET_SAME_SIGN. * mpfr-impl.h: Macros MPFR_SET_SAME_SIGN, MPFR_INIT and MPFR_INIT1 changed to expressions. 2001-08-10 Vincent Lefevre * set_ui.c, set_z.c, set_si.c: Bugs fixed (wrong types). * mpfr.h: Macros mpfr_init_set_* changed to expressions. * Makefile.in: Makefile.in update. 2001-07-06 Paul Zimmermann * tests/tset_str.c: edited wrt GNU style * get_str.c: fixed stupid bug: ceil(a/b) isn't (a+b-1)/a but simply a/b for a negative! * sub.c: fixed array bound write (bn < an + cancel1 + 1) * mpfr-impl.h: macros MPFR_NOTZERO and MPFR_ISZERO did not work properly with 64-bit words 2001-06-29 Paul Zimmermann * get_str.c: fixed bug for output base 2^k * tests/tget_str.c: added one test * algorithms.tex: added a section for the exponential * tests/tdiv_ui.c, div_ui.c: fixed bug when dividend is 0 2001-06-28 Paul Zimmermann * exp_2.c: moved TMP_FREE * TODO: added 2 things 2001-06-27 Paul Zimmermann * Makefile.am: added mpfr.info to files to remove for "make distclean" 2001-06-23 Vincent Lefevre * tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in: Non-existent C source references removed. * mpfr-impl.h: Macros MPFR_INIT and MPFR_INIT1 fixed. 2001-06-18 Paul Zimmermann * agm.c, sqrt.c: nested double TMP_DECL's 2001-06-14 David Daney * tests/Makefile.in, tests/reuse.c, tests/tarctan.c, tests/tfactorial.c, tests/Makefile.am, sin_cos.c, ui_sub.c, Makefile.am, Makefile.in, arctan.c, mpfr.h, out_str.c: A few patches. 2001-06-07 Paul Zimmermann * mpfr.h, mpfr.texi, sin_cos.c: added mpfr_sin and mpfr_cos corrected in the documentation some exact values 2001-06-01 Paul Zimmermann * mpfr.texi: removed 2 tabs * mpfr.texi: added change explaining the LGPL with non-free programs 2001-05-31 Guillaume Hanrot * mul_ui.c: Patch for the case b = 0 or c = 0. 2001-05-23 Guillaume Hanrot * tests/tsub.c: Added DDefour's bug. 2001-05-22 Guillaume Hanrot * sub.c: Patch in the case MPFR_PREC(b) > MPFR_PREC(a)+cancel. 2001-05-10 Vincent Lefevre * tests/Makefile.in, Makefile.in, mpfr.texi: fixed bug in mpfr.texi 2001-05-10 David Daney * mpfr.texi: correction du bug donne par vincent + ajout des aides des fonctions hyperbolic 2001-05-09 David Daney * mpfr.texi: *** empty log message *** 2001-04-20 Paul Zimmermann * log.c: log(0) now returns 0 (exact infinity) 2001-04-18 Paul Zimmermann * log.c: fixed pbs with NaN/Inf * sub.c: fixed new bug found by Nathalie Revol (case when add_one_ulp produces a carry) * tests/tsub.c: added new bug found by Nathalie Revol * sub.c: fixed bug for 1.0000... - 0.000001 for rounding up or nearest 2001-04-17 Nathalie Revol * log.c: Case where argument < 0 included, NR 17-04-2001 2001-04-12 Paul Zimmermann * tests/tui_sub.c: added new (special) tests * tests/tsub.c: test file for mpfr_sub * tests/Makefile.am: added tsub 2001-04-06 David Daney * exp.c: change old exp2 (conflict with 2^x) to exp_2 2001-04-05 Paul Zimmermann * tests/tcmp2.c: 0 -> GMP_RNDN * cmp2.c: check apart the case c=0 (otherwise some low significant limbs may be non zero, which may produce a wrong result) * exp.c, tests/texp.c: mpfr_exp2 -> mpfr_exp_2 2001-04-05 David Daney * mpfr.h: reactualise .h * tests/thyperbolic.c: change header * tests/reuse.c: change reuse to suppress factorial * tests/Makefile.am: suppress of timing in makefile * exp_2.c: add the old exp2 function and file renamed by exp_2 * Makefile.am: change makefile for new functions * tests/Makefile.am: change make file test for hyperbolic function exp2 and factorial * tests/tacosh.c, tests/tasinh.c, tests/tatanh.c, tests/ttanh.c, tests/tcosh.c, tests/tsinh.c: add new test file for hyperbolic function * tests/thyperbolic.c, tests/texp2.c, tests/tfactorial.c: add test file for new function * exp2.c, factorial.c: add function * acosh.c, asinh.c, atanh.c, sinh.c, tanh.c: new file function * cosh.c: new function file 2001-04-05 Paul Zimmermann * Makefile.in: new version with cmp2.c * mul.c: fixed pb with inexact flag when 'int' and 'mp_limb_t' has different sizes 2001-04-05 David Daney * tests/tcmp_ui.c, cmp_ui.c: fixed bug for mpfr_cmp_ui (Inf, 0) * tests/tset_si.c, set_ui.c: fixed bug for mpfr_set_ui (x, 0) [was giving -0] 2001-04-03 Paul Zimmermann * algorithms.tex: added algorithm for mpfr_cmp2 * Makefile.am: added cmp2.c * cmp2.c: fixed bug when diff_exp >= BITS_PER_MP_LIMB * tests/tcmp2.c: added new test for worst cases: 1 - 1/2^i and (1 + 1/2^i) - 1/2^i * mpfr-impl.h: changed return value of mpfr_cmp2 * cmp2.c: new file for mpfr_cmp2 * cmp.c: moved mpfr_cmp2 to separate file cmp2.c * tests/tcmp2.c: added several tests, and a routine that generates worst cases * trunc.c: two changes suggested by Kevin Ryde 2001-04-02 Paul Zimmermann * Makefile.in: new version from new Makefile.am 2001-03-27 Paul Zimmermann * tests/tadd.c: added new test * cmp.c: fixed new bug in mpfr_cmp2 found by Fabrice 2001-03-21 Paul Zimmermann * tests/tcmp2.c: added new test * cmp.c: fixed bug found by Nathalie Revol 2001-03-20 Paul Zimmermann * TODO: added 2 items * tests/tcmp_ui.c: added test for mpfr_cmp_ui (-0, 0) * out_str.c: now prints -0 for -0 2001-03-19 Nathalie Revol * cmp_ui.c: Comparison between 0- and 0 now returns 0, NR 19-03-2001 2001-03-16 Vincent Lefevre * tests/reuse.c: added cast to avoid a warning 2001-03-13 Paul Zimmermann * tests/tmul.c: added tests for inexact return value * mul.c: tiny bug in inexact value determination * mpfr.h, mpfr.texi, mul.c: mpfr_mul now returns an int 2001-03-09 Paul Zimmermann * algorithms.tex: description of algorithms * TODO: reorganized 2001-03-08 Paul Zimmermann * TODO: added few things * Makefile.am, mpfr.h: added arc-tangent * tests/Makefile.am: added tarctan * tests/reuse.c: added test to mpfr_arctan * tests/tarctan.c: added header * tests/tarctan.c: test file for mpfr_arctan * arctan.c: removed math.h * arctan.c: arctangent function (contributed by Mathieu Dutour, done slight changes) * mpfr.texi: added Mathieu Dutour in contributors * mpfr.texi: added mpfr_arctan * tests/tcan_round.c: added one test * round.c: fixed bug in mpfr_can_round_raw, when err > bn*BITS_PER_MP_LIMB * tests/tset_str.c: now tset_str is possible 2001-03-06 Paul Zimmermann * out_str.c: fixed bug for Infinity (was testing zero before) 2001-03-01 Paul Zimmermann * set_d.c: replaced (mp_limb_t) 4294967295 by CNST_LIMB(0xFFFFFFFF) 2001-02-22 Paul Zimmermann * set_d.c: forgot to declare q in mpfr_get_d2 when BITS_PER_MP_LIMB=64 2001-02-21 Paul Zimmermann * set_str.c: removed fprintf() when unexpected end of string * mpf2mpfr.h: added undef's to avoid warnings at compilation 2001-02-19 Paul Zimmermann * mpfr.texi: removed mpfr_set_machine_rnd_mode 2001-02-18 Paul Zimmermann * tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tswap.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/reuse.c, tests/tabs.c, tests/tadd.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpi.c, tests/tpow.c, tests/trandom.c: changed "int main(..)" to two lines * get_str.c: now initialize str_is_null correctly * tests/tround.c: added more tests * round.c: don't change MPFR_SIZE when allocated size is enough * mpfr.texi: updated specification of mpfr_sgn * mpfr.h: changed definition of mpfr_sgn to get rid of MPFR_NOTZERO * out_str.c: size of freed block by __gmp_free_func was wrong * tests/Makefile.am: added tisnan and tget_d * isnan.c: fixed bug for Inf (recognized as an ordinary number) * tests/tget_d.c, tests/tisnan.c: new test file 2001-02-16 Paul Zimmermann * agm.c: check overflow in _mpfr_ceil_exp2 2001-02-15 Paul Zimmermann * mpfr-test.h: added prototype for Ulp * isnan.c: changed _d to _p, added mpfr_number_p * round.c: changed MPN_COPY into MPN_COPY_INCR/MPN_COPY_DECR in mpfr_round_raw * tests/tsin_cos.c: added tests for one of arguments NULL * mpfr-impl.h: moved mpfr_sgn to mpfr.h (defined in manual) * mpz_set_fr.c: use MPZ_REALLOC * mpfr.h, set_str.c: added const to 2nd argument of mpfr_set_str * Makefile.am: added set_ui.c * set_ui.c, set_si.c: added cast to "unsigned long" for ai = ABS(i) moved mpfr_set_ui to separate file * mpfr.texi, get_str.c: now when str==NULL return a block which is exactly strlen(str)+1 bytes long * add.c, agm.c, exp2.c, exp3.c, generic.c, log2.c, pi.c, print_raw.c, set_d.c, sin_cos.c, sub.c: fixed problems with old K&R compilers (_PROTO missing) 2001-02-08 Paul Zimmermann * TODO: added more items 2001-01-23 Paul Zimmermann * mpfr-test.h: fixed ulp computation 2001-01-19 Paul Zimmermann * tests/tlog.c: changed behaviour for "tlog N": prints only differences with increasing ulps * set_d.c: fixed pb in mpfr_get_d2 for 64-bit machines: in q + res/MP_BASE_AS_DOUBLE, q seems first to be cast into a double, which gives more than one ulp of error 2001-01-18 Paul Zimmermann * mpfr.h: added guard to prevent multiple inclusion * cmp.c: fixed bug in mpfr_cmp2 (found on the IA64) 2001-01-11 Paul Zimmermann * tests/tset_str.c: added tests for 0 in mpfr_set_str_raw * set_str_raw.c: fixed bug for +0000E0 * sqrtrem.c: incorporated changes from Kevin/Torbjorn for GMP 3.2 * sin_cos.c: truncate the last uk (when the precision is not a power of 2) * set_str_raw.c: _mp_allocate_func -> _gmp_allocate_func * set_prec.c: _mp_reallocate_func -> _gmp_reallocate_func * set_dfl_prec.c: __gmp_default_fp_bit_precision -> __mpfr_default_fp_bit_precision * round.c: _mp_xxx_func -> _gmp_xxx_func * random.c: removed mpfr_srandom * print_raw.c: _mp_xxx_func -> _gmp_xxx_func * out_str.c: sprintf -> fprintf _mp_free_func -> _gmp_free_func * mpz_set_fr.c: _mp_reallocate_func -> __gmp_reallocate_func * mpfr.texi: added paragraph on NaN and infinities, docu on mpfr_nan_d and mpfr_inf_d removed mpfr_srandom some renamings * mpfr.h: removed srandom __gmp_default_fp_bit_precision -> __mpfr_default_fp_bit_precision added protocols for mpfr_get_default_prec, mpfr_nan_d and mpfr_inf_d * log.c: removed superfluous TMP_FREE(marker) * inp_str.c, init.c, get_str.c, generic.c: _mp_xxx_func -> _gmp_xxx_func * dump.c, clear.c: _mp_free_func -> _gmp_free_func * isnan.c: functions to check for NaN and infinities * Makefile.am: added isnan.c, removed srandom.h * TODO: added two items from Kevin * TODO: add 2 items * NEWS: 0.4 -> 1.0 2001-01-05 Paul Zimmermann * tests/tlog.c: added one test for large operands * agm.c: fixed bug in _mpfr_ceil_exp2 (underflow when exp < -1022) 2000-12-22 Paul Zimmermann * TODO: remove what was done * README: added mpfr-test.h * AUTHORS: added Vincent * NEWS, INSTALL: 1.1 -> 2001 * get_str.c: cast for _mpfr_floor_log2 was on the wrong side * tests/tpow.c: added one test * agm.c: simplified _mpfr_floor_log2 * pow.c: code was wrong for infinity * log.c: only editing * tests/tlog.c: added special() cases * log2.c: removed #if 0 (on Alpha with cc the enclosed code was still used since the # was not in the first column) * INSTALL: changes for version 1.1 * tests/texp.c: added one test (exp2 vs exp3) * exp2.c: changed c from mp_limb_t into unsigned long in mpfr_exp2_aux2 (otherwise bugs on IRIX -n32) * tests/tpow.c: added one test * pow.c: fixed wrong combination of conditions for Infinity * tests/tcmp2.c: added mpfr-test.h for MIPS 2000-12-22 Guillaume Hanrot * tests/Makefile.in: Modified macro calls 2000-12-22 Paul Zimmermann * tests/tset_str.c: added cast (int) to random() to avoid warning on Solaris * tests/tset_str.c: added * sqrtrem.c: tiny change at the end of main routine (suggested by Guillaume) * tests/tcmp2.c: added one test * tests/tadd.c: added two more tests * sub.c: fixed bug when c does not overlap with a, b is negative and GMP_RNDN * mpfr-impl.h, mpfr.h: moved prototypes for mpfr_set4 and mpfr_cmp3 to mpfr.h * cmp.c: fixed bug in mpfr_cmp2 when d=0 and lots of bits match * NEWS, INSTALL: updated for version 1.1 2000-12-21 Paul Zimmermann * tests/tpow.c: test file for power functions * tests/reuse.c: test file for in-place operations * tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, tests/tout_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c: unsigned char (or int) -> mp_rnd_t * tests/tagm.c: unsigned char -> mp_rnd_t * tests/tadd.c: unsigned int -> mp_rnd_t * print_raw.c, reldiff.c, set_d.c, sin_cos.c, sqrt.c, sqrt_ui.c, sub.c, sub_ui.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdump.c, tests/teq.c, tests/tmul_ui.c, tests/trandom.c, tests/ttrunc.c, trunc.c, ui_div.c, ui_sub.c, add.c, add_ui.c, agm.c, cmp.c, cmp_ui.c, div.c, div_ui.c, exp.c, exp2.c, exp3.c, get_str.c, inp_str.c, log.c, log2.c, out_str.c, pi.c, pow.c: k2r -> ansi style removed #include by defining auxiliary functions fixed several tiny remaining bugs with NaN/Inf * mpfr.texi: updated description of mpfr_cmp* and mpfr_sin_cos * mpfr.h: added MPFR_SIGN * mpfr-impl.h: added MPFR_CLEAR_NAN MPFR_RESET_INF -> MPFR_CLEAR_INF moved MPFR_SIGN to mpfr.h added prototypes for log2/isqrt/cuberoot functions * tests/Makefile.am: added reuse, tcmp2, teq, tpow, trandom, ttrunc * tests/tui_sub.c, tests/tui_div.c: removed isnan(), ... * tests/tsqrt_ui.c: removed gmp-impl.h, isnan(), ... * tests/tsqrt.c: removed gmp-impl, isnan(), ... * tests/tsin_cos.c: removed cputime stuff * tests/tset_z.c: k&r -> ansi style * tests/tout_str.c: removed isnan() decl. * tests/tmul.c: MINNORM -> mpfr-test.h * tests/tlog.c: removed isnan() decl. * tests/tget_str.c: k&r -> ansi style * tests/texp.c: ulp -> mpfr-test.h * tests/tdiv_ui.c: removed isnan() declaration * tests/tdiv.c: now use MINNORM and MAXNORM * tests/tagm.c: max, min -> macros * tests/tadd.c: added new tests * mpfr-test.h: added MINNORM, MAXNORM, MIN, MAX, ABS 2000-12-20 Guillaume Hanrot * tests/texp.c, tests/tset_str.c: A few basic patches. * rnd_mode.c: Added support for PPC/Linux * mpfr-test.h: Patch for wrong prototype. * tests/tout_str.c, tests/tset_q.c, tests/tset_str.c, tests/tset_z.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tadd.c, tests/tagm.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, configure, cputime.h, mpfr-test.h, Makefile.am, Makefile.in: Added prototypes for all test files. 2000-12-18 Vincent Lefevre * set_z.c, add_ulp.c, extract.c, mpz_set_fr.c, set_d.c, set_q.c: Warnings suppressed on Alpha/OSF1. 2000-12-18 Paul Zimmermann * Makefile.am: added mpfr-test.h * aclocal.m4: back to 1.3 * mpfr-test.h: auxiliary test files * tests/mpfr-test.h: moved to main directory * tests/mpfr-test.h: auxiliary test functions * tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tset_d.c, tests/tset_si.c, tests/tset_str.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tui_div.c, tests/tui_sub.c, set_prc_raw.c, set_prec.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sin_cos.c, sqrt.c, sqrt_ui.c, sqrtrem.c, sub.c, sub_ui.c, swap.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tagm.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tget_str.c, tests/tlog.c, tests/tmul.c, trunc.c, ui_div.c, ui_sub.c, urandomb.c, exp3.c, extract.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfr-impl.h, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, print_raw.c, random.c, random2.c, round.c, set.c, set_d.c, set_f.c, Makefile.in, aclocal.m4, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, configure, div.c, div_2exp.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c: changed name of mpfr struct fields: _mp_d -> _mpfr_d (to detect conflicts with mpf) fixed a few problems in non-STDC headers moved definitions of mpfr-impl.h to mpfr-test.h and created a real mpfr-impl.h 2000-12-15 Paul Zimmermann * tests/Makefile.am: removed tzeta * mpfr.texi: explained how to enter NaN/Inf with mpfr_set_str_raw * Makefile.am: removed zeta.c * zeta.c: added 'to do' for NaN/Inf flags * urandomb.c: clear NaN/Inf flags of result * ui_sub.c: improved indentation * ui_div.c, trunc.c: adapted to NaN/Inf * sub_ui.c: nothing (only better indenting) * sub.c: adapted to NaN/Inf removed warnings * sqrt_ui.c: adapted to NaN/Inf * generic.c, sin_cos.c: removed warnings * sqrt.c: clear NaN/Inf flags in normal case * set_z.c, set_str_raw.c: adapted to NaN/Inf * mpfr.h: added prototype for mpfr_srandom * random.c: now uses directly mpn_random, to avoid all problems with include files * tests/tsin_cos.c: added 4 tests * ui_sub.c, ui_div.c, sub_ui.c, sqrt_ui.c, sqrt.c: _mp_d -> MPFR_MANT * set_str_raw.c, set_prec.c, round.c, print_raw.c, mpz_set_fr.c: added error message when memory allocation fails * log.c: _mp_d -> MPFR_MANT * inp_str.c: added error message when memory allocation fails * init.c: 0 -> NULL * get_str.c: added error message when memory allocation fails * generic.c: added error message if memory allocation fails * exp2.c: _mp_d -> PTR * eq.c, div.c: _mp_d -> MPFR_MANT * agm.c: _mp_prec -> MPFR_PREC _mp_d -> MPFR_MANT * mpf2mpfr.h, mpfr.h: added mpfr_swap * mpfr.h: removed MPFR_SET_IS_FP (not used) 2000-12-15 Guillaume Hanrot * mul.c, pow.c, init.c, log.c, mpfr.h: A few patches. 2000-12-15 Vincent Lefevre * mpfr.h: MPFR_CHANGE_SIGN modified to avoid a possible side effect. 2000-12-15 Paul Zimmermann * set_f.c: warning: x is a MPF not a MPFR! 2000-12-15 Guillaume Hanrot * random.c: Modification of the order of includes in random.c 2000-12-15 Vincent Lefevre * tests/Makefile.in, Makefile.in, configure, configure.in: Added some warning flags for GCC. 2000-12-15 Guillaume Hanrot * srandom.h: Header file for srandom() * exp.c, exp2.c, mpfr.h, pow.c, random.c, add_ulp.c: Patches for compiler warnings. * mul_ui.c, pi.c, random.c, random2.c, set_d.c, set_f.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sub_ui.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, add_ui.c, cmp.c, cmp_ui.c, div.c, get_str.c, log2.c, mpz_set_fr.c: Yet another patch for include files. * set_z.c, sin_cos.c, sqrt.c, sub.c, sub_ui.c, swap.c, trunc.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, log2.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, print_raw.c, print_rnd_mode.c, random.c, random2.c, reldiff.c, round.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, set_str_raw.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c, exp3.c, extract.c, get_str.c, init.c, inp_str.c, log.c: Permutation of includes to avoid warnings due to careless multiple definition of ULONG_MAX. 2000-12-14 Vincent Lefevre * mul_ui.c, set.c, set_f.c: Bug fixed concerning the flags. * set_str.c: Bugs fixed (in case char is signed and accented characters are given). * random.c: Include "urandom.h". Old code removed. * reldiff.c, set.c, set_d.c, set_f.c, set_q.c, set_si.c: Take into account Inf, Nans ; clear the flags of the return variable in most function calls. * random.c: Use urandom(). * random.c, random2.c, reldiff.c: Take into account Inf, Nans ; clear the flags of the return variable in most function calls. 2000-12-14 Guillaume Hanrot * random.c: Yet another random patch. * random.c: Replaced random by rand. 2000-12-13 Paul Zimmermann * div.c: fixed pb with mp_ptr vs mp_srcptr 2000-12-13 Guillaume Hanrot * tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tsin_cos.c, tests/tsqrt.c, tests/tsub_ui.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile.in, tests/tadd_ui.c, tests/tdiv.c, tests/tmul.c: Take into account Inf, Nans ; clear the flags of the return variable in most function calls. Tests updated accordingly * pi.c, pow.c, set_d.c, sub_ui.c, ui_div.c, ui_sub.c, Makefile.in, eq.c, generic.c, inp_str.c, log.c, log2.c, mpfr.h, mul.c, mul_ui.c: Take into account Inf, Nans ; clear the flags of the return variable in most function calls. 2000-12-13 Paul Zimmermann * sin_cos.c: check that we can round the cosine too 2000-12-12 Paul Zimmermann * exp3.c: removed TIMING stuff ensures prec_x >= 0 * exp2.c: we need m >= 2 in mpfr_exp2_aux2 * sub_ui.c: forgot TMP_MARK(marker) * sqrt.c, sqrt_ui.c: forgot TMP_MARK(marker) or free'd in wrong order * set_f.c, ui_div.c, ui_sub.c: forgot TMP_MARK(marker) * mpf2mpfr.h: fixed mpf_reldiff, mpf_urandomb and mpf_t * INSTALL: added stack-alloc.h when --disable-alloca 2000-12-11 Vincent Lefevre * out_str.c, set_d.c: out_str.c: included set_d.c: (0./0.) instead of sqrt(-1) for NaN (doesn't need ) set_d.c: () added for macros Infp and Infm 2000-12-07 Paul Zimmermann * tests/tcmp.c: shortened string in mpfr_set_str_raw which was greater than precision * set_d.c: replaced isnan/isinf/math.h (not portable, for example isinf does not exist on Sparc) by new macros from mpfr.h * set_str_raw.c, mpfr.texi: added an error message when the mantissa is larger than the precision (in mpfr_set_str_raw) * mpfr.h: added macros to recognize doubles that are NaNs and infinities (isinf is not portable and requires math.h) * div.c: in case the destination precision is less than that of the operands, and the 1st iteration fails, increase directly the precision to the maximum of that of the operands, otherwise divisions by 1.0 may need lots of iterations * add.c: added 'return' after dealing with infinities * TODO: added wish from JC Fauge`re 2000-12-05 Paul Zimmermann * init.c, mpfr.texi: mpfr_init/mpfr_init2 initialize to 0 (compatibility with mpf) * cmp.c: fixed bug in mpfr_cmp2 when return value is k*BITS_PER_MP_LIMB-1 * tests/tcmp.c: added new test for mpfr_cmp2 * mpfr.h: now ABSSIZE uses only 29 bits 2000-12-04 Paul Zimmermann * mpfr.texi: added some explanations how to free the memory space allocated by mpfr_get_str * sqrt.c: fixed one bug found by N. Mueller (MPFR_ABSSIZE(u) was used instead of usize) * tests/tsqrt.c: added one more test from N. Mueller 2000-12-01 Paul Zimmermann * exp3.c, sin_cos.c: cleaned calls to mpfr_extract * TODO: added new line * init.c: added error message when _mp_allocate_func returns 0 * mpfr.h: added header for mpfr_extract * extract.c: - documented what function does - cleaned code - added header about license... * agm.c, exp2.c, exp3.c, get_str.c, log2.c, mpfr.h, pi.c, pow.c, sin_cos.c: replaced log(2.0) by LOG2 [first step in getting rid of math.h] * mpfr.h: added extern "C" { ... } for inclusion in C++ removed old KARATSUBA threshold for gmp 2.0.2 * tests/tcmp.c, TODO, cmp.c: fixed bug in mpfr_cmp3 (when b=0, s not taken into account) * tests/Makefile.am, Makefile.am: added swap/tswap * tests/tswap.c: test file for new function mpfr_swap * swap.c, mpfr.texi: added new function mpfr_swap * tests/tround.c, tests/tset_d.c, tests/tset_f.c, tests/tset_q.c, tests/tset_si.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c, tests/ttrunc.c, tests/tui_div.c, tests/tui_sub.c, tests/tzeta.c, tests/Makefile.in, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c, tests/tcmp2.c, tests/tcmp_ui.c, tests/tdiv.c, tests/tdiv_ui.c, tests/tdump.c, tests/teq.c, tests/texp.c, tests/tget_str.c, tests/tlog.c, tests/tlog2.c, tests/tmul.c, tests/tmul_2exp.c, tests/tmul_ui.c, tests/tout_str.c, tests/tpi.c, tests/trandom.c, set_str_raw.c, set_z.c, sqrt.c, sqrt_ui.c, sqrtrem.c, sub.c, sub_ui.c, ui_div.c, ui_sub.c, zeta.c, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, pow.c, print_raw.c, print_rnd_mode.c, random.c, reldiff.c, rnd_mode.c, round.c, set.c, set_d.c, set_dfl_prec.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_rnd.c, set_si.c, set_str.c, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, exp.c, exp2.c, exp3.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfi.c, mpfr-impl.h, mpfr.h: changed copyright to Free Software Foundation * TODO: added possible bug in mpfr_get_str * init_set.h: now all is in mpfr.h * sin_cos.c: return value was wrong for input non-zero (should return 1 = inexact) * mpfr.texi: fixed/improved doc. of mpfr_sin_cos and mpfr_urandomb * mpfr.h: removed macro for mpfr_init_set_str_raw * mpfr.h: added prototype for mpfr_sin_cos * sqrt.c: sign of result was not correctly (re)set * tests/tsqrt.c: added test to check sign of square root 2000-11-29 Paul Zimmermann * sin_cos.c: gained a factor of 2 in most cases (replaced initial constant factor=2 for additional bits for cos(x) by log(n)) * tests/Makefile.am: added tsin_cos * sub.c: fixed potential problem in mpfr_sub1 (k=0 and kc<0) * tests/tsin_cos.c: test file for sin/cos 2000-11-28 Paul Zimmermann * sub.c: forgot cast to int before comparison between imax (can be negative) and an * cmp.c: returned value was one too small in case d=1 * tests/tadd.c: added new test from N. Mueller * set_d.c: added return for case of infinities * mpfr.h: added macro MPFR_RESET_INF * set_d.c: don't forget to reset infinity flag if set! * cmp.c: fixed bug in mpfr_cmp2: wrong limb considered after cp[cn--] when cp[cn] was not 111...111 * sub.c: fixed bug when imax>an 2000-11-27 Paul Zimmermann * mpfr.h: added macro MPFR_IS_ZERO 2000-11-21 Guillaume Hanrot * tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tagm.c, tests/tcan_round.c, tests/tcmp.c: Infinis, premiere tentative (tests) * round.c, set.c, set_d.c, set_str_raw.c, sin_cos.c, sqrt.c, sub.c, zeta.c, div.c, div_ui.c, dump.c, eq.c, exp.c, exp2.c, exp3.c, extract.c, generic.c, get_str.c, log.c, mpfr.h, mpz_set_fr.c, mul.c, mul_ui.c, out_str.c, pow.c, print_raw.c, reldiff.c, add.c, add_ulp.c, agm.c, cmp.c, cmp_ui.c, configure: Infinis, premiere tentative. 2000-11-13 Paul Zimmermann * TODO: added one remark from GH * mpfr.texi: removed mpfr_cmp2 2000-11-13 Guillaume Hanrot * Makefile.in, aclocal.m4: Added support for Inf. Modified zeta. 2000-10-26 Paul Zimmermann * TODO: protection of macros done * replace_all: shell-script to replace xxx by yyy in all source files * tests/tadd.c, tests/teq.c, tests/tmul_ui.c, tests/tset_si.c, tests/tset_str.c, tests/ttrunc.c: protected macros: xxx -> MPFR_xxx * trunc.c, ui_div.c, ui_sub.c, urandomb.c, zeta.c, print_raw.c, random.c, random2.c, reldiff.c, round.c, set.c, set_d.c, set_f.c, set_prc_raw.c, set_prec.c, set_q.c, set_si.c, set_str.c, set_str_raw.c, set_z.c, sin_cos.c, sqrt.c, sqrt_ui.c, sub.c, sub_ui.c, exp.c, exp2.c, exp3.c, extract.c, generic.c, get_str.c, init.c, log.c, log2.c, mpfi.c, mpfr.h, mpfr.texi, mpz_set_fr.c, mul.c, mul_2exp.c, mul_ui.c, neg.c, out_str.c, pi.c, Makefile.in, add.c, add_ui.c, add_ulp.c, agm.c, clear.c, cmp.c, cmp_ui.c, div.c, div_2exp.c, div_ui.c, eq.c: protected all macros: xxx -> MPFR_xxx 2000-10-24 Paul Zimmermann * mpfi.h: fichier d'include pour mpfi.c * mpfi.c: interval arithmetic level (1st version) * TODO: added two suggestions from Ben Hinkle 2000-10-19 Guillaume Hanrot * tests/Makefile.in: Bof. * .pure, mmpfr, mpfr.h: Suppression de vieilleries. * mpfr.h: 1 << 31 -> ((unsigned int)1) << 31. * dump.c, log.c, round.c, set_d.c, set_str.c: Correction de prototypes faux dans le cas ou on n'est pas -D__STDC__. 2000-10-02 Paul Zimmermann * exp3.c, extract.c, generic.c, print_raw.c, set_str_raw.c: malloc -> *_mp_allocate_func or TMP_ALLOC * round.c, set_d.c, set_prc_raw.c, set_prec.c, urandomb.c, exp2.c, init.c, mpfr.h: mpfr_t -> mpfr_ptr or mpfr_srcptr 2000-09-29 Paul Zimmermann * tests/texp2.c: removed -> all is in texp.c * tests/texp.c: added comparison between exp2 and exp3 * exp3.c: take also the target precision into account for the guard bits * exp2.c: new faster version with O(n^(1/3)*M(n)) algorithm * exp.c: adjusted exp2-exp3 threshold for new faster version of mpfr_exp2 * Makefile.am: added mpz_set_fr.c * tests/Makefile.am: added tdump * get_str.c: fixed pb for op=0 (added \0 at the end of string) * dump.c: use strlen to determine memory to free * tests/tdump.c: test file for mpfr_dump * Makefile.am: removed karasqrt.c, added sqrtrem.c * mpfr.h: kara_sqrtrem -> mpn_sqrtrem_new * karasqrt.c: now replaced by new code in sqrtrem.c * sqrt.c: now uses new code mpn_sqrtrem_new * sqrtrem.c: new version of fast MPN square root (should be integrated in a future release of GNU MP) 2000-09-28 Paul Zimmermann * tests/tadd.c: added another example from N. Mueller * sub.c: fixed another ABW bug * sub.c: fixed two Array Bound Writes * add.c: fixed one Array Bound Read (to_nearest, bp=cp and k>=cn) * tests/tadd.c: added 2 new tests from Norbert Mueller 2000-09-27 Paul Zimmermann * tests/tadd.c: added new test * sub.c: fixed Array Bound Write 2000-09-20 Paul Zimmermann * mpfr.texi: added some words about the inclusion of mpfr.h * TODO: we need to better protect macros * Makefile.am: removed MPFR_OBJECTS (does not work) * Makefile.am: added $(MPFR_OBJECTS) in libmpfr_a_LIBADD * Makefile.in: added $(MPFR_OBJECTS) in libmpfr_a_DEPENDENCIES * mpfr.texi: added contributions from Emmanuel Jeandel and Thom Mulders * AUTHORS: added Thom Mulders * shortmul.c: routines for naive/fast short multiplication, contributed by Thom Mulders (ETH Zu"rich) 2000-09-19 Paul Zimmermann * tests/tdiv_ui.c: added new test for overlapping x, y * div_ui.c: fixed problem when x=y 2000-09-14 Paul Zimmermann * tests/tadd.c: added pb from Norbert Muller * sub.c: fixed SEGV (mpn_lshift doesn't seem to like src_size=0) * tests/Makefile.am: now prints "failed" when test file doesn't return 0 2000-08-29 Paul Zimmermann * div.c: replaced mpn_divrem by mpn_tdiv_qr for gmp 3 or later and avoid copy of one operand when possible * INSTALL: updated (make check, make install) * README: described each file * NEWS: News for version 1.0 2000-08-25 Paul Zimmermann * get_str.c: fixed bug for 0.9999999999... * tests/tout_str.c: added test for 0.99999999999999999 2000-08-24 Paul Zimmermann * TODO: added mpfr_swap * log2.c: now store last computed value together with last rounding mode 2000-08-23 Paul Zimmermann * mpfr.texi: target ps -> mpfr.ps * Makefile.am: added $(srcdir) to trunc.c for sub-directory compilation 2000-08-16 Paul Zimmermann * sin_cos.c: removed some memory leaks * generic.c: solved memory leaks with T[i] and qtoj[i] * TODO: updated (done autoconf, faster mpfr_exp, sin/cos) * INSTALL: updated for version 1.0 * mpfr.texi: COPYING.LIB -> COPYING * COPYING: renamed back (wanted for "make dist") * COPYING.LIB: renamed back to COPYING (wanted for "make dist") * COPYING.LIB: GNU Library General Public License * COPYING: renamed to COPYING.LIB, according to mpfr.texi * log2.c: result was free'd twice when good=1 * AUTHORS: put information about authors * configure: PACKAGE and VERSION are not defined any more * mpfr.texi: gmp-mparam.h is required too * Makefile.am: IRIX make does not recognize $< (MISCFLAGS) * configure.in: do not define PACKAGE and VERSION in AM_INIT_AUTOMAKE, this avoids conflicts with GMP 3.1 config.h [thanks to Kevin Ryde] * mpfr.texi: updated for GMP 3.1 * set_d.c: MP_BASE_AS_DOUBLE already defined in gmp-impl.h * exp3.c: nb_terms[0] was not initialized * log2.c: fixed some FNH (free not in heap) problems for binary splitting method (prec >= 30000) * Makefile.in: gmp.info -> mpfr.info * Makefile.in: set_dfl_rnd.* -> set_rnd.* (to avoid conflict with set_dfl_prec.* on DOS 8.3) * tests/Makefile: now automatically generated by configure * div_ui.c: added if (__GNU_MP_VERSION < 3) for mpn_divrem_1-bug patch * Makefile.am: set_dfl_rnd -> set_rnd * set_rnd.c: new name of set_dfl_rnd.c (avoids clash with set_dfl_prec.c on DOS 8.3) * set_dfl_rnd.c: renamed to set_rnd.c (otherwise truncates like set_dfl_prec.c on a DOS 8.3 filesystem) * mpfr.texi: setfilename: gmp.info -> mpfr.info * tests/Makefile.am: replaced path for libmpfr.a by $(top_builddir) test files are now in check_PROGRAMS instead of bin_PROGRAMS (they don't need to be installed) * tests/tadd.c, tests/tset_si.c: replaced back BITS_PER_MP_LIMB by mp_bits_per_limb (not important in test files) * mpfr.h: replaced macros for mpfr_init_set_si by "do { ... } while (0)" so they'll work in an if/else like if (foo) mpfr_init_set_si (f, -123, GMP_RNDN); else bar (); [thanks to Kevin Ryde] * tests/Makefile, tests/tadd.c, tests/tset_si.c, print_raw.c, set_si.c, sqrt.c, sub.c, add.c, cmp.c, cmp_ui.c, div_ui.c, exp2.c, mpf2mpfr.h, mul.c: replaced mp_bits_per_limb by BITS_PER_MP_LIMB (constant) 2000-08-14 Paul Zimmermann * Makefile.in: added mpf2mpfr.h * tests/tadd.c: define check2 only with -DTEST * mpfr.texi: updated for new configure from Emmanuel Jeandel, to GMP 3.xxx and removed errors with texinfo * rnd_mode.c: solaris --> __sparc__ * rnd_mode.c, tests/tui_div.c, tests/tui_sub.c, tests/Makefile, tests/tabs.c, tests/tadd.c, tests/tadd_ui.c, tests/tcmp2.c, tests/tdiv.c, tests/tset_d.c, tests/tsqrt.c, tests/tsqrt_ui.c, tests/tsub_ui.c: ifdef IRIX64 -> ifdef __mips * Makefile.in: IRIX/make does not understand $< : expanded to trunc.c * rnd_mode.c: use standard macro for Alpha 2000-07-13 jeandel * INSTALL: autoconf options described * tests/Makefile.in: timestamp modified * configure: timestamp changed * tests/Makefile.am, Makefile.am, Makefile.in: nothing to say * acinclude.m4, aclocal.m4: Timestamp * tests/Makefile.in, Makefile.am, Makefile.in: Small bug fixed * configure, configure.in: Timestamp modified ? * tests/Makefile.in, Makefile.in: Timestamp modified * configure, configure.in: Nothing * tests/Makefile.am, tests/Makefile.in: New release * tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in: Bugs fixed * tests/Makefile.in: Bug fixed * mpfr.texi: sin_cos added * log2.c, pi.c: New algorithm, new wrapper 2000-07-12 Paul Zimmermann * tests/tround.c: replaced 0 by GMP_RNDN * div.c: fixed (hopefully) bug for 1/1 in precision 32, 64, ... * tests/tdiv.c: added test for 1/1 in precision 32 or 64 2000-07-11 Paul Zimmermann * tests/tlog.c: use mpfr_print_rnd_mode now 2000-07-11 jeandel * INSTALL, Makefile.in, configure, configure.in: Bug Fixed, and installation guide made * Makefile.am, configure, configure.in: Fixed bug * Makefile.am, Makefile.in: Bug Fixed with Solaris make * extract.c: strings.h added * tests/Makefile.in, Makefile.in: Deps included * tests/Makefile.am, tests/Makefile.in: Bug Fixed * tests/Makefile.in: Bug fixed * tests/Makefile.am: Bug Fixed * tests/Makefile.am, tests/Makefile.in, Makefile.am, Makefile.in, acinclude.m4, aclocal.m4, configure, configure.in, install-sh, missing, mkinstalldirs, texinfo.tex: First Release * COPYING.LIB: *** empty log message *** * COPYING, ChangeLog: First Release * AUTHORS: First release * README: First Release * NEWS: *** empty log message *** * Configure: Added sin_cos * sin_cos.c, generic.c: First Release 2000-06-29 jeandel * extract.c: Memory problems fixed * exp3.c: Memory Leaks Fixed 2000-06-29 Paul Zimmermann * mpfr.h: added prototype for mpfr_sub_ui * init.c: now use mpfr macros * sub.c: be careful not to call mpn_sub_n/mpn_sub_1 with a size 0 * clear.c: fixed to free an entire number of limbs * tests/tsub_ui.c: test file for sub_ui 2000-06-28 jeandel * Configure: mpfr_exp3 and mpfr_extract added to Makefile * extract.c, exp.c, exp2.c, exp3.c: First Release 2000-06-21 Paul Zimmermann * tests/tsqrt_ui.c: distinguish between mpfr failure and difference with sqrt() * tests/tsqrt.c: ensures random numbers given to sqrt() are positive * rnd_mode.c: adapted for freebsd * mpfr-impl.h: modified drand to avoid false NaNs (makes SEGV under FreeBSD) * Configure: added entry for FreeBSD, removed -pedantic option * tests/tui_sub.c: added one test * tests/tadd.c: added new tests * mpfr.h: added prototype for mpfr_set_prec_raw * TODO: removed work done * sub.c: fixed several bugs * add.c: merged different roundings in case diff_exp * tests/ttrunc.c, tests/trandom.c, tests/tout_str.c, tests/teq.c, tests/tdiv_ui.c: Various patches for leaks, UMR and (one) BUS. 2000-06-19 Guillaume Hanrot * tests/tmul_2exp.c, tests/tset_str.c: This patch suppresses a few mem leaks. * tests/tcmp_ui.c, tests/tsqrt.c: Suppressed memory leaks. * div.c, mul_ui.c, sqrt.c: Patch for 1 << (BITS_PER_MP_LIMB - x) when x is 0 (produces inexact results on PPCs). 2000-06-16 Paul Zimmermann * tests/trandom.c: arguments of gmp_randinit were in wrong order 2000-06-16 Guillaume Hanrot * eq.c: Patch in the case when n_bits is a multiple of 32. 2000-06-16 Paul Zimmermann * tests/tabs.c: added patch to get denorms on IRIX64 * tests/tadd.c: put instruction to get denormalized numbers on IRIX64 out of #ifdef TEST * div.c: fixed bug occurring on LinuxPPC (1 << 32) * tests/tdiv.c: added one test (bug on LinuxPPC) * tests/tset_str.c: added one test * trunc.c: fixed several problems * tests/ttrunc.c: added more tests 2000-06-16 Guillaume Hanrot * round.c: Patches for the case where the precision is a multiple of the word size. 2000-06-16 Paul Zimmermann * sub.c: fixed another bug * tests/tadd.c, tests/tui_sub.c: added one test * mpfr.h: added prototype for mpz_set_fr * log.c: improved choice of initial precision * Configure, mpz_set_fr.c: added mpz_set_fr (conversion from mpfr to mpz) * tests/tround.c: added return type 'int' for main 2000-06-15 Guillaume Hanrot * Configure: Added TESTFLAGS to the main Makefile. Added ttrunc. * trunc.c: Minor patch (put to 0 the nonsignificant bits). * mpfr.h: Added declaration of trunc, ceil, floor. * tests/ttrunc.c: Tests for trunc, ceil, floor. * Configure: Added TESTFLAGS variable to the compile instruction, for use as make "TESTFLAGS=-DTEST" 2000-06-15 Paul Zimmermann * tests/teq.c: 1 -> (mp_limb_t) 1 [pb on 64-bit machines] reduced number of tests to 1000 2000-06-15 Guillaume Hanrot * tests/trandom.c: Display of statistics is only toggled if a number of tests to be performed is given. Shameful hack, but is getopt really portable ? * Configure: Added trandom, teq * mpfr.h: Added random2, urandomb * tests/tmul_2exp.c: Added div_2exp to the (very rough) test. * tests/trandom.c: Very basic statistical tests for random, random2, urandomb. * random.c: Patch for random (libc's random() is on 31 bits only) * tests/teq.c: Test for mpfr_eq. * eq.c: Patch a few incoherences of eq.c wrt the manual + adapt to mpfr usual semantics 2000-06-07 Paul Zimmermann * cputime.h: header file providing cputime() function * tests/texp2.c: test file comparing mpfr_exp and mpfr_exp2 * exp2.c: O(n^(1/3)*log(n)) algorithm using Brent's method and Brent-Kung's O(sqrt(t)) algorithm to evaluate a power series of order t [exact rounding not yet finished] 2000-05-29 Paul Zimmermann * round.c: fixed bug in mpfr_round (wrong sign) * round.c: fixed bug in mpfr_round: did not check allocated space was large enough * tests/tcmp_ui.c: main -> int main * rnd_mode.c: added #ifdef TEST: if not defined (default), then function mpfr_set_machine_rnd_mode is not defined * tests/tlog.c, tests/tmul.c, tests/tout_str.c, tests/tset_q.c, tests/tui_div.c, tests/tui_sub.c, tests/tcmp.c, tests/tdiv.c, tests/tdiv_ui.c, tests/texp.c, tests/tget_str.c, tests/tabs.c, tests/tadd_ui.c: added #ifdef TEST to disable comparison with machine arithmetic by default (i.e. calls to mpfr_set_machine_rnd_mode) * sqrt.c: removed longlong.h (not needed) * set.c: now deals with NaN * round.c: RND_MODE -> rnd_mode * mpfr.h: mpfr_init is now a function (no more a macro) * init.c: printf -> fprintf added mpfr_init as function * mpf2mpfr.h: changed (x) -> x fixed several typos * div.c: removed printf 2000-05-26 Paul Zimmermann * tests/tagm.c: added ifdef TEST * tests/tsqrt.c: removed debug line * tests/tui_sub.c: added one test * tests/tadd.c: added 2 new tests * add.c: little change * sub.c: more changes * tests/tsqrt.c: added ifdef TEST * tests/tset_f.c: does not use machine rounding mode any more * tests/tsqrt_ui.c, tests/tget_str.c: added ifdef TEST * tests/tadd.c: added 7 new tests * tests/tui_sub.c: fixed typo in printf format * add.c, sub.c: fixed several rounding problems * sub.c: rewritten case dif<=0 and PREC(b)>PREC(a) (merged all roundings) * tests/tadd.c: removed DEBUG, VERBOSE ifdef's * sub.c: fixed (hopefully) the case dif<=0, PREC(b)>PREC(a), directed rounding * sub.c: replaced (mp_limb_t)1 by macro ONE fixed bug for GMP_RNDN with overlap=1 * add.c: removed misplaced comment * tests/tadd.c: added one test * tests/tadd.c: does not use rnd_mode.c by default * add.c: removed unused label * add.c: fixed more tiny bugs 2000-05-25 Paul Zimmermann * tests/tsqrt_ui.c: use mpfr_print_rnd_mode now * tests/tui_sub.c: added one test * tests/tadd_ui.c, tests/tadd.c: added more tests * add_ui.c: removed TMP_ALLOC stuff * sub.c: fixed new bug when a <- b - c with tiny c * sub.c: fixed bug in a <- b-c when c very small but does not overlap with a * random2.c: removed 'inline' (does not compile on Alpha with gcc 2.8.1) * tests/tdiv.c, tests/tget_str.c, tests/tout_str.c: added include file unistd.h * tests/tcmp_ui.c: fixed warning with long arguments * inp_str.c, set_str.c: initial version * tests/tset_str.c: added tests for mpfr_set_str * tests/tcmp.c: now returns 0 if all works * pow.c: changed to return the error in ulps * mpfr.texi: added new functions mpfr_set_str and mpfr_inp_str * mpfr.h: added prototypes for set_str, inp_str changed return value for mpfr*pow* * mpf2mpfr.h: separated functions with/without rounding argument * Configure: added tabs * Configure: added set_str.o and inp_str.o 2000-05-24 Paul Zimmermann * sub_ui.c: initial version * Configure: added rule for sub_ui.o * Configure: use only one file (trunc.c) for ceil, floor, trunc * ceil.c, floor.c: now use trunc.c for all 3 functions (ceil, floor, trunc) * trunc.c: added ifdef to avoid warning at compilation * reldiff.c: removed unused variable * mpfr.h: fixed output type for mpfr_ui_div * urandomb.c: removed 3rd argument (use PREC(rop) instead) added include longlong.h * set_prc_raw.c: stupid typo: ABSSIZE -> ABSSIZE(x) * tests/tdiv.c: change due to new semantics of mpfr_init_set* macros * set_prc_raw.c: now makes an error when precision too large wrt allocated space * mpfr.texi: added new implemented functions * mpfr.h: - added macro for mpfr_sgn - removed argument 'p' in mpfr_init_set* macros for compatibility with mpf * mpf2mpfr.h: updated wrt new functions * Configure: added sub_ui * Configure: added new test files * tests/tui_div.c, tests/tui_sub.c, tests/tadd_ui.c, tests/tsqrt_ui.c, tests/tset_q.c: new test files * tests/tadd.c: added new tests * tests/tabs.c: improved tests * reldiff.c, ui_sub.c, add_ui.c, sqrt_ui.c, ui_div.c: new functions (compatibility with mpf) * set.c: added 4th arg (was missing in non-stdc def) * mpfr.texi: added new functions (compatibility with mpf) * mpfr.h: added several prototypes * add.c: fixed remaining bug (case overlap=5, dif>0) * Configure: added add_ui, sqrt_ui, ui_div, ui_sub, reldiff 2000-05-21 Guillaume Hanrot * Configure, ceil.c, floor.c, trunc.c: Compatibility mpf/mpfr, second part. Ceil, floor, trunc. Yet untested. * mpf2mpfr.h: Include file for compatibility module mpf -> mpfr. * Configure, dump.c, eq.c, random2.c, set_prc_raw.c, urandomb.c: Compatibility with mpf. WARNING: THESE FUNCTIONS ARE UNTESTED IN THEIR PRESENT FORM. THEY *DO* COMPILE HOWEVER. 2000-05-18 Paul Zimmermann * tests/tzeta.c: removed unused variables * tests/tmul_2exp.c: removed ';' * tests/tround.c, tests/tcmp_ui.c: added return * tests/tset_f.c: added calls to mpf[r]_clear, and rewrote to avoid memory leaks * tests/tget_str.c: added calls to free * mpfr.h: corrected comment about field mp_size 2000-05-12 Paul Zimmermann * tests/tout_str.c: added tests for negative numbers * tests/tget_str.c: added one test * get_str.c: fixed pb with rounding of negative numbers 2000-05-11 Paul Zimmermann * mpfr.texi: added mpfr_abs * tests/tabs.c: test file for mpfr_abs * mpfr.h: added mpfr_abs (macro using mpfr_set4) * TODO: updated wrt done/new tasks 2000-05-05 Paul Zimmermann * tests/tsqrt.c: added two tests * tests/tset_d.c: split mpfr_init2 into mpfr_init and mpfr_set_prec * Configure: removed karadiv.o * karasqrt.c: replaced mpn_divrem_n by mpn_divrem (efficient in GMP 3.0) * karadiv.c: not needed any more with GMP 3.0 * div.c: removed mpn_divrem_n stuff, now that Burnikel/Ziegler algorithm is in GMP 3.0 * tests/tout_str.c, tests/tget_str.c: added one test 2000-05-04 Paul Zimmermann * get_str.c: completely rewritten (changed semantics) * sub.c: initialized variable bh to avoid warning at compilation * mpfr.h: added prototype for mpfr_set_default_rounding_mode * cmp_ui.c: fixed pb in mpfr_cmp_ui_2exp for i=0 * TODO: updated according to meeting from May 4, 2000 * INSTALL: updated for AIX * rnd_mode.c, Configure: updated for AIX (thanks to Gerardo Ballabio) 2000-05-02 Paul Zimmermann * tests/tcmp.c: added one test * cmp.c: fixed bug found by G. Ballabio for b=0 and 0 * Configure: added -ffloat-store for Alpha/OSF * cmp.c: added cast to mp_limb_t (bug on Alpha in tadd with -O2) * tests/tcmp2.c: added one test * karasqrt.c: removed #if 0 * div_ui.c: swapped gmp-impl.h and longlong.h for GMP 3.0 2000-04-14 Paul Zimmermann * tests/tset_si.c: added more tests * set_si.c: fixed pb when target precision is less than integer length * add.c: fixed problem not solved so far, i.e. when adding round bit produces a change of exponent 2000-04-13 Paul Zimmermann * tests/texp.c: fixed computation of ulps * round.c: removed variable xrw in mpfr_round_raw (not used) * mul_ui.c: replaced 1st my by my+sh in mpfr_round_raw call * tests/tmul_ui.c: added 2 more tests 2000-04-13 Guillaume Hanrot * mul_ui.c: Correction d'un bug quand le carry contient tous les bits significatifs. 2000-02-11 Paul Zimmermann * tests/tzeta.c: improved indentation mpfr_pi -> mpfr_const_pi * tests/tset_z.c: added one test * tests/tpi.c: mpfr_pi -> mpfr_const_pi * tests/tmul_ui.c: use mpfr_cmp_ui instead of SIGN * tests/tlog2.c: mpfr_log2 -> mpfr_const_log2 * tests/texp.c: mpfr_pi -> mpfr_const_pi * Configure: added -O2 compilation flag added set_q * set_q.c: convert rational (mpz_q) to floating-point (mpfr_t) * TODO: removed things which were done * add.c, agm.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * clear.c: use PREC() macro instead of _mp_prec, and corrected size to free * cmp.c, cmp_ui.c: SIGN -> MPFR_SIGN * div.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN added non standard C header * div_2exp.c: unsigned char -> mp_rnd_t * div_ui.c, exp.c, get_str.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * init.c: unsigned long int -> mp_prec_t * log.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * log2.c: renamed to mpfr_const_log2 unsigned char -> mp_rnd_t * mpfr.h: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN unsigned long int -> mp_prec_t * mpfr.texi: unsigned char -> mp_rnd_t unsigned long int -> mp_prec_t * mul.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * mul_2exp.c: unsigned char -> mp_rnd_t * mul_ui.c, neg.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * out_str.c: unsigned char -> mp_rnd_t * pi.c: renamed to mpfr_const_pi unsigned char -> mp_rnd_t * pow.c: unsigned char -> mp_rnd_t added non standard C header * print_raw.c: SIGN -> MPFR_SIGN * print_rnd_mode.c: unsigned char -> mp_rnd_t * random.c: added non standard C header * rnd_mode.c: unsigned char -> mp_rnd_t * round.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN unsigned long int -> mp_prec_t * set.c, set_d.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * set_dfl_prec.c: unsigned long int -> mp_prec_t * set_dfl_rnd.c: har -> mp_rnd_t * set_f.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * set_prec.c: unsigned long int -> mp_prec_t * set_si.c, set_z.c, sqrt.c, sub.c: unsigned char -> mp_rnd_t SIGN -> MPFR_SIGN * zeta.c: changed rounding mode to mp_rnd_t 2000-02-04 Paul Zimmermann * tests/tmul.c: now distinguish between true mpfr errors and possible errors from libm.a * tests/texp.c: now use print_rnd_mode * TODO: added suggestion from JP Merlet * Configure: added print_rnd_mode.c * tests/tset_f.c: added more tests * set_f.c: fixed bug(s) found by Jean-Pierre Merlet * mpfr.h: changed prototype of mpfr_set_f (takes now only 3 arguments) 2000-02-03 Paul Zimmermann * Configure: added karasqrt.o * mpfr.h: added prototype for kara_sqrtrem added redefinition of KARATSUBA_MUL_THRESHOLD (if not defined) removed definition of LOG_MP_BITS_PER_LIMB (was not used) * karasqrt.c: changed return type to mp_size_t and included mpfr.h * karadiv.c: moved definition of KARATSUBA_MUL_THRESHOLD (if not defined) to mpfr.h * karasqrt.c: implements Katatsuba square root * sqrt.c: now use kara_sqrtrem instead of mpn_sqrtrem * div_ui.c: fixed bug when high limb of quotient is zero 2000-02-02 Paul Zimmermann * tests/tadd.c: added one test [did fail on alpha] * sub.c: added cast to mp_limb_t in front of 1< * mpfr.h: added prototype for mpn_divrem_n (Burnikel-Ziegler algorithm) * div.c: use mpn_divrem_n (Burnikel-Ziegler algorithm) instead of mpn_divrem when rsize=rrsize * Configure: added karadiv.c (to be removed when incorporated in GMP) * karadiv.c: Burnikel-Ziegler division 2000-01-31 Paul Zimmermann * tests/texp.c: added further examples from V. Lefe`vre 1999-12-16 Paul Zimmermann * Configure: added macri VERSION for target dist * tests/tlog.c: added new tests from V. Lefe`vre * tests/tdiv.c: improved interface: tdiv N for doing N random tests * tests/tcmp2.c: added one test * sub.c: DEBUG2 -> DEBUG * log.c: added debug instructions * cmp.c: fixed nasty bug in mpfr_cmp2 (case cc=1) * add.c: replaced printf by fprintf for error 1999-12-10 Paul Zimmermann * tests/tlog.c: added new tests for large input * log.c: fixed bug for large input * log.c: rewritten the error analysis: - now analyzes the cancellation a posteriori - takes into account errors from rounding and initial approximation * tests/tlog.c: added tests from Vincent Lefe`vre * set_str_raw.c: no warning any more for negative exponent (thanks to V. Lefe`vre) 1999-12-08 Paul Zimmermann * exp.c: fixed bug found by V. Lefe`vre (when n<0, we have to compute an upper bound of log(2) instead of a lower bound) * tests/texp.c: added new test (bug found by V. Lefe`vre) 1999-12-07 Paul Zimmermann * TODO: added suggestion from V. Lefe`vre * TODO: added several remarks from Vincent Lefe`vre * mpfr.texi: corrected many typos found by Vincent Lefe`vre 1999-11-27 Paul Zimmermann * mpfr.texi, mul.c: removed executable rights * INSTALL: improved GMP link (thanks to Vincent Lefe`vre) added pointer to Alpha-Linux f-p problems * tests/tset_d.c: removed executable right on file 1999-10-20 Paul Zimmermann * tests/tcmp2.c: put back test for x=y * tests/tcmp2.c: modified to avoid y=-0.0 * tests/tcmp2.c: modified test procedure to return 53 when x=y * cmp.c: mpfr_cmp2(b,c) now returns PREC(b) if b=c, even if c=0 * tests/tsqrt.c: added one test * INSTALL: added test under Cygwin * Configure: $make -> $MAKE * tests/tset_z.c, tests/texp.c, tests/tlog.c, tests/tset_si.c, tests/tcmp2.c: removed *rand48 prototypes (pb under Cygwin) * tests/tagm.c: removed *rand48 prototypes * tests/tadd.c: removed lrand48 prototype (pb under Cygwin) * rnd_mode.c: added rounding instructions for Cygnus compiler under Windows * mpfr.h: added dummy *rand48 functions for CYGWIN * INSTALL: added info about gmp-mparam.h * Configure: incorporated data for CYGWIN 1999-10-15 Paul Zimmermann * tests/tsqrt.c: added one test * tests/tsqrt.c, tests/tdiv.c, tests/tmul.c: added boundary cases from paper from Michael Parks 1999-10-14 Paul Zimmermann * mul_ui.c: now set sign correctly * tests/tmul_ui.c: added test to check sign is correctly set * tests/texp.c: added worst case for arg. reduction * exp.c: fixed bug when initial approx. floor(x/log(2)) is too large 1999-10-08 Paul Zimmermann * rnd_mode.c: now use macros for Linux case, and added ifdef for _ISOC9X_SOURCE * Configure: changed target dist to create archive in a directory 1999-10-07 Paul Zimmermann * Configure: added targets doc and dist * INSTALL: added documentation and contact for problems * INSTALL: file for installation of mpfr * tests/tout_str.c, tests/tlog.c: added more tests * get_str.c: now deal with 0 and fixed bug on 64-bit machine * sqrt3.c: moved to sqrt.c * sqrt.c: now use directly mpn_sqrtrem (previously sqrt3.c) * mpfr.texi: updated prototypes of mpfr_div/mpfr_sqrt * mpfr.h: removed div3 and sqrt3 * log.c: div3 -> div * div3.c: moved to div.c * div.c: replaced implementation using Goldschmidt's algorithm by that using directly mpn_divrem (previously div3.c) * agm.c: sqrt3 -> sqrt * Configure: removed div3 and sqrt3 * COPYING.LIB: GNU Library Public License 1999-08-31 Paul Zimmermann * set_z.c: removed printf statement * set_z.c: added ABS for SIZ(z) when z<0 * get_str.c: removed special 'exact' stuff for n=0 * mpfr.h: fixed prototype of random 1999-07-30 Paul Zimmermann * mpfr.texi: replaced GNU MPFR by MPFR (not yet the GNU label) * add_ulp.c, add.c, zeta.c, sub.c, sqrt3.c, sqrt.c, set_z.c, set_str_raw.c, set_si.c, set_prec.c, set_f.c, set_dfl_rnd.c, set_dfl_prec.c, set_d.c, set.c, round.c, rnd_mode.c, random.c, print_rnd_mode.c, print_raw.c, pow.c, pi.c, out_str.c, neg.c, mul_ui.c, mul_2exp.c, mul.c, mpfr.h, mpfr-impl.h, log2.c, log.c, init_set.h, init.c, get_str.c, exp.c, div_2exp.c, div_ui.c, div3.c, div.c, cmp_ui.c, cmp.c, clear.c, agm.c, tests/tset_si.c, tests/tset_f.c, tests/tset_d.c, tests/tround.c, tests/tpi.c, tests/tmul_ui.c, tests/tout_str.c, tests/tmul_2exp.c, tests/tmul.c, tests/tlog2.c, tests/tlog.c, tests/tget_str.c, tests/texp.c, tests/tdiv_ui.c, tests/tdiv.c, tests/tcmp_ui.c, tests/tcmp2.c, tests/tcmp.c, tests/tcan_round.c, tests/tagm.c, tests/tadd.c, tests/tset_str.c, tests/tset_z.c, tests/tsqrt.c, tests/tzeta.c: added copyright notice 1999-07-09 Paul Zimmermann * tests/tset_z.c: added one test with prec=160 * pi.c: error term is N+1 and not N * set_z.c: fixed bug in case sh=0 1999-07-08 Paul Zimmermann * round.c: completely rewritten mpfr_can_round_raw, which costs now O(1) --- or more probably O(log n) --- instead of O(n) 1999-07-07 Paul Zimmermann * tests/tcmp.c: changed mpfr_init2 to mpfr_set_prec * tests/tlog.c: added one test * sub.c: added prototype for mpfr_add1 * tests/tcan_round.c: added mpfr_clear 1999-07-07 Guillaume Hanrot * sqrt3.c: sqrt3 now returns an exact / inexact flag. * mpfr.h: sqrt3 now returns an exact/inexact flag. 1999-07-07 Paul Zimmermann * set_str_raw.c: fix UMR (missing 0 terminating string) * init.c: put initialization of exponent back (avoids some UMRs) * get_str.c: fixed array bound write bug * tests/tsqrt.c: added one test * tests/tout_str.c: added several tests, and does not print on stdout when no argument * get_str.c: fixed several bugs 1999-07-07 Guillaume Hanrot * tests/tget_str.c: Added an example which causes an ABW in mpz_get_str. 1999-07-07 Paul Zimmermann * tests/tout_str.c: moved drand to mpfr-impl.h and added test in large precision * Configure: added tout_str 1999-07-07 Guillaume Hanrot * sqrt3.c: Problem with the exponents in the destructive case. 1999-07-07 Paul Zimmermann * div3.c: more changes from G. Hanrot * tests/tcmp2.c: use now drand48 instead of drand * random.c: simply set to zero the non-significant bits, don't call mpfr_round_raw * div3.c: upgrade from bug fixes from Guillaume Hanrot * pi.c: stores now last computed value together with its rounding mode * tests/tsqrt.c: checks now destructive version 1999-07-07 boldo * tests/tagm.c, tests/tlog.c: changes on random * log.c: using div3 * agm.c: using sqrt3 1999-07-06 Guillaume Hanrot * Configure: HPUX support, 2nd try. * div3.c, sqrt3.c: Patch for the (very seldom encountered) case of even rounding. 1999-07-06 Paul Zimmermann * tests/tset_f.c, tests/tset_si.c, tests/tset_str.c: added def. for random/srandom, which do not exist under HPUX * pi.c: store now computed values * log2.c: _mpfr_log2_* -> __mpfr_log2_* * rnd_mode.c: merged machine rounding instructions for Sun and HP * random.c: patch for HPUX (no random function) * Configure: added print_rnd_mode * mpfr.h: fixed prototype of mpfr_print_rnd_mode * mpfr-impl.h: improved ulp to deal with case a=0.0 * tests/tlog.c: added return 0 to main 1999-07-06 Guillaume Hanrot * div3.c: Forgotten casts. * Configure: Added sqrt3 + tentative support for Alpha linux. * sqrt3.c: The word added when the exponent is odd was sometimes unitialized. * sqrt3.c: Initial version. * mpfr.h: Added mpfr_sqrt3. 1999-07-06 Paul Zimmermann * mpfr.texi: added several functions, and updated others * mpfr.h: changed prototype of mpfr_log * log.c: returns now an int instead of void * init.c: removed initialization of exponent * exp.c: special case for exp(0) * tests/texp.c: added test for exp(0) 1999-07-06 Guillaume Hanrot * Configure: config.in -> ./config.in 1999-07-05 boldo * agm.c: new, quick & clean 1999-07-05 Paul Zimmermann * tests/tlog.c: added two tests and converted to double's 1999-07-05 boldo * tests/tlog.c: more checking ways 1999-07-05 Paul Zimmermann * tests/tsqrt.c: distinguishes now between true errors and differences with libm.a (which may fail too) * tests/tmul.c: removed mpf stuff in check * tests/tset_d.c: added some mpfr_clear's * tests/tset_si.c: changed defs of random/srandom to work on Alpha * tests/tadd.c: mpfr_init2 -> mpfr_set_prec in check64 * mpfr-impl.h: added function dbl * mpfr.h: added prototypes for mpfr_cmp3 and mpfr_set4 * neg.c: use mpfr_set4 now (no modification of const parameters any more) * round.c: return 0 in mpfr_can_round_raw * set.c: introduced auxiliary function mpfr_set4 * set_si.c: fixed possible bug (testing sign of unsigned long) in mpfr_mul_ui * div3.c: replaced PREC(r) by prec (which was defined but not used) * tests/tdiv_ui.c: moved drand and ulp to mpfr-impl * tests/tlog.c: moved ulp to mpfr-impl.h and used input routine 'dbl' in some tests * tests/texp.c: modified one test to avoid rounding from double input routines * cmp.c: introduced auxiliary function mpfr_cmp3(x,y,sign) to compare x and sign*y * tests/tdiv.c: moved drand and ulp to mpfr-impl.h * sub.c: mpfr_sub now calls directly mpfr_add1/mpfr_sub1 (no modification of const parameters any more) * tests/tcmp.c: moved drand to mpfr-implh.h * add.c: use mpfr_cmp3 instead of mpfr_cmp (avoids warning due to modification of const parameters) * tests/tget_str.c: moved drand to mpfr-impl.h and removed warnings * zeta.c: use the result of mpfr_can_round * tests/tadd.c: moved drand and ulp to mpfr-impl.h * tests/tset_d.c: moved drand to mpfr-impl.h * tests/tmul.c: moved drand to mpfr-impl and removed warnings * mpfr-impl.h: added include of math.h * tests/tsqrt.c: moved drand and ulp to mpfr-impl.h * mpfr-impl.h: include file for mpfr developers only * tests/tcmp2.c: long -> int in drand * tests/tadd.c: adapted drand to sizeof(long)=64 * Configure: config.in -> ./config.in (otherwise don't work under IRIX) * tests/tdiv_ui.c: removed warnings * div_ui.c: patch for GMP bug when UDIV_NEEDS_NORMALIZATION=1 1999-07-02 Guillaume Hanrot * div3.c: Correction of a typo. 1999-07-02 Paul Zimmermann * div_ui.c: fixed horrible hack yp[-1] 1999-07-02 Guillaume Hanrot * Configure: Support of IRIX64 (n32/64 modes) plus cosmetic modifications. 1999-07-02 Paul Zimmermann * tests/tlog.c: added one test, and adapted to ANSI C 1999-07-02 Guillaume Hanrot * Configure: Yet Another Backslash Forgotten... * div3.c: Bug le plus stupide de tous les temps corrige. Ca marchait sous Solaris... 1999-07-02 Paul Zimmermann * tests/tagm.c: added one test and removed warnings 1999-07-02 Guillaume Hanrot * mpfr.h: Added mpfr_div3. * Configure: Added div3.c 1999-07-02 Paul Zimmermann * add.c: fixed bug when sizeof(long) <> sizeof(mp_limb_t) and removed DEBUG2 stuff * tests/tadd.c: added one test, and removed warnings 1999-07-02 Guillaume Hanrot * div3.c: Added div3.c, initial release. * Configure: Patch of the patch :) * Configure: Pattern matching rules in tests Makefile for non-GNU make (eg Solaris) 1999-07-02 Paul Zimmermann * tests/tdiv.c: adapted to enable denormalized numbers on IRIX64, added one test and removed warnings * round.c, mpfr.h: changed type of 3rd arg. 'neg' of mpfr_can_round_raw from char to int (pb with signed char's on some machines, e.g. IRIX64) * tests/tsqrt.c: adapted to IRIX64 (enable denorm. numbers) and removed warnings * tests/tcmp2.c: adapted to IRIX64 (enable denormalized numbers) and removed warnings * tests/tadd.c: adapted to IRIX64 (no denormalized by default) and removed warnings * set_si.c: unsigned long -> mp_limb_t 1999-07-02 boldo * tests/tlog.c: unused variables * log.c: unused variable 1999-07-02 Paul Zimmermann * set_d.c: added ifdef to avoid warning "unused variable" on 64-bit machine * rnd_mode.c: added def. of swapRM to avoid warning on IRIX64 * print_raw.c, round.c: 1UL -> ((mp_limb_t) 1) * round.c: changed type of mask to mp_limb_t in mpfr_round_raw2 * tests/tset_d.c: adapted for denormalized on IRIX64 now test NaNs too 1999-07-01 Guillaume Hanrot * cmp.c: Due to the representation of 0 it might have happened that 0 != 0. * sqrt.c: Patch mpfr_set -> MPN_COPY * div.c: Patch when prec < 32. 1999-07-01 Paul Zimmermann * set_d.c: fixed bugs for 64-bit machines * round.c: added casts to mp_limb_t * mul_ui.c: added cast to mp_limb_t for shifts 1999-07-01 boldo * tests/tlog.c: prints nothing is everything is allright * agm.c: memory gestion * log.c: one single bug * tests/tlog.c: more bad cases 1999-07-01 Paul Zimmermann * tests/texp.c: added some certified tests * tests/tmul_ui.c: added one test to check that 1*y = y 1999-07-01 Guillaume Hanrot * div.c: Patch of an MLK due to multiple initialization of the same variables without freeing them inbetween. * div.c: Same as in sqrt (allocation problem). 1999-07-01 Paul Zimmermann * mul_ui.c: fixed bug due to shift=0 in mpn_rshift 1999-07-01 Guillaume Hanrot * sqrt.c: (Temporary) patch for memory gestion in sqrt.c 1999-07-01 Paul Zimmermann * sqrt.c: mpfr_init -> mpfr_init2 * sqrt.c: initialize temporary variables with current precision 1999-06-30 Guillaume Hanrot * clear.c: Unbelievably stupid bug fixed. * round.c: Two patches : one for an UMR which actually had no effect, one for an FNH in old code.. 1999-06-30 boldo * tests/tlog.c: new bug * tests/tagm.c: there were some conflicts * tests/tlog.c: ther were some conflicts * log.c, agm.c: memory gestion 1999-06-29 Paul Zimmermann * tests/tzeta.c: replaced outputs by direct comparison when no argument * tests/tlog.c: modified to do only certified test when no argument * tests/tagm.c: modified to do only tests with precomputed values when no argument * get_str.c: does exact rounding only for n=0 1999-06-29 Jean-Luc Remy * Configure: added zeta/tzeta * mpfr.h: added prototypes for mpfr_exp and mpfr_zeta * zeta.c: computes Riemann function Zeta(s) first version: only works for s=2 with PREC(result)=53 and rnd_mode=nearest * tests/tzeta.c: test file for mpfr_zeta * mpfr.h: added prototype for mpfr_set_default_prec * zeta2.c: file renamed zeta.c * zeta2.c: first version: computes Zeta(2) with fixed precision 53 bits and round to nearest 1999-06-29 Guillaume Hanrot * round.c: Patch in the case when the number of bits is a multiple of the word size. * mul.c: Patch in the case when the low words of the product are zero. 1999-06-28 Paul Zimmermann * round.c: changed arguments of mpfr_round_raw (continued) * set.c, round.c, mul_ui.c, random.c, mul.c, mpfr.texi, mpfr.h: changed arguments of mpfr_round_raw (now uses precision instead of size) * tests/tpi.c: modified wrt warnings at compilation * mpfr.texi: modified description of mpfr_get_str for n_digits=0 * get_str.c: now performs an exact output when n_digits=0 1999-06-28 Guillaume Hanrot * set_si.c: Yet another corrected prototype. 1999-06-25 Guillaume Hanrot * mpfr.h, set_z.c, sqrt.c, sub.c, set_f.c, set_si.c, set_str_raw.c, round.c, set.c, set_d.c, random.c, rnd_mode.c, pow.c, print_raw.c, print_rnd_mode.c, neg.c, out_str.c, pi.c, mul.c, mul_2exp.c, mul_ui.c, get_str.c, log.c, log2.c, div_2exp.c, div_ui.c, exp.c, cmp_ui.c, div.c, add_ulp.c, agm.c, cmp.c, add.c: Prototypes et quelques causes de warnings corriges. * Configure: Modifs cosmetiques. * set_str.c: Fichier vide. 1999-06-25 Paul Zimmermann * tests/tlog2.c: do not print anything when no argument * get_str.c, out_str.c: use GMP allocate/free functions instead of malloc/free * tests/tcan_round.c: do not print anything on stdout * set_str_raw.c: put correctly sign with macro CHANGE_SIGN 1999-06-25 Guillaume Hanrot * Configure: Ajoute la dependance de libmpfr.a pour le Makefile des tests. 1999-06-25 Paul Zimmermann * set_d.c: correctly handle case sizer=1 in mpfr_set_d * round.c: corrected allocated size in mpfr_round * Configure: make clean does not remove config.in any more 1999-06-25 Guillaume Hanrot * tests/tagm.c: Correction d'un UMR en inversant le while (sans incidence tres probablement). 1999-06-25 Paul Zimmermann * tests/tadd.c: added four tests * set_d.c: adapted mpfr_set_d to case where allocated limbs > significant limbs * sub.c: fixed bug for b=2^n and c very small 1999-06-25 Guillaume Hanrot * add.c: Some limbs of the result where not set to zero as they should. 1999-06-25 Paul Zimmermann * tests/tset_si.c: added prototypes, and errors to stderr * tests/tset_i: binary file -> remove it * mul_ui.c: use PREC(x) instead of ABSSIZE(x) to get number of significant limbs adapted to different numbers of significant limbs for x and y * round.c: fixed pbs with ABSSIZE(x) wrt PREC(x) in mpfr_round * tests/tget_str.c: added pointer to exponent, removed test with sprintf * get_str.c: removed DEBUG stuff * set_si.c: use PREC(x) instead of ABSSIZE(x) to get the number of significant limbs * tests/tset_si.c: do 10^6 tests if no argument 1999-06-25 Guillaume Hanrot * Configure: J'avais oublie -g... * Configure: Ajoute des flags de paranoiaque schizophrene. 1999-06-25 Paul Zimmermann * tests/texp.c: now prints nothing with no argument * Configure: added texp and tdiv_ui * tests/tdiv_ui.c: test file for div_ui, initial revision * log.c: commented out "avant arrondi..." * agm.c: clear res1/res2 1999-06-25 Guillaume Hanrot * add.c: Patches an ABR. * sub.c: Patch of an ABR. * pow.c: Patch in the case n = 0. * out_str.c: Patch for a memory leak. 1999-06-25 Paul Zimmermann * tests/tsqrt.c: added two tests for exact roots * sqrt.c: removed DEBUG stuff and fixed pb with exact root and GMP_RNDZ 1999-06-25 Guillaume Hanrot * cmp.c: Correction d'un ABR. 1999-06-25 Paul Zimmermann * tests/tpi.c: added test for prec=53 bits, removed output for argc==1 1999-06-25 Guillaume Hanrot * tests/tcan_round.c: Initial revision. 1999-06-24 Guillaume Hanrot * sub.c, add.c: Patched an Array Bound Read. * round.c: Corrected an Array Bound Read when all the bits are significative. 1999-06-24 Paul Zimmermann * tests/tcmp_ui.c: i -> s in tests on mpfr_cmp_si * cmp_ui.c: fixed pb in mpfr_cmp_si_2exp (case b=0 or i=0) * cmp.c: & -> && * tests/tadd.c, tests/tcmp.c, tests/tset_str.c: removed 3rd arg. of mpfr_set_prec * add.c: treats case b=c in mpfr_sub(a,b,c) * set_prec.c: removed 3rd argument in mpfr_set_prec reallocates only when more limbs are needed * exp.c, log2.c: removed 3rd arg. of mpfr_set_prec * div.c: added some mpfr_clear's that were missing * div.c: removed 3rd argument from mpfr_set_prec * sqrt.c, get_str.c: removed 3rd argument of mpfr_set_prec * mpfr.h: changed prototype of mpfr_set_prec (no rounding mode needed any more) * tests/tset_str.c: added test for case of missing exponent and if one argument, print it as a double * set_str_raw.c: fixed bug when exponent was missing (wrong result when part before binary point is not zero) * tests/tlog.c: added tests from JM Muller and V Lefevre 1999-06-23 Paul Zimmermann * round.c: corrected bad case in mpfr_can_round_raw where rnd1=GMP_RNDN and err is a multiple of BITS_PER_MP_LIMB (was modifying an extra limb perhaps not allocated) 1999-06-23 boldo * log.c: qq bugs d'arrondis 1999-06-23 Paul Zimmermann * Configure: added exp and div_ui * tests/texp.c: added test of exp(Pi*sqrt(163)/3)-640320 [texp 0.0 prec] * tests/texp.c: test file for mpfr_exp, initial revision * tests/tmul.c: added two tests * tests/tset_str.c: removed printf's and added one test for leading '+' * set_str_raw.c: now allows leading '+' 1999-06-23 boldo * tests/tagm.c: nettoye 1999-06-23 Paul Zimmermann * tests/tset_f.c: removed printf * tests/tmul_ui.c: removed printf's * tests/tlog.c: added tests for large precision (tlog x prec rnd) * tests/tdiv.c: added test for exact division * tests/tcmp2.c: mpfr_cmp -> mpfr_cmp2 * tests/tagm.c: removed printf, added exit on error * tests/tadd.c: removed printf's * exp.c: initial revision * mul.c: cleaned local variables * mpfr.h: changed prototype of mpfr_div (now returns int) * div.c: now deals correctly with exact division removed DEBUG stuff returns 0/1 according to exact division 1999-06-22 Paul Zimmermann * mul.c: fixed bug found by F. Rouillier: x * Z(2/x) -> 0 [carry from mpfr_round_raw] 1999-06-22 Guillaume Hanrot * set_prec.c: Fill with 0 the part added in case of a larger reallocation. * tests/tmul.c: Rajoute le bug report de Fabrice. 1999-06-22 Paul Zimmermann * round.c: fixed bug in mpfr_can_round when prec or err are multiples of BITS_PER_MP_LIMB * tests/tmul.c: added test to check sign of result * mul.c: fixed bug: wrong sign when SIGN(a)<0 at beginning 1999-06-22 boldo * tests/tlog.c: avec plein de cas d'erreurs * log.c: marche bien * agm.c: Marche bien 1999-06-21 Guillaume Hanrot * mpfr.h: Corrected prototype of mpfr_can_round_raw. * round.c: Various patches. * mpfr.h: Added prototype for mpfr_can_round_raw * round.c: Added mpfr_can_round_raw ; mpfr_can_round just calls it. * mpfr.h: Declaration mpfr_print_rnd_mode.c * print_rnd_mode.c: print_rnd_mode.c -> mpfr_print_rnd_mode.c * print_rnd_mode.c: Print the rounding mode. * set_prec.c: Changement de semantique (plus d'arrondi) et alloc + free -> realloc. 1999-06-21 Paul Zimmermann * div_ui.c: initial revision * tests/tmul_ui.c: added one test * set.c: now deal with carry from mpfr_round_raw * mul_ui.c: fixed problem with count_leading_zeros undefined for 0 * log2.c: store computed value and try to reuse it for next calls * cmp.c: added test cn>= in mpfr_cmp2 * add_ulp.c: added mpfr_sub_one_ulp 1999-06-18 boldo * tests/tagm.c: tests par rapport aux doubles * tests/tlog.c: pour decouvrir les erreurs * log.c, agm.c: version qui marche 1999-06-18 Paul Zimmermann * mul.c: special cases NaN and 0 * mpfr.texi: fixed a few errors 1999-06-17 Paul Zimmermann * div.c: added tests for n=0 and d=0 * tests/tdiv.c: added test for 0.0/1.0 * div.c: SET_NAN(q) -> SET_NAN(Q) * tests/tsqrt.c: added one exact root with rounding towards zero * tests/tout_str.c: added one test * tests/tdiv.c: added two tests * sqrt.c: patch to detect exact roots (otherwise problem with rounding to zero) * mpfr.h: changed way zero is represented : most sign. limb is zero * set_si.c: added special case for zero * print_raw.c: special case for zero * out_str.c: special cases for NaN and zero * add.c: special case when one of the arguments is zero * tests/tsqrt.c: added bug found by S. Boldo and fixed (pb in mpfr_round_raw2) * round.c: fixed bug in mpfr_round_raw2 which was returning other values than 0 or 1 1999-06-17 Guillaume Hanrot * add.c: Corrected a potential problem in add(a, a, a); * sub.c: Corrected a potential problem in sub(a, a, a); 1999-06-17 Paul Zimmermann * sqrt.c: SET_NAN(x) -> SET_NAN(X) 1999-06-17 Guillaume Hanrot * cmp.c: Patch in cmp2 for some dirty cases (2^a + 2^b <-> 2^a + z, z << 2^a, b << a) 1999-06-17 Paul Zimmermann * tests/tadd.c: added test to check bug found by JL Remy * sub.c: added TMP_DECL/TMP_MARK/TMP_FREE in mpfr_sub1 to deal with case where destination=source 1999-06-16 Guillaume Hanrot * set_d.c: Bug dans set_d(0) ; la mantisse n'est pas initialisee a 0 correctement. * add.c, mul.c: Gere differemment les problemes d'egalite entre destinations et arguments. * Configure: Rajoute log.o et tlog * tests/mon_fichier: Vire fichier inutile. 1999-06-16 Paul Zimmermann * tests/tadd.c: added new tests * sub.c: fixed bug for overlap=k*mp_bits_per_limb, k>=1 1999-06-16 Guillaume Hanrot * tests/Makefile: Vire Makefile de CVS. * Makefile.msb, Makefile.exp, Makefile: Vire les Makefile de CVS. 1999-06-16 Paul Zimmermann * tests/tsqrt.c: added one test and random init. * tests/tdiv.c: added one test * tests/tadd.c: added tests for cases where destination = source * sub.c: cases NaN and destination=source * sqrt.c: now iterates if one cannot round after 1st try, and deals with case destination = source * round.c: mpfr_can_round again and again * print_raw.c: added case of NaN * mpfr.h: added macro SET_ZERO * div.c, add.c: now allows destination = source 1999-06-16 Guillaume Hanrot * tests/tsqrt, tests/tset_str, tests/tset_f, tests/tround, tests/tset_d, tests/tmul_ui, tests/tmul, tests/tmul_2exp, tests/tget_str: Vire les tests de cvs. 1999-06-15 Paul Zimmermann * div.c, add.c: printf -> fprintf * add.c, div.c: error message when destination equals source (case not yet treated) * get_str.c: now uses the given rounding mode internally instead of always GMP_RNDZ * pi.c: now rounding to nearest should be correct 1999-06-15 Guillaume Hanrot * round.c: Encore et toujours mpfr_can_round... * tests/tdiv, tests/tcmp_ui, tests/tcmp2, tests/tcmp, tests/tagm, tests/tadd, o.solaris/.pure: Nettoyage. * round.c: Patch pour mpfr_can_round. 1999-06-15 boldo * agm.c: sans instructions de debuggage * Makefile: rajout de log.o et tlog * tests/Makefile: rajout de tlog * mpfr.h: ajout du log * tests/tlog.c: *** empty log message *** * log.c: premiere version du log 1999-06-15 Paul Zimmermann * div.c: now recognizes division by exact power of 2 * cmp_ui.c: added mpfr_cmp_[us]i_2exp * mpfr.h: added mpfr_[us]i_2exp * mpfr.texi: added mpfr_cmp_[us]i_2exp 1999-06-15 Guillaume Hanrot * random.c: Correction de bug (pas msb normalise). 1999-06-15 Paul Zimmermann * pi.c: fixed mistake in error analysis (does not change code) 1999-06-15 Guillaume Hanrot * Configure: Ajout de random.o dans les objets. * random.c: random.c : engendre un mpfr_t dans [0, 1[. GH, 15/06 TODO : un random qui engendre un mpfr_t avec exposant gaussien centre. 1999-06-15 Jean-Luc Remy * log2.c, pi.c: changed return value to void 1999-06-14 Guillaume Hanrot * round.c: Ajoute les modes d'arrondi RNDN et RNDD. * mul_ui.c, mpfr.h: Correction du prototype de mpfr_mul_ui 1999-06-14 boldo * mpfr.h: *** empty log message *** 1999-06-14 Paul Zimmermann * Configure: added several files * mpfr.h: added several prototypes * mpfr.texi: added set_z, add_one_ulp * set_d.c: added mpfr_get_d2 which only considers the mantissa * get_str.c: now uses mpfr_get_d2 (no side effect on arguments) * tests/tlog2.c: test file for mpfr_log2 * tests/tset_z.c: test file for mpfr_set_z * tests/tpi.c: test file for mpfr_pi * log2.c: computes log(2) * add_ulp.c: add one ulp * set_z.c: set a mpfr from an integer * pi.c: computes Pi to n bits 1999-06-14 boldo * agm.c: *** empty log message *** 1999-06-11 Paul Zimmermann * mpfr.texi: Initial revision of mpfr documentation 1999-06-10 Guillaume Hanrot * tests/tsqrt.c: Patch d'un mpfr_set_d dans tsqrt.c ; GH, 100699 * tests/tget_str.c: Patch d'un mpfr_set_d dans get_str.c ; GH, 100699 * Configure: Tentative de configuration automatique, v. initiale. GH, 100699 1999-06-10 boldo * tests/tagm.c, agm.c: *** empty log message *** 1999-06-10 Paul Zimmermann * Makefile: added tout_str * tests/tout_str.c: Initial revision. * Makefile: added out_str.c and pow.c * mpfr.h: added proto for mpfr_pow_ui and mpfr_ui_pow_ui * pow.c: Initial revision. * clear.c, mul.c, round.c, neg.c, set_f.c, set_si.c, mul_ui.c, mul_2exp.c, div_2exp.c, set.c: added include (needed for FILE in mpfr.h) * mpfr.h: added proto for mpfr_out_str * out_str.c: function to print a mpfr to a stream. Initial revision. * mpfr.h: changed proto of mpfr_get_str: 2nd arg is mp_exp_t*, not char* * get_str.c: now conforms to the specification 1999-06-09 Guillaume Hanrot * tests/Makefile: tset_i -> tset_si dans le Makefile de tests. * mmpfr: Version corrigee de mmpfr. * Makefile: Makefile qui devrait fonctionner pour tous. * tests/tmul_2exp.c: Correction de warnings dans tmul_2exp.c * o.solaris/.pure, tests/tmul, tests/tset_si.c: New file. * o.solaris/.pure, tests/tmul, tests/tset_si.c: Sources importees au 080699 * tests/mon_fichier, tests/tget_str, tests/tget_str.c: New file. * tests/mon_fichier, tests/tget_str, tests/tget_str.c: Sources importees au 080699 * tests/tagm, tests/tagm.c, tests/tsqrt, tests/tsqrt.c: New file. * tests/tagm, tests/tagm.c, tests/tsqrt, tests/tsqrt.c: Sources importees au 080699 * tests/tadd, tests/tcmp.c, tests/tcmp2.c, tests/tdiv.c, tests/tmul_2exp, tests/tmul_2exp.c, tests/tmul_ui, tests/tmul_ui.c, tests/tset_d, tests/tset_i, tests/tset_str, tests/tset_str.c: New file. * tests/tadd, tests/tcmp.c, tests/tcmp2.c, tests/tdiv.c, tests/tmul_2exp, tests/tmul_2exp.c, tests/tmul_ui, tests/tmul_ui.c, tests/tset_d, tests/tset_i, tests/tset_str, tests/tset_str.c: Sources importees au 080699 * tests/tcmp2, tests/tcmp_ui, tests/tcmp_ui.c, tests/tdiv, tests/tset_d.c: New file. * tests/tcmp2, tests/tcmp_ui, tests/tcmp_ui.c, tests/tdiv, tests/tset_d.c: Sources importees au 080699 * cmp_ui.c, div_2exp.c, init_set.h, mul_2exp.c, mul_ui.c, set.c, set_dfl_rnd.c, set_si.c, sub.c, tests/Makefile, tests/tadd.c, tests/tcmp, tests/tmul.c, tests/tround, tests/tround.c, tests/tset_f, tests/tset_f.c: New file. * cmp_ui.c, div_2exp.c, init_set.h, mul_2exp.c, mul_ui.c, set.c, set_dfl_rnd.c, set_si.c, sub.c, tests/Makefile, tests/tadd.c, tests/tcmp, tests/tmul.c, tests/tround, tests/tround.c, tests/tset_f, tests/tset_f.c: Sources importees au 080699 * .pure, BUGS, Makefile.exp, Makefile.msb, TODO, add.c, agm.c, clear.c, cmp.c, div.c, from_Torbjorn, get_str.c, init.c, mmpfr, mpfr.h, mul.c, neg.c, print_raw.c, rnd_mode.c, round.c, set_d.c, set_dfl_prec.c, set_f.c, set_prec.c, set_str.c, set_str_raw.c, sqrt.c: New file. * .pure, BUGS, Makefile.exp, Makefile.msb, TODO, add.c, agm.c, clear.c, cmp.c, div.c, from_Torbjorn, get_str.c, init.c, mmpfr, mpfr.h, mul.c, neg.c, print_raw.c, rnd_mode.c, round.c, set_d.c, set_dfl_prec.c, set_f.c, set_prec.c, set_str.c, set_str_raw.c, sqrt.c: Sources importees au 080699