Blame NEWS

Packit 15dc08
Copyright 1996, 1999-2016 Free Software Foundation, Inc.
Packit 15dc08
Packit 15dc08
Verbatim copying and distribution of this entire article is permitted in any
Packit 15dc08
medium, provided this notice is preserved.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 6.1.1 and 6.1.2
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * Mini-GMP: Fixed a division bug, which on a machine with 64-bit
Packit 15dc08
    unsigned long affects approximately 1 out of 2^32 divisors.
Packit 15dc08
Packit 15dc08
  * Mini-GMP: Fix mpz_set_str crash on inputs with a large number of
Packit 15dc08
    leading zeros. Also stricter input validation, rejecting inputs
Packit 15dc08
    with no digits.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Handle more systems which require PIC code in static libraries (e.g.,
Packit 15dc08
    "hardened" Gentoo and Debian 9).
Packit 15dc08
Packit 15dc08
  * Configuration for arm (-32 and -64) has been rewritten, fixing poor
Packit 15dc08
    code selection for many CPUs.
Packit 15dc08
Packit 15dc08
  * Mini-GMP: Updated to the latest development version, including
Packit 15dc08
    new functions mpn_com and mpn_neg.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None, except for arm CPUs affected by the configuration rewrite.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  -
Packit 15dc08
Packit 15dc08
Changes between GMP version 6.1.0 and 6.1.1
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * Make Intel Broadwell configurations work on Windows.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Work around faulty cpuid on some recent Intel chips (this allows GMP to run
Packit 15dc08
    on Skylake Pentiums).
Packit 15dc08
Packit 15dc08
  * Support thumb-less ARM chips.
Packit 15dc08
Packit 15dc08
Changes between GMP version 6.0.* and 6.1.0
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * The public function mpn_com is now correctly declared in gmp.h.
Packit 15dc08
Packit 15dc08
  * Healed possible failures of mpn_sec_sqr for non-cryptographic sizes for
Packit 15dc08
    some obsolete CPUs.
Packit 15dc08
Packit 15dc08
  * The option --disable-assembly now disables all inlined asm.
Packit 15dc08
Packit 15dc08
  * Fixed bug affecting mini-gmp's bitwise functions mpz_setbit, mpz_clrbit,
Packit 15dc08
    and mpz_combit.
Packit 15dc08
Packit 15dc08
  * Various problems related to precision for mpf have been fixed.
Packit 15dc08
Packit 15dc08
  * Fixed ABI incompatible stack alignment in calls from assembly code.
Packit 15dc08
Packit 15dc08
  * Fixed PIC bug in popcount affecting Intel processors using the 32-bit ABI.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * Speedup for Intel Broadwell and Skylake through assembly code making use of
Packit 15dc08
    new ADX instructions.
Packit 15dc08
Packit 15dc08
  * Square root is now faster when the remainder is not needed. Also the speed
Packit 15dc08
    to compute the k-th root improved, for small sizes.
Packit 15dc08
Packit 15dc08
  * Improved arm64 support.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * New C++ functions gcd and lcm for mpz_class.
Packit 15dc08
Packit 15dc08
  * New public mpn functions mpn_divexact_1, mpn_zero_p, and mpn_cnd_swap.
Packit 15dc08
Packit 15dc08
  * New public mpq_cmp_z function, to efficiently compare rationals with
Packit 15dc08
    integers.
Packit 15dc08
Packit 15dc08
  * Support for Darwin in all x86 code, thereby enabling fat builds on Darwin.
Packit 15dc08
Packit 15dc08
  * Support for more 32-bit arm processors.
Packit 15dc08
Packit 15dc08
  * Support for compilation with clang/llvm on more platforms.  Caution: GMP
Packit 15dc08
    triggers mis-compilation bugs in clang for many platforms, such as arm, x86
Packit 15dc08
    (32-bit and 64-bit), powerpc, mips.
Packit 15dc08
Packit 15dc08
  * Support for AVX-less modern x86 CPUs. (Such support might be missing either
Packit 15dc08
    because the CPU vendor chose to disable AVX, or because the running kernel
Packit 15dc08
    lacks AVX context switch support.)
Packit 15dc08
Packit 15dc08
  * Stack usage trimmed; we believe 512 KiB is now sufficient for any GMP
Packit 15dc08
    call, irrespective of operand size.
Packit 15dc08
Packit 15dc08
  * Support for NetBSD under Xen; we switch off AVX unconditionally under
Packit 15dc08
    NetBSD since a bug in NetBSD makes AVX fail under Xen.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * We now use manufacturers' code names for x86 CPUs, e.g., "haswell" instead
Packit 15dc08
    of names derived from the commercial brands.
Packit 15dc08
Packit 15dc08
  * Small improvements and better coverage for the test suite.
Packit 15dc08
Packit 15dc08
  * The various FreeBSD problems listed for 6.0.0 affect this release too.
Packit 15dc08
Packit 15dc08
  * Tuned values for FFT multiplications are provided for larger number on
Packit 15dc08
    many platforms.
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.1.* and 6.0.0
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * The function mpz_invert now considers any number invertible in Z/1Z.
Packit 15dc08
Packit 15dc08
  * The mpn multiply code now handles operands of more than 2^31 limbs
Packit 15dc08
    correctly.  (Note however that the mpz code is limited to 2^32 bits on
Packit 15dc08
    32-bit hosts and 2^37 bits on 64-bit hosts.)
Packit 15dc08
Packit 15dc08
  * Contains all fixes from release 5.1.3.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * Plain division of large operands is faster and more monotonous in operand
Packit 15dc08
    size.
Packit 15dc08
Packit 15dc08
  * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved
Packit 15dc08
    assembly.
Packit 15dc08
Packit 15dc08
  * Major speedup for SPARC T4/T5 and speedup also for T3, thanks to a lot of
Packit 15dc08
    new assembly.
Packit 15dc08
Packit 15dc08
  * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten
Packit 15dc08
    and vastly expanded assembly support.  Speedup also for the older Core 2
Packit 15dc08
    and Nehalem.
Packit 15dc08
Packit 15dc08
  * Faster mixed arithmetic between mpq_class and double.
Packit 15dc08
Packit 15dc08
  * With g++, optimise more operations when one argument is a simple constant.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Support for new Intel and AMD CPUs.
