Commit graph

125 commits

Author SHA1 Message Date
adam
568763a9e5 Oops.. switched back to .tar.bz2 2013-10-02 15:13:46 +00:00
adam
c12966a227 Changes 5.1.3:
BUGS FIXED
  * The internal functions mpn_sbpi1_div_qr_sec mpn_sbpi1_div_r_sec could
    compute garbage with a low probability.  They are now rewritten, and the
    test code has been improved.

  * A bug in the ia64 implementation of mpn_divrem_2, clobbering some
    callee-save registers, has been fixed. This is an internal
    function, with the bug manifesting itself as miscomputation in,
    e.g., mpn_sqrtrem.

  * The documentation now correctly says 'const' for input arguments.
2013-10-02 15:10:55 +00:00
wiz
8a9554f3c4 Update to 5.1.2:
Changes between GMP version 5.1.1 and 5.1.2

  BUGS FIXED
  * A bug in mpz_powm_ui triggered by base arguments of at least 15000 decimal
    digits or mod arguments of at least 7500 decimal digits has been fixed.

  * A AMD Bulldozer specific bug affecting the 64-bit Windows ABI has been
    fixed.  This bug was in a key function (mpn_mul_1) and made both Bulldozer
    specific builds and fat builds run on Bulldozer completely non-functional.

  MISC
  * Fixes and generalisations to the test suite.

  * Minor portability enhancements.
2013-05-25 13:32:26 +00:00
riastradh
c5ccf298d7 Fix devel/gmp cross-build by telling it about the native C compiler.
ok agc
2013-05-10 00:44:29 +00:00
asau
4fd2966508 Perform fetch at fetch phase. 2013-04-07 16:19:08 +00:00
asau
df61e59608 "fetch" isn't a good target to fetch distfiles, it doesn't calculate digests.
Use "checksum" instead.
2013-04-07 16:13:56 +00:00
adam
b6615a3e57 Changes 5.1.1:
BUGS FIXED
On Windows 64-bit, an error causing link errors about __gmp_binvert_limb_table has been fixed.
Aarch64 alias ARM64 support now works.
A possible buffer overrun in mpz_ior has been fixed.
A rare sign flip in mpz_remove has been fixed.
A bug causing problems with mpf numbers with absolute value ≥ 231 has been fixed.
Several bugs in mini-gmp have been fixed.
A bug caused by automake, related to the 'distcheck' target, has been fixed by upgrading the automake used for GMP release engineering.

FEATURES
Preliminary support for the x32 ABI under x86-64.

MISC
The mini-gmp testsuite now tests the entire set of functions.
Various improvements of the GMP testsuite.
2013-02-12 09:15:36 +00:00
hans
9e628609f3 Document .tar.bz2 requirement, requested by wiz. 2013-02-01 23:09:54 +00:00
hans
e7f7ae43b2 Use .tar.bz2 distfile so that no extra dependency on archivers/xz is
needed when building lang/gcc* with option gcc-inplace-math.
2013-02-01 11:26:22 +00:00
adam
742cf4e2b5 Changes 5.1.0:
BUGS FIXED
* When reading a C++ number (like mpz_class) in an istream reaches the end
  of the stream, the eofbit is now set.

* The result sign of mpz_rootrem's remainder is now always correct.
* The mpz_remove function now handles negative divisors.
* Contains all fixes from release 5.0.5.

SPEEDUPS
* The n-factorial and n-over-k functions have been reimplemented for great
  speedups for small and large operands.
* New subquadratic algorithm for the Kronecker/Jacobi/Legendre symbol.
* Major speedup for ARM, in particular ARM Cortex-A9 and A15, thanks to broad
  assembly support.
* Significant speedup or POWER6 and POWER7 thanks to improved assembly.
* The performance under M$ Windows' 64-bit ABI has been greatly improved
  thanks to complete assembly support.
* Minor speed improvements of many functions and for many platforms.

FEATURES
* Many new CPUs recognised.
* New functions for multi-factorials, and primorial: mpz_2fac_ui,
  mpz_mfac_uiui and mpz_primorial_ui.
