summaryrefslogtreecommitdiff
path: root/devel/gmp
AgeCommit message (Collapse)AuthorFilesLines
2003-02-21Update to gmp 4.1.2. Many changes, but the relevant bug fixes seems to be:mycroft8-129/+11
* mpn/generic/rootrem.c: In Newton loop, pad qp with leading zero. * mpn/generic/rootrem.c: Allocate 1.585 (log2(3)) times more space for pp temporary to allow for worst case overestimate of root. Add some asserts. * tests/mpz/t-root.c: Generalize and speed up. * mpfr/pow.c: Fixed bug (infinite loop) for exact powers. * mpfr/sub.c: Fixed wrong inexact flag for a - b where a and b are of different signs and EXP(a) < EXP(b). * printf/printffuns.c (gmp_fprintf_reps): Make it actually work for padding > 256. * gmp-impl.h (USE_LEADING_REGPARM): Disable for PIC code generation. * mpn/generic/tdiv_qr.c: Remove a bogus assert. * mpn/generic/mode1o.c, mpn/alpha/ev5/mode1o.c: Correction to ASSERTs. Reported by Christoph Ludwig. * mpf/urandomb.c: Truncate nbits to precision of rop. * configure.in (sparc v9 *bsd*): Add NetBSD and OpenBSD sparc64. (x86 openbsd*): Extra underscore for _GLOBAL_OFFSET_TABLE_. * mpn/generic/rootrem.c: Avoid overflow in xnb calculation. * mpz/root.c: Avoid overflow in rootnb calculation. * gmpxx.h (__gmp_binary_equal, __gmp_binary_not_equal): Fix broken mpq/double functions. * mpn/m68k/lshift.asm: Fix typo in !scale_available_p code. * mpn/m68k/rshift.asm: Likewise. * mpz/remove.c: Make src==0 return 0, not do DIVIDE_BY_ZERO. * mpfr/acinclude.m4 (MPFR_CONFIGS): Patch by Vincent for an apparent float rounding gremlin on powerpc. * mpf/inp_str.c: Fix returned count of chars read, reported by Paul Zimmermann. Also fix a memory leak for invalid input. * mpfr/set_q.c: Allow for 1 bit numerator or denominator.
2003-01-02fix dependency for m4hubertf1-2/+2
2002-10-09Unused.wiz1-34/+0
2002-08-27Add a buildlink2.mk based on the existing buildlink.mk one.jlam1-0/+19
2002-08-25Merge packages from the buildlink2 branch back into the main trunk thatjlam8-9/+9
have been converted to USE_BUILDLINK2.
2002-08-24Update to 4.1mjl9-48/+133
* Bug fixes. * Speed improvements. * Upwardly binary compatible with 4.0, 4.0.1, and 3.x versions. * Asymptotically fast conversion to/from strings (mpz, mpq, mpn levels), but also major speed improvements for tiny operands. * mpn_get_str parameter restrictions relaxed. * Major speed improvments for HPPA 2.0 systems. * Major speed improvments for UltraSPARC systems. * Major speed improvments for IA-64 systems (but still sub-optimal code). * Extended test suite. * mpfr is back, with many bug fixes and portability improvements. * New function: mpz_ui_sub. * New functions: mpz_export, mpz_import. * Optimization for nth root functions (mpz_root, mpz_perfect_power_p). * Optimization for extended gcd (mpz_gcdext, mpz_invert, mpn_gcdext). * Generalized low-level number format, reserving a `nails' part of each limb. (Please note that this is really experimental; some functions are likely to compute garbage when nails are enabled.) * Nails-enabled Alpha 21264 assembly code, allowing up to 75% better performance. (Use --enable-nails=4 to enable it.)
2002-05-10Make this compile with gas-2.11.2/m68k/ELF (NetBSD-1.5ZC/mac68k).fredb2-1/+35
2002-04-12Build C++ library, too.jschauma2-2/+9
(Commit approved by hubertf)
2002-04-10Update gmp to 4.0.1. Changes:hubertf7-104/+12
* Bug fixes. * Speed improvements. * Upwardly binary compatible with 3.x versions. * New CPU support: IA-64, Pentium 4. * Improved CPU support: 21264, Cray vector systems. * Support for all MIPS ABIs: o32, n32, 64. * New systems supported: Darwin, SCO, Windows DLLs. * New divide-and-conquer square root algorithm. * New algorithms chapter in the manual. * New malloc reentrant temporary memory method. * New C++ class interface by Gerardo Ballabio (beta). * Revamped configure, featuring ABI selection. * Speed improvements for mpz_powm and mpz_powm_ui (mainly affecting small operands). * mpz_perfect_power_p now properly recognizes 0, 1, and negative perfect powers. * mpz_hamdist now supports negative operands. * mpz_jacobi now accepts non-positive denominators. * mpz_powm now supports negative exponents. * mpn_mul_1 operand overlap requirements relaxed. * Float input and output uses locale specific decimal point where available. * New gmp_printf, gmp_scanf and related functions. * New division functions: mpz_cdiv_q_2exp, mpz_cdiv_r_2exp, mpz_divexact_ui. * New divisibility tests: mpz_divisible_p, mpz_divisible_ui_p, mpz_divisible_2exp_p, mpz_congruent_p, mpz_congruent_ui_p, mpz_congruent_2exp_p. * New Fibonacci function: mpz_fib2_ui. * New Lucas number functions: mpz_lucnum_ui, mpz_lucnum2_ui. * Other new integer functions: mpz_cmp_d, mpz_cmpabs_d, mpz_get_d_2exp, mpz_init2, mpz_kronecker, mpz_lcm_ui, mpz_realloc2. * New rational I/O: mpq_get_str, mpq_inp_str, mpq_out_str, mpq_set_str. * Other new rational functions: mpq_abs, mpq_cmp_si, mpq_div_2exp, mpq_mul_2exp, mpq_set_f. * New float tests: mpf_integer_p, mpf_fits_sint_p, mpf_fits_slong_p, mpf_fits_sshort_p, mpf_fits_uint_p, mpf_fits_ulong_p, mpf_fits_ushort_p. * Other new float functions: mpf_cmp_d, mpf_get_default_prec, mpf_get_si, mpf_get_ui, mpf_get_d_2exp. * New random functions: gmp_randinit_default, gmp_randinit_lc_2exp_size. * New demo expression string parser (see demos/expr). * New preliminary perl interface (see demos/perl). * Tuned algorithm thresholds for many more CPUs.
2002-02-18Introduce new framework for handling info files generation and installation.seb2-4/+6
Summary of changes: - removal of USE_GTEXINFO - addition of mk/texinfo.mk - inclusion of this file in package Makefiles requiring it - `install-info' substituted by `${INSTALL_INFO}' in PLISTs - tuning of mk/bsd.pkg.mk: removal of USE_GTEXINFO INSTALL_INFO added to PLIST_SUBST `${INSTALL_INFO}' replace `install-info' in target rules print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info' - a couple of new patch files added for a handful of packages - setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it - devel/cssc marked requiring texinfo 4.0 - a couple of packages Makefiles were tuned with respect of INFO_FILES and makeinfo command usage See -newly added by this commit- section 10.24 of Packages.txt for further information.
2001-11-01Move pkg/ files into package's toplevel directoryzuntum2-1/+1
2001-07-27Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the defaultjlam1-1/+2
installation directory in case the package isn't installed.
2001-07-20Mechanical changes to buildlink.mk files to use EVAL_PREFIX to setjlam1-2/+2
BUILDLINK_PREFIX.<pkgname>. This allows buildlink to find X11BASE packages regardless of whether they were installed before or after xpkgwedge was installed. Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-02Mark as USE_BUILDLINK_ONLY.jlam1-1/+2
2001-07-01Move inclusion of bsd.buildlink.mk to start of file.jlam1-3/+3
2001-06-23Generalize how the dependency pattern may be specified. Instead of justjlam1-4/+5
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify the dependency pattern as FOO_DEPENDS=foo>=1.0. This allows things like JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib. Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-11Use bsd.buildlink.mk instead of duplicating code all over the place.jlam1-44/+11
2001-06-10Use cookies (.*_done) to determine whether headers and libs have beenjlam1-6/+12
linked from a particular package, and add a pre-configure target to the buildlink.mk file to more painlessly use buildlink.mk files. A ${BUILDLINK_TARGETS} variable still exists in case a package _must_ define NO_CONFIGURE.
2001-05-28Add buildlink.mk file to link appropriate libraries and headers intojlam1-0/+59
${BUILDLINK_INCDIR} and ${BUILDLINK_LIBDIR}, to be used by other packages.
2001-04-21Move to sha1 digests, and/or add distfile sizes.wiz1-2/+3
2001-04-17+ move the distfile digest/checksum value from files/md5 to distinfoagc3-9/+7
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-03-27Change BUILD_DEPENDS semantics:hubertf1-2/+2
first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks <agc@netbsd.org>
2001-02-23Use GNU m4; on macppc, NetBSD m4 seems to have a problem here.wiz1-1/+4
2001-02-16Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.wiz2-2/+2
2001-01-04The way that shared objects were handled in the PLISTs and bsd.pkg.mk wasagc1-1/+3
out of date - it was based on a.out OBJECT_FMT, and added entries in the generated PLISTs to reflect the symlinks that ELF packages uses. It also tried to be clever, and removed and recreated any symbolic links that were created, which has resulted in some fun, especially with packages which use dlopen(3) to load modules. Some recent changes to our ld.so to bring it more into line with other Operating Systems also exposed some cracks. + Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain the ELF symlinks. + Don't mess about with file system entries when handling shared objects in bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will have got it right, and have a much better idea than we do. + Modify PLISTs to contain "ELF symlinks" + On a.out platforms, delete any "ELF symlinks" from the generated PLISTs + On ELF platforms, no extra processing needs to be done in bsd.pkg.mk + Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on a.out platforms + Update the documentation in Packages.txt With many thanks to Thomas Klausner for keeping me honest with this.
2000-12-31Update to 3.1.1.skrll8-76/+86
Split patch-aa into a patch per file while I'm here.
2000-11-17Fix a stupid underscore problem on arm32.mycroft2-5/+88
2000-06-30Update to gmp-3.0.1, including new functions, autoconf/libtool support,danw6-85/+19
and a shared version of the library.
1999-12-28RCS tag addedwiz1-0/+1
1999-12-26Use "${MASTER_SITE_GNU}" instead of hard coding "ftp.gnu.org".tron1-2/+2
1999-07-16Make this work on i386 with ELF.jlam1-0/+57
1999-07-16Update patch checksums.jlam1-1/+2
1999-07-09Add package patch-sum filesagc1-0/+3
1999-04-30Add a homepage while I'm here.simonb1-1/+2
1999-04-30Add similar fix for security/ssh to generate MIPS ABI code onsimonb1-0/+14
mips*-*-netbsd* machines. Same problem as noted in PR pkg/7467.
1999-04-05GNU Multiple Precision Arithmetic Libraryhubertf5-0/+38