Packit 15dc08
Packit 15dc08
  * Support for ARM64 alias Aarch64 alias ARMv8.
Packit 15dc08
Packit 15dc08
  * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel
Packit 15dc08
    silent multiplication and squaring.
Packit 15dc08
Packit 15dc08
  * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing
Packit 15dc08
    side-channel silent division.
Packit 15dc08
Packit 15dc08
  * New public functions mpn_cnd_add_n and mpn_cnd_sub_n.  Side-channel silent
Packit 15dc08
    conditional addition and subtraction.
Packit 15dc08
Packit 15dc08
  * New public function mpn_sec_powm, implementing side-channel silent modexp.
Packit 15dc08
Packit 15dc08
  * New public function mpn_sec_invert, implementing side-channel silent
Packit 15dc08
    modular inversion.
Packit 15dc08
Packit 15dc08
  * Better support for applications which use the mpz_t type, but nevertheless
Packit 15dc08
    need to call some of the lower-level mpn functions.  See the documentation
Packit 15dc08
    for mpz_limbs_read and related functions.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * This release will not work on NetBSD 5.x, FreeBSD 7.x, 8.x or 9 series
Packit 15dc08
    before 9.3.  The reason is that the m4 command is not correctly
Packit 15dc08
    implemented.  (Workaround: Use an older GMP release, or install GNU m4 from
Packit 15dc08
    /usr/ports and tell GMP to use it.)
Packit 15dc08
Packit 15dc08
  * This release will not build properly on FreeBSD/amd64 before version 10
Packit 15dc08
    using the 32-bit ABI (once a working m4 is installed).  The reason is
Packit 15dc08
    broken limits.h.  (Workaround: Use an older GMP release if using the 32-bit
Packit 15dc08
    ABI on these FreeBSD releases is important.)
Packit 15dc08
Packit 15dc08
  * This release will not work reliably on FreeBSD 10.0 for i386 or amd64 using
Packit 15dc08
    the 32-bit ABI.  The reason is bugs in the compiler 'clang'.  Depending on
Packit 15dc08
    CPU-dependent compiler flags, GMP may or may not be miscompiled in a
Packit 15dc08
    particular build.  (Workaround: Compiling gcc from /usr/ports should work,
Packit 15dc08
    except that gcc circularly depends on GMP; we have not been able to test
Packit 15dc08
    that workaround due to FreeBSD 10.0 bugs affecting its ability to run under
Packit 15dc08
    KVM and Xen.)
Packit 15dc08
Packit 15dc08
  * This release will not compile on FreeBSD before version 10 for i386,
Packit 15dc08
    targeting any modern AMD processor.  The reason is bugs in the old gcc
Packit 15dc08
    bundled with FreeBSD.  (Workaround: install a less obsolete gcc from
Packit 15dc08
    /usr/ports and tell GMP to use it, or override the -march=amdfam10
Packit 15dc08
    GMP configure command line argument.)
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.1.2 and 5.1.3
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * The internal functions mpn_sbpi1_div_qr_sec mpn_sbpi1_div_r_sec could
Packit 15dc08
    compute garbage with a low probability.  They are now rewritten, and the
Packit 15dc08
    test code has been improved.
Packit 15dc08
Packit 15dc08
  * A bug in the ia64 implementation of mpn_divrem_2, clobbering some
Packit 15dc08
    callee-save registers, has been fixed. This is an internal
Packit 15dc08
    function, with the bug manifesting itself as miscomputation in,
Packit 15dc08
    e.g., mpn_sqrtrem.
Packit 15dc08
Packit 15dc08
  * The documentation now correctly says 'const' for input arguments.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.1.1 and 5.1.2
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * A bug in mpz_powm_ui triggered by base arguments of at least 15000 decimal
Packit 15dc08
    digits or mod arguments of at least 7500 decimal digits has been fixed.
Packit 15dc08
Packit 15dc08
  * An AMD Bulldozer specific bug affecting the 64-bit Windows ABI has been
Packit 15dc08
    fixed.  This bug was in a key function (mpn_mul_1) and made both Bulldozer
Packit 15dc08
    specific builds and fat builds run on Bulldozer completely non-functional.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * Fixes and generalisations to the test suite.
Packit 15dc08
Packit 15dc08
  * Minor portability enhancements.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.1.0 and 5.1.1
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * On Windows 64-bit, an error causing link errors about
Packit 15dc08
    __gmp_binvert_limb_table has been fixed.
Packit 15dc08
Packit 15dc08
  * Aarch64 alias ARM64 support now works.
Packit 15dc08
Packit 15dc08
  * A possible buffer overrun in mpz_ior has been fixed.
Packit 15dc08
Packit 15dc08
  * A rare sign flip in mpz_remove has been fixed.
Packit 15dc08
Packit 15dc08
  * A bug causing problems with mpf numbers with absolute value >= 2^31 has
Packit 15dc08
    been fixed.
Packit 15dc08
Packit 15dc08
  * Several bugs in mini-gmp have been fixed.
Packit 15dc08
Packit 15dc08
  * A bug caused by automake, related to the 'distcheck' target, has been fixed
Packit 15dc08
    by upgrading the automake used for GMP release engineering.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Preliminary support for the x32 ABI under x86-64.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * The mini-gmp testsuite now tests the entire set of functions.
Packit 15dc08
Packit 15dc08
  * Various improvements of the GMP testsuite.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.* and 5.1.0
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * When reading a C++ number (like mpz_class) in an istream reaches the end
Packit 15dc08
    of the stream, the eofbit is now set.
Packit 15dc08
Packit 15dc08
  * The result sign of mpz_rootrem's remainder is now always correct.
Packit 15dc08
Packit 15dc08
  * The mpz_remove function now handles negative divisors.
Packit 15dc08
Packit 15dc08
  * Contains all fixes from release 5.0.5.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * The n-factorial and n-over-k functions have been reimplemented for great
Packit 15dc08
    speedups for small and large operands.
Packit 15dc08
Packit 15dc08
  * New subquadratic algorithm for the Kronecker/Jacobi/Legendre symbol.
Packit 15dc08
Packit 15dc08
  * Major speedup for ARM, in particular ARM Cortex-A9 and A15, thanks to broad
Packit 15dc08
    assembly support.