* The mpz_powm_sec function now uses side-channel silent division for
  converting into Montgomery residues.
* The fat binary mechanism is now more robust in its CPU recognition.

MISC
* Inclusion of assembly code is now controlled by the configure options
  --enable-assembly and --disable-assembly.  The "none" CPU targets is gone.
* In C++, the conversions mpq_class->mpz_class, mpf_class->mpz_class and
  mpf_class->mpq_class are now explicit.
* Includes "mini-gmp", a small, portable, but less efficient, implementation
  of a subset of GMP's mpn and mpz interfaces. Used in GMP bootstrap, but it
  can also be bundled with applications as a fallback when the real GMP
  library is unavailable.
* The ABIs under AIX are no longer called aix32 and aix64, but mode64 and 32.
  This is more consistent with other powerpc systems.
* The coverage of the testsuite has been improved, using the lcov tool.  See
  also http://gmplib.org/devel/lcov/.
* It is now possible to compile GMP using a C++ compiler.
* K&R C compilers are no longer supported.
* The BSD MP compatibility functions have been removed.
2013-01-31 20:30:25 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
drochner
d84d64ba49 update to 5.0.5
changes: bugfixes, in particular for glitches with newer CPUs
2012-05-11 14:08:59 +00:00
hans
590cbada61 Add inplace.mk to allow building this inside another package. 2012-04-13 11:00:14 +00:00
drochner
e47acb504e update to 5.0.4
changes:
-bugfixes
-New CPUs recognised
2012-02-21 13:18:19 +00:00
hans
a9321c60e1 Set CFLAGS for the benefit of packages ignoring CPPFLAGS. 2012-02-16 18:39:53 +00:00
is
933d2ea7af Make this work on thumbless CPUs. 2011-11-16 21:30:07 +00:00
hans
9daed0d88c Fix detection of builtin gmp on SunOS. 2011-09-14 16:10:12 +00:00
drochner
51be567cb1 allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
2011-07-08 09:40:57 +00:00
asau
e4b6cccbea Update GMP to version 5.0.2
Changes between GMP version 5.0.1 and 5.0.2

  BUGS FIXED
  * Many minor bugs related to portability fixed.

  * The support for HPPA 2.0N now works, after an assembly bug fix.

  * A test case type error has been fixed.  The symptom of this bug
    was spurious 'make check' failures.

  SPEEDUPS
  * None, except indirectly through recognition of new CPUs.

  FEATURES
  * Fat builds are now supported for 64-bit x86 processors also under Darwin.

  MISC
  * None.
2011-05-08 20:50:09 +00:00
jwise
3243ae9730 Fix build on Solaris 10.
Unfortunately, with recent gcc, the x86 version of mpn fails to build on
Solaris.  Add it to Darwin on the list of platforms for which we build a
generic mpn instead.
2010-09-24 14:27:35 +00:00
martin
f4fcba57b4 In the VAX asm code: hide all local labels and make calculated jumps PIC,
so the shared library now works as well. Thanks to Matt Thomas for vax
asm help.
2010-05-28 13:50:25 +00:00
martin
50bd871c06 Adapt global symbold names to ELF worldorder 2010-05-18 18:33:48 +00:00
martin
13ced75001 oops 2010-05-18 07:31:59 +00:00
martin
9dc43bddfe Adopt VAX asm code to modern gas requirements (prefix all registers with %) 2010-05-18 05:02:34 +00:00
asau
1807ff2338 Recursive revision bump for GMP update, 2nd part. 2010-03-24 21:54:15 +00:00
asau
a45ee01f90 Update to GMP 5.0.1
Changes in GMP 5.0.1

BUGS FIXED

  - Fat builds fixed.
  - Fixed crash for huge multiplies when old FFT_TABLE2 type of parameter selection tables' sentinel was smaller than multiplied
    operands.
  - The solib numbers now reflect the removal of the documented but preliminary mpn_bdivmod function; we correctly flag
    incompatibility with GMP 4.3. GMP 5.0.0 has this wrong, and should perhaps be uninstalled to avoid confusion.