Packit 15dc08
Packit 15dc08
  * Significant speedup for POWER6 and POWER7 thanks to improved assembly.
Packit 15dc08
Packit 15dc08
  * The performance under M$ Windows' 64-bit ABI has been greatly improved
Packit 15dc08
    thanks to complete assembly support.
Packit 15dc08
Packit 15dc08
  * Minor speed improvements of many functions and for many platforms.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Many new CPUs recognised.
Packit 15dc08
Packit 15dc08
  * New functions for multi-factorials, and primorial: mpz_2fac_ui,
Packit 15dc08
    mpz_mfac_uiui and mpz_primorial_ui.
Packit 15dc08
Packit 15dc08
  * The mpz_powm_sec function now uses side-channel silent division for
Packit 15dc08
    converting into Montgomery residues.
Packit 15dc08
Packit 15dc08
  * The fat binary mechanism is now more robust in its CPU recognition.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * Inclusion of assembly code is now controlled by the configure options
Packit 15dc08
    --enable-assembly and --disable-assembly.  The "none" CPU target is gone.
Packit 15dc08
Packit 15dc08
  * In C++, the conversions mpq_class->mpz_class, mpf_class->mpz_class and
Packit 15dc08
    mpf_class->mpq_class are now explicit.
Packit 15dc08
Packit 15dc08
  * Includes "mini-gmp", a small, portable, but less efficient, implementation
Packit 15dc08
    of a subset of GMP's mpn and mpz interfaces. Used in GMP bootstrap, but it
Packit 15dc08
    can also be bundled with applications as a fallback when the real GMP
Packit 15dc08
    library is unavailable.
Packit 15dc08
Packit 15dc08
  * The ABIs under AIX are no longer called aix32 and aix64, but mode64 and 32.
Packit 15dc08
    This is more consistent with other powerpc systems.
Packit 15dc08
Packit 15dc08
  * The coverage of the testsuite has been improved, using the lcov tool.  See
Packit 15dc08
    also https://gmplib.org/devel/lcov/.
Packit 15dc08
Packit 15dc08
  * It is now possible to compile GMP using a C++ compiler.
Packit 15dc08
Packit 15dc08
  * K&R C compilers are no longer supported.
Packit 15dc08
Packit 15dc08
  * The BSD MP compatibility functions have been removed.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.4 and 5.0.5
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * A bug causing AMD 11h processors to be treated like AMD 10h has been fixed.
Packit 15dc08
    The 11h processors do not correctly handle all 10h (aka K10) instructions,
Packit 15dc08
    and GMP's use of these instructions results in major miscomputations (not
Packit 15dc08
    as one would have hoped CPU traps of some 'illegal instruction' sort).
Packit 15dc08
Packit 15dc08
  * A bug affecting recent Intel Sandy Bridge CPUs resulting in configuration
Packit 15dc08
    failures has been fixed.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * A couple of tests added to the self-check suite.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.3 and 5.0.4
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * Thresholds in mpn_powm_sec for both fat and non-fat builds are now used
Packit 15dc08
    safely, plugging a one-word buffer overrun introduced in the 5.0.3 release
Packit 15dc08
    (for non-fat) and a multi-word buffer overrun that existed since 5.0 (for
Packit 15dc08
    fat).  (We have not been able to provoke malign stack smashing in any of
Packit 15dc08
    the ~100 configurations explored by the GMP nightly builds, but the bug
Packit 15dc08
    should be assumed to be exploitable.)
Packit 15dc08
Packit 15dc08
  * Two bugs in multiplication code causing incorrect computation with
Packit 15dc08
    extremely low probability have been fixed.
Packit 15dc08
Packit 15dc08
  * A bug in the test suite causing buffer overruns during "make check",
Packit 15dc08
    sometimes leading to subsequent malloc crashes, has been fixed.
Packit 15dc08
Packit 15dc08
  * Two bugs in the gcd code have been fixed.  They could lead to incorrect
Packit 15dc08
    results, but for uniformly distributed random operands, the likelihood for
Packit 15dc08
    that is infinitesimally small.  (There was also a third bug, but that was
Packit 15dc08
    an incorrect ASSERT, which furthermore was not enabled by default.)
Packit 15dc08
Packit 15dc08
  * A bug affecting 32-bit PowerPC division has been fixed.  The bug caused
Packit 15dc08
    miscomputation for certain divisors in the range 2^32 ... 2^64-1 (about 1
Packit 15dc08
    in 2^30 of these).
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None, except indirectly through recognition of new CPUs, and through better
Packit 15dc08
    tuning parameters.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Some more tests added to the self-check suite.
Packit 15dc08
Packit 15dc08
  * The AMD "Bulldozer" CPU is now recognised.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.2 and 5.0.3
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * A few minor bugs related to portability fixed.
Packit 15dc08
Packit 15dc08
  * A slight timing leak of the powm_sec functions have been sealed.  (This
Packit 15dc08
    leak could possibly be used to extract the most significant few bits of the
Packit 15dc08
    exponent.  "Few" here means at most 10.)
Packit 15dc08
Packit 15dc08
  * The mpz_nextprime function now runs a safer number of pseudo-random prime
Packit 15dc08
    tests.
Packit 15dc08
Packit 15dc08
  * A bug in division code possibly causing incorrect computation was fixed.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None, except indirectly through recognition of new CPUs, and through better
Packit 15dc08
    tuning parameters.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * New CPUs recognised.
Packit 15dc08
Packit 15dc08
  * IBM S/390 are now supported in both 31/32-bit and 64-bit mode.  (We have
Packit 15dc08
    not been able to fully test this on any multilib machine, since IBM expired
Packit 15dc08
    our guest account a few days before our release.)
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.1 and 5.0.2
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * Many minor bugs related to portability fixed.
Packit 15dc08
Packit 15dc08
  * The support for HPPA 2.0N now works, after an assembly bug fix.
Packit 15dc08
Packit 15dc08
  * A test case type error has been fixed.  The symptom of this bug was
Packit 15dc08
    spurious 'make check' failures.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * None, except indirectly through recognition of new CPUs.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * Fat builds are now supported for 64-bit x86 processors also under Darwin.
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 5.0.0 and 5.0.1
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * Fat builds fixed.
Packit 15dc08
Packit 15dc08
  * Fixed crash for huge multiplies when old FFT_TABLE2 type of parameter