SPEEDUPS

  - Multiplication of large numbers has indirectly been sped up through better FFT tuning and processor recognition. Since many
    operations depend on multiplication, there will be a general speedup.

FEATURES

  - More Core i3, i5 an Core i7 processor models are recognised.
  - Fixes and workarounds for Mac OS quirks should make this GMP version build using many of the different versions of "Xcode".

MISC

  - The amount of scratch memory needed for multiplication of huge numbers have been reduced substantially (but is still larger
    than in GMP 4.3.)
  - Likewise, the amount of scratch memory needed for division of large numbers have been reduced substantially.
  - The FFT tuning code of tune/tuneup.c has been completely rewritten, and new, large FFT parameter selection tables are provided
    for many machines.
  - Upgraded to the latest autoconf, automake, libtool.


Changes in GMP 5.0.0

BUGS FIXED

  - None (contains the same fixes as release 4.3.2).

SPEEDUPS

  - Multiplication has been overhauled:
     1. Multiplication of larger same size operands has been improved with the addition of two new Toom functions and a new
        internal function mpn_mulmod_bnm1 (computing U * V mod (B^n-1), B being the word base. This latter function is used for the
        largest products, waiting for a better Schoenhage-Strassen U * V mod (B^n+1) implementation.
     2. Likewise for squaring.
     3. Multiplication of different size operands has been improved with the addition of many new Toom function, and by selecting
        underlying functions better from the main multiply functions.
  - Division and mod have been overhauled:
     1. Plain "schoolbook" division is reimplemented using faster quotient approximation.
     2. Division Q = N/D, R = N mod D where both the quotient and remainder are needed now runs in time O(M(log(N))). This is an
        improvement of a factor log(log(N))
     3. Division where just the quotient is needed is now O(M(log(Q))) on average.
     4. Modulo operations using Montgomery REDC form now take time O(M(n)).
     5. Exact division Q = N/D by means of mpz_divexact has been improved for all sizes, and now runs in time O(M(log(N))).
  - The function mpz_powm is now faster for all sizes. Its complexity has gone from O(M(n)log(n)m) to O(M(n)m) where n is the size
    of the modulo argument and m is the size of the exponent. It is also radically faster for even modulus, since it now partially
    factors such modulus and performs two smaller modexp operations, then uses CRT.
  - The internal support for multiplication yielding just the lower n limbs has been improved by using Mulders' algorithm.
  - Computation of inverses, both plain 1/N and 1/N mod B^n have been improved by using well-tuned Newton iterations, and
    wrap-around multiplication using mpn_mulmod_bnm1.
  - A new algorithm makes mpz_perfect_power_p asymptotically faster.
  - The function mpz_remove uses a much faster algorithm, is better tuned, and also benefits from the division improvements.
  - Intel Atom and VIA Nano specific optimisations.
  - Plus hundreds of smaller improvements and tweaks!

FEATURES

  - New mpz function: mpz_powm_sec for side-channel quiet modexp computations.
  - New mpn functions: mpn_sqr, mpn_and_n, mpn_ior_n, mpn_xor_n, mpn_nand_n, mpn_nior_n, mpn_xnor_n, mpn_andn_n, mpn_iorn_n,
    mpn_com, mpn_neg, mpn_copyi, mpn_copyd, mpn_zero.
  - The function mpn_tdiv_qr now allows certain argument overlap.
  - Support for fat binaries for 64-bit x86 processors has been added.
  - A new type, mp_bitcnt_t for bignum bit counts, has been introduced.
  - Support for Windows64 through mingw64 has been added.
  - The cofactors of mpz_gcdext and mpn_gcdext are now more strictly normalised, returning to how GMP 4.2 worked. (Note that also
    release 4.3.2 has this change.)

MISC

  - The mpn_mul function should no longer be used for squaring, instead use the new mpn_sqr.
  - The algorithm selection has been improved, the number of thresholds have more than doubled, and the tuning and use of existing
    thresholds have been improved.
  - The tune/speed program can measure many of new functions.
  - The mpn_bdivmod function has been removed. We do not consider this an incompatible change, since the function was marked as
    preliminary.
  - The testsuite has been enhanced in various ways.


Changes in GMP 4.3.2

Bugs:

  - Fixed bug in mpf_eq.
  - Fixed overflow issues in mpz_set_str, mpz_inp_str, mpf_set_str, and mpf_get_str.
  - Avoid unbounded stack allocation for unbalanced multiplication.
  - Fixed bug in FFT multiplication.

Speedups:

  - None, except that improved processor recognition helps affected processors.

Features:

  - Recognise more "Core 2" processor variants.
  - The cofactors of mpz_gcdext and mpn_gcdext are now more strictly normalised, returning to how GMP 4.2 worked.
2010-02-13 09:43:40 +00:00
sketch
b402847295 Apply patch from http://gmplib.org/list-archives/gmp-bugs/2009-May/001485.html
to fix sunpro build.
2009-09-18 14:33:32 +00:00
wiz
aefffb5ad9 Update to 4.3.1. Add gnu-gpl-v3 to LICENSE, since README claims it
also affects some files.

Changes between GMP version 4.3.0 and 4.3.1

  Bugs:
  * Fixed bug in mpn_gcdext, affecting also mpz_gcdext and mpz_invert.
    The bug could cause a cofactor to have a leading zero limb, which
    could lead to crashes or miscomputation later on.
  * Fixed some minor documentation issues.

  Features:
  * Workarounds for various issues with Mac OS X's build tools.
  * Recognise more IBM "POWER" processor variants.


Changes between GMP version 4.2.X and 4.3.0

  Bugs:
  * Fixed bug in mpz_perfect_power_p with recognition of negative perfect
    powers that can be written both as an even and odd power.
  * We might accidentally have added bugs since there is a large amount of
    new code in this release.

  Speedups:
  * Vastly improved assembly code for x86-64 processors from AMD and Intel.
  * Major improvements also for many other processor families, such as
    Alpha, PowerPC, and Itanium.
  * New sub-quadratic mpn_gcd and mpn_gcdext, as well as improved basecase
    gcd code.
  * The multiply FFT code has been slightly improved.
  * Balanced multiplication now uses 4-way Toom in addition to schoolbook,
    Karatsuba, 3-way Toom, and FFT.
  * Unbalanced multiplication has been vastly improved.
  * Improved schoolbook division by means of faster quotient approximation.
  * Several new algorithms for division and mod by single limbs, giving
    many-fold speedups.
  * Improved nth root computations.
  * The mpz_nextprime function uses sieving and is much faster.
  * Countless minor tweaks.

  Features:
  * Updated support for fat binaries for x86_32 include current processors
  * Lots of new mpn internal interfaces.  Some of them will become public
    in a future GMP release.
  * Support for the 32-bit ABI under x86-apple-darwin.
  * x86 CPU recognition code should now default better for future
    processors.
  * The experimental nails feature does not work in this release, but
    it might be re-enabled in the future.

  Misc:
  * The gmp_version variable now always contains three parts.  For this
    release, it is "4.3.0".
2009-08-16 13:42:33 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
sketch
d0e9b07659 Disable C++ and fat binary support when using Sun Studio, they don't build. 2009-01-20 17:51:12 +00:00
jmcneill
110bb1473c regen 2008-11-21 13:12:12 +00:00
bjs
38518cebd8 PKGREVISION++ 2008-11-21 11:27:31 +00:00
bjs
35b3219257 Enable building the fat binary unless we're using Darwin;
this seems to make the most sense for bulk builds to me.
Should any other platforms fail, we can make a note of it
and exclude them along with Darwin.

Also, add two distribution patches from upstream:

[2008-11-09]
	When calling mpf_set_str (perhaps indirectly via
	mpf_init_set_str or mpf_inp_str, or via the C++ interface) with the
	argument for the base set to 0, any exponent will be ignored.
[2008-11-08]
	The mpf_eq function sometimes compares too few bits, not
	just too many (the latter is documented).
	This might lead to precision loss. When the experimental
	--enable-nails feature is enabled at the same time --enable-cxx is
	enabled, make check fails. This failure is actually due to bugs
	in tests/cxx/t-prec.cc, which makes it use mpf_eq incorrectly.
	This patch makes mpf_eq compare the right number of bits,
	neither too few, nor to many.
	The patch also fixes the test case, and documentation.

	(not strictly necessary, but I figured I'd keep in line with
	their recommendations)

PKGREVISION++
2008-11-21 11:27:30 +00:00
adam
815c5962b0 Fix for gcc-4.2 on Darwin 2008-11-20 16:44:45 +00:00
wiz
2ecc410d8a Update to 4.2.4:
Changes between GMP version 4.2.3 and 4.2.4

  Bugs:
  * Fix bug with parsing exponent '+' sign in mpf.
  * Fix an allocation bug in mpf_set_str, also affecting mpf_init_set_str, and
    mpf_inp_str.

  Speedups:
  * None, except that proper processor recognition helps affected processors.

  Features:
  * Recognize new AMD processors.
2008-10-09 10:56:16 +00:00
bjs
a9d0388552 Update to gmp-4.2.3.
Changes between GMP version 4.2.2 and 4.2.3:

  Bugs:
  * Fix x86 CPU recognition code to properly identify recent AMD and Intel
    64-bit processors.
  * The >> operator of the C++ wrapper gmpxx.h now does floor rounding, not
    truncation.
  * Inline semantics now follow the C99 standard, and works with recent GCC
    releases.
  * C++ bitwise logical operations work for more types.
  * For C++, gmp.h now includes cstdio, improving compiler compatibility.
  * Bases > 36 now work properly in mpf_set_str.

  Speedups:
  * None, except that proper processor recognition helps affected processors.

  Features:
  * The allocation functions now detect overflow of the mpz_t type.  This means
    that overflow will now cause an abort, except when the allocation
    computation itself overflows.  (Such overflow can probably only happen in
    powering functions; we will detect powering overflow in the future.)
2008-08-17 07:56:11 +00:00
tonio
5dd8d9fd9b Fix build under MacOSX Leopard with Xcode 3 2008-07-14 13:06:23 +00:00
bjs
c3c3d53886 Add distribution patch (from gmplib.org) for the following bug:
When using mpf_set_str, mpf_init_set_str, or mpf_inp_str
    with a base > 36, the supplied base will actually be ignored,
    and the exponent 0 will be supplanted. [2007-12-10]

All tests pass on NetBSD/amd64 4.99.58.

Bump revision.
2008-04-01 00:57:09 +00:00
tnn
882d3eb4fe Put back a couple of IRIX conditionals the way they used to behave,
e.g. match IRIX 5.x but not 6.x. Some of these may indeed apply to 6.x
too, but let's be conservative. PR pkg/38224.
2008-03-11 18:47:40 +00:00
wiz
8a5b10ea93 Update HOMEPAGES and MASTER_SITES; from Sergey Svishchev. 2007-12-02 13:04:06 +00:00
rillig
67778f29d4 Sunpro accepts __attribute__((mode ...)), but ignores it. Fixed the
configure test and reported it upstream.
2007-11-25 08:35:31 +00:00
gdt
fa01df74a0 comment out LICENESE for now. 2007-11-07 00:18:17 +00:00
bjs
ee25d3e90e Update to version 4.2.2. Support DESTDIR installation. Add option
to build a "fat" binary on (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin").
This isn't enabled by default now, but it might be useful for build builds,
as it uses cpuid at runtime to choose the most appropriate assembler code.
Insofar as I can tell, no BUILDLINK_A[BP]I_DEPENDS bump is necessary.

NOTE: Support for Darwin-*-i386 and Darwin-*-x86_64 has been improved,
see below.  Thus, I recommend that we test building the assembler code
on Darwin at some point.

Changes between GMP version 4.2.1 and 4.2.2:
	* License is now LGPL version 3.
Bugs:
	* Shared library numbers corrected for libcxx.
	* Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage.
	  Note that this only affects C++ programs.
	* Fix crash in mpz_set_d for arguments with large negative exponent.
	* Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist.
	* Fix assembly syntax problem for powerpc-ibm-aix with AIX
	  native assembler.
	* Fix problems with x86 --enable-fat, where the compiler where told to
	  generate code for the build machine, not plain i386 code as it should.
	* Improved recognition of powerpc systems wrt Altivec/VMX capability.
	* Misc minor fixes, mainly workarounds for compiler/assembler bugs.
Speedups:
	* "Core 2" and Pentium 4 processors, running in 64-bit mode will get a
	  slight boost as they are now specifically recognized.
Features:
	* New support for x86_64-solaris
	* New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin.
	  (Please see http://gmplib.org/macos.html for more information.)
2007-10-30 01:36:59 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
schmonz
07cec4a1dc Don't use x86 assembly on Darwin, as it doesn't build. 2007-06-18 02:45:31 +00:00
wiz
6e2c35c083 pkglint cleanup; update HOMEPAGE/MASTER_SITES.
From Sergey Svishchev in private mail.
2007-02-22 19:01:13 +00:00
jnemeth
5f534b93e8 Update to GNU MP 4.2.1
Changes between GMP version 4.2 and 4.2.1

  Bugs:
  * Shared library numbers corrected.
  * Broken support for 32-bit AIX fixed.
  * Misc minor fixes.

  Speedups:
  * Exact division (mpz_divexact) now falls back to plain division for large
    operands.

  Features:
  * Support for some new systems.


Changes between GMP version 4.1.4 and 4.2

  Bugs:
  * Minor bug fixes and code generalizations.
  * Expanded and improved test suite.

  Speedups:
  * Many minor optimizations, too many to mention here.
  * Division now always subquadratic.
  * Computation of n-factorial much faster.
  * Added basic x86-64 assembly code.
  * Floating-point output is now subquadratic for all bases.
  * FFT multiply code now about 25% faster.
  * Toom3 multiply code faster.

  Features:
  * Much improved configure.
  * Workarounds for many more compiler bugs.
  * Temporary allocations are now made on the stack only if small.
  * New systems supported: HPPA-2.0 gcc, IA-64 HP-UX, PowerPC-64 Darwin,
    Sparc64 GNU/Linux.
  * New i386 fat binaries, selecting optimised code at runtime (--enable-fat).
  * New build option: --enable-profiling=instrument.
  * New memory function: mp_get_memory_functions.
  * New Mersenne Twister random numbers: gmp_randinit_mt, also now used for
    gmp_randinit_default.
  * New random functions: gmp_randinit_set, gmp_urandomb_ui, gmp_urandomm_ui.
  * New integer functions: mpz_combit, mpz_rootrem.
  * gmp_printf etc new type "M" for mp_limb_t.
  * gmp_scanf and friends now accept C99 hex floats.
  * Numeric input and output can now be in bases up to 62.
  * Comparisons mpz_cmp_d, mpz_cmpabs_d, mpf_cmp_d recognise infinities.
  * Conversions mpz_get_d, mpq_get_d, mpf_get_d truncate towards zero,
    previously their behaviour was unspecified.
  * Fixes for overflow issues with operands >= 2^31 bits.

  Caveats:
  * mpfr is gone, and will from now on be released only separately.  Please see
    www.mpfr.org.
2006-12-09 03:38:16 +00:00
jschauma
721b60b433 Instead of setting compiler flags in each package if it uses C99,
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing.
May need to be reviewed/added for other compilers.
ok rillig@
2006-12-02 22:32:59 +00:00
schwarz
3a870f933c corrected LOWER_OPSYS matching for IRIX 5 2006-10-22 19:49:07 +00:00