Packit 15dc08
    selection tables' sentinel was smaller than multiplied operands.
Packit 15dc08
Packit 15dc08
  * The solib numbers now reflect the removal of the documented but preliminary
Packit 15dc08
    mpn_bdivmod function; we correctly flag incompatibility with GMP 4.3.  GMP
Packit 15dc08
    5.0.0 has this wrong, and should perhaps be uninstalled to avoid confusion.
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * Multiplication of large numbers has indirectly been sped up through better
Packit 15dc08
    FFT tuning and processor recognition.  Since many operations depend on
Packit 15dc08
    multiplication, there will be a general speedup.
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * More Core i3, i5 an Core i7 processor models are recognised.
Packit 15dc08
Packit 15dc08
  * Fixes and workarounds for Mac OS quirks should make this GMP version build
Packit 15dc08
    using many of the different versions of "Xcode".
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * The amount of scratch memory needed for multiplication of huge numbers has
Packit 15dc08
    been reduced substantially (but is still larger than in GMP 4.3.)
Packit 15dc08
Packit 15dc08
  * Likewise, the amount of scratch memory needed for division of large numbers
Packit 15dc08
    has been reduced substantially.
Packit 15dc08
Packit 15dc08
  * The FFT tuning code of tune/tuneup.c has been completely rewritten, and
Packit 15dc08
    new, large FFT parameter selection tables are provided for many machines.
Packit 15dc08
Packit 15dc08
  * Upgraded to the latest autoconf, automake, libtool.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.3.X and 5.0.0
Packit 15dc08
Packit 15dc08
  BUGS FIXED
Packit 15dc08
  * None (contains the same fixes as release 4.3.2).
Packit 15dc08
Packit 15dc08
  SPEEDUPS
Packit 15dc08
  * Multiplication has been overhauled:
Packit 15dc08
    (1) Multiplication of larger same size operands has been improved with
Packit 15dc08
        the addition of two new Toom functions and a new internal function
Packit 15dc08
        mpn_mulmod_bnm1 (computing U * V mod (B^n-1), B being the word base.
Packit 15dc08
        This latter function is used for the largest products, waiting for a
Packit 15dc08
        better Schoenhage-Strassen U * V mod (B^n+1) implementation.
Packit 15dc08
    (2) Likewise for squaring.
Packit 15dc08
    (3) Multiplication of different size operands has been improved with the
Packit 15dc08
        addition of many new Toom function, and by selecting underlying
Packit 15dc08
        functions better from the main multiply functions.
Packit 15dc08
Packit 15dc08
  * Division and mod have been overhauled:
Packit 15dc08
    (1) Plain "schoolbook" division is reimplemented using faster quotient
Packit 15dc08
        approximation.
Packit 15dc08
    (2) Division Q = N/D, R = N mod D where both the quotient and remainder
Packit 15dc08
        are needed now runs in time O(M(log(N))).  This is an improvement of
Packit 15dc08
        a factor log(log(N))
Packit 15dc08
    (3) Division where just the quotient is needed is now O(M(log(Q))) on
Packit 15dc08
        average.
Packit 15dc08
    (4) Modulo operations using Montgomery REDC form now take time O(M(n)).
Packit 15dc08
    (5) Exact division Q = N/D by means of mpz_divexact has been improved
Packit 15dc08
        for all sizes, and now runs in time O(M(log(N))).
Packit 15dc08
Packit 15dc08
  * The function mpz_powm is now faster for all sizes.  Its complexity has
Packit 15dc08
    gone from O(M(n)log(n)m) to O(M(n)m) where n is the size of the modulo
Packit 15dc08
    argument and m is the size of the exponent.  It is also radically
Packit 15dc08
    faster for even modulus, since it now partially factors such modulus
Packit 15dc08
    and performs two smaller modexp operations, then uses CRT.
Packit 15dc08
Packit 15dc08
  * The internal support for multiplication yielding just the lower n limbs
Packit 15dc08
    has been improved by using Mulders' algorithm.
Packit 15dc08
Packit 15dc08
  * Computation of inverses, both plain 1/N and 1/N mod B^n have been
Packit 15dc08
    improved by using well-tuned Newton iterations, and wrap-around
Packit 15dc08
    multiplication using mpn_mulmod_bnm1.
Packit 15dc08
Packit 15dc08
  * A new algorithm makes mpz_perfect_power_p asymptotically faster.
Packit 15dc08
Packit 15dc08
  * The function mpz_remove uses a much faster algorithm, is better tuned,
Packit 15dc08
    and also benefits from the division improvements.
Packit 15dc08
Packit 15dc08
  * Intel Atom and VIA Nano specific optimisations.
Packit 15dc08
Packit 15dc08
  * Plus hundreds of smaller improvements and tweaks!
Packit 15dc08
Packit 15dc08
  FEATURES
Packit 15dc08
  * New mpz function: mpz_powm_sec for side-channel quiet modexp
Packit 15dc08
    computations.
Packit 15dc08
Packit 15dc08
  * New mpn functions: mpn_sqr, mpn_and_n, mpn_ior_n, mpn_xor_n, mpn_nand_n,
Packit 15dc08
    mpn_nior_n, mpn_xnor_n, mpn_andn_n, mpn_iorn_n, mpn_com, mpn_neg,
Packit 15dc08
    mpn_copyi, mpn_copyd, mpn_zero.
Packit 15dc08
Packit 15dc08
  * The function mpn_tdiv_qr now allows certain argument overlap.
Packit 15dc08
Packit 15dc08
  * Support for fat binaries for 64-bit x86 processors has been added.
Packit 15dc08
Packit 15dc08
  * A new type, mp_bitcnt_t for bignum bit counts, has been introduced.
Packit 15dc08
Packit 15dc08
  * Support for Windows64 through mingw64 has been added.
Packit 15dc08
Packit 15dc08
  * The cofactors of mpz_gcdext and mpn_gcdext are now more strictly
Packit 15dc08
    normalised, returning to how GMP 4.2 worked.  (Note that also release
Packit 15dc08
    4.3.2 has this change.)
Packit 15dc08
Packit 15dc08
  MISC
Packit 15dc08
  * The mpn_mul function should no longer be used for squaring,
Packit 15dc08
    instead use the new mpn_sqr.
Packit 15dc08
Packit 15dc08
  * The algorithm selection has been improved, the number of thresholds have
Packit 15dc08
    more than doubled, and the tuning and use of existing thresholds have
Packit 15dc08
    been improved.
Packit 15dc08
Packit 15dc08
  * The tune/speed program can measure many of new functions.
Packit 15dc08
Packit 15dc08
  * The mpn_bdivmod function has been removed.  We do not consider this an
Packit 15dc08
    incompatible change, since the function was marked as preliminary.
Packit 15dc08
Packit 15dc08
  * The testsuite has been enhanced in various ways.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.3.1 and 4.3.2
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Fixed bug in mpf_eq.
Packit 15dc08
  * Fixed overflow issues in mpz_set_str, mpz_inp_str, mpf_set_str, and
Packit 15dc08
    mpf_get_str.
Packit 15dc08
  * Avoid unbounded stack allocation for unbalanced multiplication.
Packit 15dc08
  * Fixed bug in FFT multiplication.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * None, except that proper processor recognition helps affected processors.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Recognise more "Core 2" processor variants.
Packit 15dc08
  * The cofactors of mpz_gcdext and mpn_gcdext are now more strictly
Packit 15dc08
    normalised, returning to how GMP 4.2 worked.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.3.0 and 4.3.1
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Fixed bug in mpn_gcdext, affecting also mpz_gcdext and mpz_invert.
Packit 15dc08
    The bug could cause a cofactor to have a leading zero limb, which
Packit 15dc08
    could lead to crashes or miscomputation later on.
Packit 15dc08
  * Fixed some minor documentation issues.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * None.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Workarounds for various issues with Mac OS X's build tools.
Packit 15dc08
  * Recognise more IBM "POWER" processor variants.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.2.X and 4.3.0
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Fixed bug in mpz_perfect_power_p with recognition of negative perfect
Packit 15dc08
    powers that can be written both as an even and odd power.
Packit 15dc08
  * We might accidentally have added bugs since there is a large amount of
Packit 15dc08
    new code in this release.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * Vastly improved assembly code for x86-64 processors from AMD and Intel.
Packit 15dc08
  * Major improvements also for many other processor families, such as
Packit 15dc08
    Alpha, PowerPC, and Itanium.
Packit 15dc08
  * New sub-quadratic mpn_gcd and mpn_gcdext, as well as improved basecase
Packit 15dc08
    gcd code.
Packit 15dc08
  * The multiply FFT code has been slightly improved.
Packit 15dc08
  * Balanced multiplication now uses 4-way Toom in addition to schoolbook,
Packit 15dc08
    Karatsuba, 3-way Toom, and FFT.
Packit 15dc08
  * Unbalanced multiplication has been vastly improved.
Packit 15dc08
  * Improved schoolbook division by means of faster quotient approximation.
Packit 15dc08
  * Several new algorithms for division and mod by single limbs, giving
Packit 15dc08
    many-fold speedups.
Packit 15dc08
  * Improved nth root computations.
Packit 15dc08
  * The mpz_nextprime function uses sieving and is much faster.
Packit 15dc08
  * Countless minor tweaks.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Updated support for fat binaries for x86_32 include current processors
Packit 15dc08
  * Lots of new mpn internal interfaces.  Some of them will become public
Packit 15dc08
    in a future GMP release.
Packit 15dc08
  * Support for the 32-bit ABI under x86-apple-darwin.
Packit 15dc08
  * x86 CPU recognition code should now default better for future
Packit 15dc08
    processors.
Packit 15dc08
  * The experimental nails feature does not work in this release, but
Packit 15dc08
    it might be re-enabled in the future.
Packit 15dc08
Packit 15dc08
  Misc:
Packit 15dc08
  * The gmp_version variable now always contains three parts.  For this
Packit 15dc08
    release, it is "4.3.0".
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.2.3 and 4.2.4
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Fix bug with parsing exponent '+' sign in mpf.
Packit 15dc08
  * Fix an allocation bug in mpf_set_str, also affecting mpf_init_set_str, and
Packit 15dc08
    mpf_inp_str.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * None, except that proper processor recognition helps affected processors.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Recognize new AMD processors.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.2.2 and 4.2.3
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Fix x86 CPU recognition code to properly identify recent AMD and Intel
Packit 15dc08
    64-bit processors.
Packit 15dc08
  * The >> operator of the C++ wrapper gmpxx.h now does floor rounding, not
Packit 15dc08
    truncation.
Packit 15dc08
  * Inline semantics now follow the C99 standard, and works with recent GCC
Packit 15dc08
    releases.
Packit 15dc08
  * C++ bitwise logical operations work for more types.
Packit 15dc08
  * For C++, gmp.h now includes cstdio, improving compiler compatibility.
Packit 15dc08
  * Bases > 36 now work properly in mpf_set_str.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * None, except that proper processor recognition helps affected processors.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * The allocation functions now detect overflow of the mpz_t type.  This means
Packit 15dc08
    that overflow will now cause an abort, except when the allocation
Packit 15dc08
    computation itself overflows.  (Such overflow can probably only happen in
Packit 15dc08
    powering functions; we will detect powering overflow in the future.)
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.2.1 and 4.2.2
Packit 15dc08
Packit 15dc08
  * License is now LGPL version 3.
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Shared library numbers corrected for libcxx.
Packit 15dc08
  * Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage.
Packit 15dc08
    Note that this only affects C++ programs.
Packit 15dc08
  * Fix crash in mpz_set_d for arguments with large negative exponent.
Packit 15dc08
  * Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist.
Packit 15dc08
  * Fix assembly syntax problem for powerpc-ibm-aix with AIX native assembler.
Packit 15dc08
  * Fix problems with x86 --enable-fat, where the compiler where told to
Packit 15dc08
    generate code for the build machine, not plain i386 code as it should.
Packit 15dc08
  * Improved recognition of powerpc systems wrt Altivec/VMX capability.
Packit 15dc08
  * Misc minor fixes, mainly workarounds for compiler/assembler bugs.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * "Core 2" and Pentium 4 processors, running in 64-bit mode will get a
Packit 15dc08
     slight boost as they are now specifically recognized.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * New support for x86_64-solaris
Packit 15dc08
  * New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin.
Packit 15dc08
    (Please see https://gmplib.org/macos.html for more information.)
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.2 and 4.2.1
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Shared library numbers corrected.
Packit 15dc08
  * Broken support for 32-bit AIX fixed.
Packit 15dc08
  * Misc minor fixes.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * Exact division (mpz_divexact) now falls back to plain division for large
Packit 15dc08
    operands.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Support for some new systems.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.1.4 and 4.2
Packit 15dc08
Packit 15dc08
  Bugs:
Packit 15dc08
  * Minor bug fixes and code generalizations.
Packit 15dc08
  * Expanded and improved test suite.
Packit 15dc08
Packit 15dc08
  Speedups:
Packit 15dc08
  * Many minor optimizations, too many to mention here.
Packit 15dc08
  * Division now always subquadratic.
Packit 15dc08
  * Computation of n-factorial much faster.
Packit 15dc08
  * Added basic x86-64 assembly code.
Packit 15dc08
  * Floating-point output is now subquadratic for all bases.
Packit 15dc08
  * FFT multiply code now about 25% faster.
Packit 15dc08
  * Toom3 multiply code faster.
Packit 15dc08
Packit 15dc08
  Features:
Packit 15dc08
  * Much improved configure.
Packit 15dc08
  * Workarounds for many more compiler bugs.
Packit 15dc08
  * Temporary allocations are now made on the stack only if small.
Packit 15dc08
  * New systems supported: HPPA-2.0 gcc, IA-64 HP-UX, PowerPC-64 Darwin,
Packit 15dc08
    Sparc64 GNU/Linux.
Packit 15dc08
  * New i386 fat binaries, selecting optimised code at runtime (--enable-fat).
Packit 15dc08
  * New build option: --enable-profiling=instrument.
Packit 15dc08
  * New memory function: mp_get_memory_functions.
Packit 15dc08
  * New Mersenne Twister random numbers: gmp_randinit_mt, also now used for
Packit 15dc08
    gmp_randinit_default.
Packit 15dc08
  * New random functions: gmp_randinit_set, gmp_urandomb_ui, gmp_urandomm_ui.
Packit 15dc08
  * New integer functions: mpz_combit, mpz_rootrem.
Packit 15dc08
  * gmp_printf etc new type "M" for mp_limb_t.
Packit 15dc08
  * gmp_scanf and friends now accept C99 hex floats.
Packit 15dc08
  * Numeric input and output can now be in bases up to 62.
Packit 15dc08
  * Comparisons mpz_cmp_d, mpz_cmpabs_d, mpf_cmp_d recognise infinities.
Packit 15dc08
  * Conversions mpz_get_d, mpq_get_d, mpf_get_d truncate towards zero,
Packit 15dc08
    previously their behaviour was unspecified.
Packit 15dc08
  * Fixes for overflow issues with operands >= 2^31 bits.
Packit 15dc08
Packit 15dc08
  Caveats:
Packit 15dc08
  * mpfr is gone, and will from now on be released only separately.  Please see
Packit 15dc08
    www.mpfr.org.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.1.3 and 4.1.4
Packit 15dc08
Packit 15dc08
* Bug fix to FFT multiplication code (crash for huge operands).
Packit 15dc08
* Bug fix to mpf_sub (miscomputation).
Packit 15dc08
* Support for powerpc64-gnu-linux.
Packit 15dc08
* Better support for AMD64 in 32-bit mode.
Packit 15dc08
* Upwardly binary compatible with 4.1.3, 4.1.2, 4.1.1, 4.1, 4.0.1, 4.0,
Packit 15dc08
  and 3.x versions.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.1.2 and 4.1.3
Packit 15dc08
Packit 15dc08
* Bug fix for FFT multiplication code (miscomputation).
Packit 15dc08
* Bug fix to K6 assembly code for gcd.
Packit 15dc08
* Bug fix to IA-64 assembly code for population count.
Packit 15dc08
* Portability improvements, most notably functional AMD64 support.
Packit 15dc08
* mpz_export allows NULL for countp parameter.
Packit 15dc08
* Many minor bug fixes.
Packit 15dc08
* mpz_export allows NULL for countp parameter.
Packit 15dc08
* Upwardly binary compatible with 4.1.2, 4.1.1, 4.1, 4.0.1, 4.0, and 3.x
Packit 15dc08
  versions.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.1.1 and 4.1.2
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.1 and 4.1.1
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
* New systems supported: NetBSD and OpenBSD sparc64.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.0.1 and 4.1
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
* Speed improvements.
Packit 15dc08
* Upwardly binary compatible with 4.0, 4.0.1, and 3.x versions.
Packit 15dc08
* Asymptotically fast conversion to/from strings (mpz, mpq, mpn levels), but
Packit 15dc08
  also major speed improvements for tiny operands.
Packit 15dc08
* mpn_get_str parameter restrictions relaxed.
Packit 15dc08
* Major speed improvements for HPPA 2.0 systems.
Packit 15dc08
* Major speed improvements for UltraSPARC systems.
Packit 15dc08
* Major speed improvements for IA-64 systems (but still sub-optimal code).
Packit 15dc08
* Extended test suite.
Packit 15dc08
* mpfr is back, with many bug fixes and portability improvements.
Packit 15dc08
* New function: mpz_ui_sub.
Packit 15dc08
* New functions: mpz_export, mpz_import.
Packit 15dc08
* Optimization for nth root functions (mpz_root, mpz_perfect_power_p).
Packit 15dc08
* Optimization for extended gcd (mpz_gcdext, mpz_invert, mpn_gcdext).
Packit 15dc08
* Generalized low-level number format, reserving a `nails' part of each
Packit 15dc08
  limb.  (Please note that this is really experimental; some functions
Packit 15dc08
  are likely to compute garbage when nails are enabled.)
Packit 15dc08
* Nails-enabled Alpha 21264 assembly code, allowing up to 75% better
Packit 15dc08
  performance.  (Use --enable-nails=4 to enable it.)
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 4.0 and 4.0.1
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 3.1.1 and 4.0
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
* Speed improvements.
Packit 15dc08
* Upwardly binary compatible with 3.x versions.
Packit 15dc08
* New CPU support: IA-64, Pentium 4.
Packit 15dc08
* Improved CPU support: 21264, Cray vector systems.
Packit 15dc08
* Support for all MIPS ABIs: o32, n32, 64.
Packit 15dc08
* New systems supported: Darwin, SCO, Windows DLLs.
Packit 15dc08
* New divide-and-conquer square root algorithm.
Packit 15dc08
* New algorithms chapter in the manual.
Packit 15dc08
* New malloc reentrant temporary memory method.
Packit 15dc08
* New C++ class interface by Gerardo Ballabio (beta).
Packit 15dc08
* Revamped configure, featuring ABI selection.
Packit 15dc08
* Speed improvements for mpz_powm and mpz_powm_ui (mainly affecting small
Packit 15dc08
  operands).
Packit 15dc08
* mpz_perfect_power_p now properly recognizes 0, 1, and negative perfect
Packit 15dc08
  powers.
Packit 15dc08
* mpz_hamdist now supports negative operands.
Packit 15dc08
* mpz_jacobi now accepts non-positive denominators.
Packit 15dc08
* mpz_powm now supports negative exponents.
Packit 15dc08
* mpn_mul_1 operand overlap requirements relaxed.
Packit 15dc08
* Float input and output uses locale specific decimal point where available.
Packit 15dc08
* New gmp_printf, gmp_scanf and related functions.
Packit 15dc08
* New division functions: mpz_cdiv_q_2exp, mpz_cdiv_r_2exp, mpz_divexact_ui.
Packit 15dc08
* New divisibility tests: mpz_divisible_p, mpz_divisible_ui_p,
Packit 15dc08
  mpz_divisible_2exp_p, mpz_congruent_p, mpz_congruent_ui_p,
Packit 15dc08
  mpz_congruent_2exp_p.
Packit 15dc08
* New Fibonacci function: mpz_fib2_ui.
Packit 15dc08
* New Lucas number functions: mpz_lucnum_ui, mpz_lucnum2_ui.
Packit 15dc08
* Other new integer functions: mpz_cmp_d, mpz_cmpabs_d, mpz_get_d_2exp,
Packit 15dc08
  mpz_init2, mpz_kronecker, mpz_lcm_ui, mpz_realloc2.
Packit 15dc08
* New rational I/O: mpq_get_str, mpq_inp_str, mpq_out_str, mpq_set_str.
Packit 15dc08
* Other new rational functions: mpq_abs, mpq_cmp_si, mpq_div_2exp,
Packit 15dc08
  mpq_mul_2exp, mpq_set_f.
Packit 15dc08
* New float tests: mpf_integer_p, mpf_fits_sint_p, mpf_fits_slong_p,
Packit 15dc08
  mpf_fits_sshort_p, mpf_fits_uint_p, mpf_fits_ulong_p, mpf_fits_ushort_p.
Packit 15dc08
* Other new float functions: mpf_cmp_d, mpf_get_default_prec, mpf_get_si,
Packit 15dc08
  mpf_get_ui, mpf_get_d_2exp.
Packit 15dc08
* New random functions: gmp_randinit_default, gmp_randinit_lc_2exp_size.
Packit 15dc08
* New demo expression string parser (see demos/expr).
Packit 15dc08
* New preliminary perl interface (see demos/perl).
Packit 15dc08
* Tuned algorithm thresholds for many more CPUs.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 3.1 and 3.1.1
Packit 15dc08
Packit 15dc08
* Bug fixes for division (rare), mpf_get_str, FFT, and miscellaneous minor
Packit 15dc08
  things.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 3.0 and 3.1
Packit 15dc08
Packit 15dc08
* Bug fixes.
Packit 15dc08
* Improved `make check' running more tests.
Packit 15dc08
* Tuned algorithm cutoff points for many machines.  This will improve speed for
Packit 15dc08
  a lot of operations, in some cases by a large amount.
Packit 15dc08
* Major speed improvements: Alpha 21264.
Packit 15dc08
* Some speed improvements: Cray vector computers, AMD K6 and Athlon, Intel P5
Packit 15dc08
  and Pentium Pro/II/III.
Packit 15dc08
* The mpf_get_prec function now works as it did in GMP 2.
Packit 15dc08
* New utilities for auto-tuning and speed measuring.
Packit 15dc08
* Multiplication now optionally uses FFT for very large operands.  (To enable
Packit 15dc08
  it, pass --enable-fft to configure.)
Packit 15dc08
* Support for new systems: Solaris running on x86, FreeBSD 5, HP-UX 11, Cray
Packit 15dc08
  vector computers, Rhapsody, Nextstep/Openstep, MacOS.
Packit 15dc08
* Support for shared libraries on 32-bit HPPA.
Packit 15dc08
* New integer functions: mpz_mul_si, mpz_odd_p, mpz_even_p.
Packit 15dc08
* New Kronecker symbol functions: mpz_kronecker_si, mpz_kronecker_ui,
Packit 15dc08
  mpz_si_kronecker, mpz_ui_kronecker.
Packit 15dc08
* New rational functions: mpq_out_str, mpq_swap.
Packit 15dc08
* New float functions: mpf_swap.
Packit 15dc08
* New mpn functions: mpn_divexact_by3c, mpn_tdiv_qr.
Packit 15dc08
* New EXPERIMENTAL function layer for accurate floating-point arithmetic, mpfr.
Packit 15dc08
  To try it, pass --enable-mpfr to configure.  See the mpfr subdirectory for
Packit 15dc08
  more information; it is not documented in the main GMP manual.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 3.0 and 3.0.1
Packit 15dc08
Packit 15dc08
* Memory leaks in gmp_randinit and mpz_probab_prime_p fixed.
Packit 15dc08
* Documentation for gmp_randinit fixed.  Misc documentation errors fixed.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 2.0 and 3.0
Packit 15dc08
Packit 15dc08
* Source level compatibility with past releases (except mpn_gcd).
Packit 15dc08
* Bug fixes.
Packit 15dc08
* Much improved speed thanks to both host independent and host dependent
Packit 15dc08
  optimizations.
Packit 15dc08
* Switch to autoconf/automake/libtool.
Packit 15dc08
* Support for building libgmp as a shared library.
Packit 15dc08
* Multiplication and squaring using 3-way Toom-Cook.
Packit 15dc08
* Division using the Burnikel-Ziegler method.
Packit 15dc08
* New functions computing binomial coefficients: mpz_bin_ui, mpz_bin_uiui.
Packit 15dc08
* New function computing Fibonacci numbers: mpz_fib_ui.
Packit 15dc08
* New random number generators: mpf_urandomb, mpz_rrandomb, mpz_urandomb,
Packit 15dc08
  mpz_urandomm, gmp_randclear, gmp_randinit, gmp_randinit_lc_2exp,
Packit 15dc08
  gmp_randseed, gmp_randseed_ui.
Packit 15dc08
* New function for quickly extracting limbs: mpz_getlimbn.
Packit 15dc08
* New functions performing integer size tests: mpz_fits_sint_p,
Packit 15dc08
  mpz_fits_slong_p, mpz_fits_sshort_p, mpz_fits_uint_p, mpz_fits_ulong_p,
Packit 15dc08
  mpz_fits_ushort_p.
Packit 15dc08
* New mpf functions: mpf_ceil, mpf_floor, mpf_pow_ui, mpf_trunc.
Packit 15dc08
* New mpq function: mpq_set_d.
Packit 15dc08
* New mpz functions: mpz_addmul_ui, mpz_cmpabs, mpz_cmpabs_ui, mpz_lcm,
Packit 15dc08
  mpz_nextprime, mpz_perfect_power_p, mpz_remove, mpz_root, mpz_swap,
Packit 15dc08
  mpz_tdiv_ui, mpz_tstbit, mpz_xor.
Packit 15dc08
* New mpn function: mpn_divexact_by3.
Packit 15dc08
* New CPU support: DEC Alpha 21264, AMD K6 and Athlon, HPPA 2.0 and 64,
Packit 15dc08
  Intel Pentium Pro and Pentium-II/III, Sparc 64, PowerPC 64.
Packit 15dc08
* Almost 10 times faster mpz_invert and mpn_gcdext.
Packit 15dc08
* The interface of mpn_gcd has changed.
Packit 15dc08
* Better support for MIPS R4x000 and R5000 under Irix 6.
Packit 15dc08
* Improved support for SPARCv8 and SPARCv9 processors.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 2.0 and 2.0.2
Packit 15dc08
Packit 15dc08
* Many bug fixes.
Packit 15dc08
Packit 15dc08
Packit 15dc08
Changes between GMP version 1.3.2 and 2.0
Packit 15dc08
Packit 15dc08
* Division routines in the mpz class have changed.  There are three classes of
Packit 15dc08
  functions, that rounds the quotient to -infinity, 0, and +infinity,
Packit 15dc08
  respectively.  The first class of functions have names that begin with
Packit 15dc08
  mpz_fdiv (f is short for floor), the second class' names begin with mpz_tdiv
Packit 15dc08
  (t is short for trunc), and the third class' names begin with mpz_cdiv (c is
Packit 15dc08
  short for ceil).
Packit 15dc08
Packit 15dc08
  The old division routines beginning with mpz_m are similar to the new
Packit 15dc08
  mpz_fdiv, with the exception that some of the new functions return useful
Packit 15dc08
  values.
Packit 15dc08
Packit 15dc08
  The old function names can still be used.  All the old functions names will
Packit 15dc08
  now do floor division, not trunc division as some of them used to.  This was
Packit 15dc08
  changed to make the functions more compatible with common mathematical
Packit 15dc08
  practice.
Packit 15dc08
Packit 15dc08
  The mpz_mod and mpz_mod_ui functions now compute the mathematical mod
Packit 15dc08
  function.  I.e., the sign of the 2nd argument is ignored.
Packit 15dc08
Packit 15dc08
* The mpq assignment functions do not canonicalize their results.  A new
Packit 15dc08
  function, mpq_canonicalize must be called by the user if the result is not
Packit 15dc08
  known to be canonical.
Packit 15dc08
* The mpn functions are now documented.  These functions are intended for
Packit 15dc08
  very time critical applications, or applications that need full control over
Packit 15dc08
  memory allocation.  Note that the mpn interface is irregular and hard to
Packit 15dc08
  use.
Packit 15dc08
* New functions for arbitrary precision floating point arithmetic.  Names
Packit 15dc08
  begin with `mpf_'.  Associated type mpf_t.
Packit 15dc08
* New and improved mpz functions, including much faster GCD, fast exact
Packit 15dc08
  division (mpz_divexact), bit scan (mpz_scan0 and mpz_scan1), and number
Packit 15dc08
  theoretical functions like Jacobi (mpz_jacobi) and multiplicative inverse
Packit 15dc08
  (mpz_invert).
Packit 15dc08
* New variable types (mpz_t and mpq_t) are available that makes syntax of
Packit 15dc08
  mpz and mpq calls nicer (no need for & before variables).  The MP_INT and
Packit 15dc08
  MP_RAT types are still available for compatibility.
Packit 15dc08
* Uses GNU configure.  This makes it possible to choose target architecture
Packit 15dc08
  and CPU variant, and to compile into a separate object directory.
Packit 15dc08
* Carefully optimized assembly for important inner loops.  Support for DEC
Packit 15dc08
  Alpha, Amd 29000, HPPA 1.0 and 1.1, Intel Pentium and generic x86, Intel
Packit 15dc08
  i960, Motorola MC68000, MC68020, MC88100, and MC88110, Motorola/IBM
Packit 15dc08
  PowerPC, National NS32000, IBM POWER, MIPS R3000, R4000, SPARCv7,
Packit 15dc08
  SuperSPARC, generic SPARCv8, and DEC VAX.  Some support also for ARM,
Packit 15dc08
  Clipper, IBM ROMP (RT), and Pyramid AP/XP.
Packit 15dc08
* Faster.  Thanks to the assembler code, new algorithms, and general tuning.
Packit 15dc08
  In particular, the speed on machines without GCC is improved.
Packit 15dc08
* Support for machines without alloca.
Packit 15dc08
* Now under the LGPL.
Packit 15dc08
Packit 15dc08
INCOMPATIBILITIES BETWEEN GMP 1 AND GMP 2
Packit 15dc08
Packit 15dc08
* mpq assignment functions do not canonicalize their results.
Packit 15dc08
* mpz division functions round differently.
Packit 15dc08
* mpz mod functions now really compute mod.
Packit 15dc08
* mpz_powm and mpz_powm_ui now really use mod for reduction.