pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gmp Update to GNU MP 4.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3dc104e4165c
branches:  trunk
changeset: 522427:3dc104e4165c
user:      jnemeth <jnemeth%pkgsrc.org@localhost>
date:      Sat Dec 09 03:38:16 2006 +0000

description:
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.

diffstat:

 devel/gmp/Makefile         |    5 +-
 devel/gmp/buildlink3.mk    |    6 +-
 devel/gmp/distinfo         |   12 +-
 devel/gmp/patches/patch-aa |    6 +-
 devel/gmp/patches/patch-ab |   22 --
 devel/gmp/patches/patch-ac |  391 ---------------------------------------------
 6 files changed, 13 insertions(+), 429 deletions(-)

diffs (truncated from 486 to 300 lines):

diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/Makefile
--- a/devel/gmp/Makefile        Sat Dec 09 02:29:31 2006 +0000
+++ b/devel/gmp/Makefile        Sat Dec 09 03:38:16 2006 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2006/12/02 22:32:59 jschauma Exp $
+# $NetBSD: Makefile,v 1.42 2006/12/09 03:38:16 jnemeth Exp $
 
-DISTNAME=      gmp-4.1.4
-PKGREVISION=   1
+DISTNAME=      gmp-4.2.1
 CATEGORIES=    devel math
 MASTER_SITES=  ${MASTER_SITE_GNU:=gmp/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/buildlink3.mk
--- a/devel/gmp/buildlink3.mk   Sat Dec 09 02:29:31 2006 +0000
+++ b/devel/gmp/buildlink3.mk   Sat Dec 09 03:38:16 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2006/07/08 23:10:43 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2006/12/09 03:38:16 jnemeth Exp $
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
 GMP_BUILDLINK3_MK:=    ${GMP_BUILDLINK3_MK}+
@@ -12,8 +12,8 @@
 BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}gmp
 
 .if !empty(GMP_BUILDLINK3_MK:M+)
-BUILDLINK_API_DEPENDS.gmp+=            gmp>=4.1.2
-BUILDLINK_ABI_DEPENDS.gmp+=    gmp>=4.1.3nb1
+BUILDLINK_API_DEPENDS.gmp+=            gmp>=4.2.1
+BUILDLINK_ABI_DEPENDS.gmp+=    gmp>=4.2.1
 BUILDLINK_PKGSRCDIR.gmp?=      ../../devel/gmp
 .endif # GMP_BUILDLINK3_MK
 
diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/distinfo
--- a/devel/gmp/distinfo        Sat Dec 09 02:29:31 2006 +0000
+++ b/devel/gmp/distinfo        Sat Dec 09 03:38:16 2006 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.17 2005/11/02 04:38:42 hiramatsu Exp $
+$NetBSD: distinfo,v 1.18 2006/12/09 03:38:16 jnemeth Exp $
 
-SHA1 (gmp-4.1.4.tar.bz2) = 21bf0e934fb31784487827f358e00077602145e7
-RMD160 (gmp-4.1.4.tar.bz2) = bde4d1f217606f79490372eed8356039b06d4aac
-Size (gmp-4.1.4.tar.bz2) = 1681267 bytes
-SHA1 (patch-aa) = 6e143257bd0ce6a99fa81fc2e2b4476c7be77077
-SHA1 (patch-ab) = 6c8eccf2c483018f7e1326899924d88554a39edf
-SHA1 (patch-ac) = f973bcbc916f16057e4a91adbb65a63f71944617
+SHA1 (gmp-4.2.1.tar.bz2) = 00a97f0ec1eb1d9429ab5c64be6889e8a497425e
+RMD160 (gmp-4.2.1.tar.bz2) = 831e02a36ac7b466857f8fafeffad7d51f7656e7
+Size (gmp-4.2.1.tar.bz2) = 1726453 bytes
+SHA1 (patch-aa) = a53db34c8ecf38d6556a59a0fa7382456c30fab6
diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/patches/patch-aa
--- a/devel/gmp/patches/patch-aa        Sat Dec 09 02:29:31 2006 +0000
+++ b/devel/gmp/patches/patch-aa        Sat Dec 09 03:38:16 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.10 2004/08/18 12:41:32 adam Exp $
+$NetBSD: patch-aa,v 1.11 2006/12/09 03:38:16 jnemeth Exp $
 
---- longlong.h.orig    2004-08-18 14:29:33.000000000 +0000
+--- longlong.h.orig    2006-12-08 17:56:28.000000000 -0800
 +++ longlong.h
-@@ -738,8 +738,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
+@@ -826,8 +826,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
     count is only an int. */
  #define count_trailing_zeros(count, x)                                        \
    do {                                                                        \
diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/patches/patch-ab
--- a/devel/gmp/patches/patch-ab        Sat Dec 09 02:29:31 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2005/03/15 15:51:30 wiz Exp $
-
---- gmp-impl.h.orig    2004-04-23 01:59:53.000000000 +0200
-+++ gmp-impl.h
-@@ -2466,7 +2466,8 @@ typedef unsigned int UHWtype;
- 
- /* Define ieee_double_extract and _GMP_IEEE_FLOATS.  */
- 
--#if (defined (__arm__) && (defined (__ARMWEL__) || defined (__linux__)))
-+#if (defined (__arm__) && !defined(__VFP_FP__) \
-+    && (defined (__ARMWEL__) || defined (__linux__)))
- /* Special case for little endian ARM since floats remain in big-endian.  */
- #define _GMP_IEEE_FLOATS 1
- union ieee_double_extract
-@@ -2483,6 +2484,7 @@ union ieee_double_extract
- #else
- #if defined (_LITTLE_ENDIAN) || defined (__LITTLE_ENDIAN__)           \
-  || defined (__alpha)                                                 \
-+ || (defined (__arm__) && defined (__VFP_FP__) && defined (__ARMEL__))        \
-  || defined (__clipper__)                                             \
-  || defined (__cris)                                                  \
-  || defined (__i386__)                                                        \
diff -r 0d19b96a8f36 -r 3dc104e4165c devel/gmp/patches/patch-ac
--- a/devel/gmp/patches/patch-ac        Sat Dec 09 02:29:31 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,391 +0,0 @@
-$NetBSD: patch-ac,v 1.5 2005/11/02 04:38:43 hiramatsu Exp $
-
---- configure.orig     Tue Sep 21 22:06:47 2004
-+++ configure  Wed Nov  2 09:15:07 2005
-@@ -2269,7 +2269,7 @@
- echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
- 
-     case $host in
--      mips64*-*-* | mips*-*-irix6789*)
-+      mips64*-*-* | mips*-*-irix6*)
-         abilist="n32 64 o32"
- 
-         cclist_n32="gcc cc"
-@@ -2844,14 +2844,14 @@
-   ac_status=$?
-   echo "$as_me:2845: \$? = $ac_status" >&5
-   (exit $ac_status); }; then
--  rm -f conftest*
-+  rm -rf conftest*
-   echo "$as_me:2848: checking whether $cc is gcc" >&5
- echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
-   echo "$as_me:2850: result: yes" >&5
- echo "${ECHO_T}yes" >&6
-   ccbase=gcc
- else
--  rm -f conftest*
-+  rm -rf conftest*
-   :
- fi
- 
-@@ -2941,7 +2941,7 @@
-     gmp_prog_cc_works=yes
-   fi
- fi
--rm -f conftest* a.out a.exe
-+rm -rf conftest* a.out a.exe
- echo "$as_me:2945: result: $gmp_prog_cc_works" >&5
- echo "${ECHO_T}$gmp_prog_cc_works" >&6
- if test $gmp_prog_cc_works = yes; then
-@@ -3037,7 +3037,7 @@
-     result=no
-   fi
- fi
--rm -f conftest.*
-+rm -rf conftest.*
- echo "$as_me:3041: result: $result" >&5
- echo "${ECHO_T}$result" >&6
- if test $result = yes; then
-@@ -3135,7 +3135,7 @@
-     fi
-   fi
-   cat conftest.out >&5
--  rm -f conftest* a.out
-+  rm -rf conftest* a.out
-   echo "$as_me:3139: result: $result" >&5
- echo "${ECHO_T}$result" >&6
-   if test "$result" = yes; then
-@@ -3168,7 +3168,7 @@
-   fi
- fi
- cat conftest.out >&5
--rm -f conftest*
-+rm -rf conftest*
- echo "$as_me:3172: result: $result" >&5
- echo "${ECHO_T}$result" >&6
- if test "$result" = yes; then
-@@ -3228,7 +3228,7 @@
-     gmp_prog_cc_works=yes
-   fi
- fi
--rm -f conftest* a.out a.exe
-+rm -rf conftest* a.out a.exe
- echo "$as_me:3232: result: $gmp_prog_cc_works" >&5
- echo "${ECHO_T}$gmp_prog_cc_works" >&6
- if test $gmp_prog_cc_works = yes; then
-@@ -3749,11 +3749,11 @@
-    { (exit 1); exit 1; }; }
- fi
- 
--rm -f conftest$ac_cv_exeext
-+rm -rf conftest$ac_cv_exeext
- echo "$as_me:3753: result: $ac_cv_exeext" >&5
- echo "${ECHO_T}$ac_cv_exeext" >&6
- 
--rm -f conftest.$ac_ext
-+rm -rf conftest.$ac_ext
- EXEEXT=$ac_cv_exeext
- ac_exeext=$EXEEXT
- echo "$as_me:3759: checking for object suffix" >&5
-@@ -3995,7 +3995,7 @@
- fi
- rm -f conftest.$ac_objext conftest.$ac_ext
- done
--rm -f conftest*
-+rm -rf conftest*
- if test -n "$ac_declaration"; then
-   echo '#ifdef __cplusplus' >>confdefs.h
-   echo $ac_declaration      >>confdefs.h
-@@ -4744,7 +4744,7 @@
- fi
- rm -f conftest.$ac_objext conftest.$ac_ext
- done
--rm -f conftest*
-+rm -rf conftest*
- if test -n "$ac_declaration"; then
-   echo '#ifdef __cplusplus' >>confdefs.h
-   echo $ac_declaration      >>confdefs.h
-@@ -4869,13 +4869,13 @@
-   ac_status=$?
-   echo "$as_me:4870: \$? = $ac_status" >&5
-   (exit $ac_status); }; then
--  rm -f conftest*
-+  rm -rf conftest*
-   echo "$as_me:4873: result: yes" >&5
- echo "${ECHO_T}yes" >&6
-   want_cxx=yes
-       break
- else
--  rm -f conftest*
-+  rm -rf conftest*
-   echo "$as_me:4879: result: no" >&5
- echo "${ECHO_T}no" >&6
-   :
-@@ -5119,7 +5119,7 @@
- else
-   add_path="cray/cfp"; extra_functions="mulwwc90"
- fi
--rm -f conftest*
-+rm -rf conftest*
-  ;;
-   j90 | sv1)
-     extra_functions="mulwwj90"
-@@ -5329,7 +5329,7 @@
- else
-   ac_cv_header_stdc=no
- fi
--rm -f conftest*
-+rm -rf conftest*
- 
- fi
- 
-@@ -5347,7 +5347,7 @@
- else
-   ac_cv_header_stdc=no
- fi
--rm -f conftest*
-+rm -rf conftest*
- 
- fi
- 
-@@ -5774,7 +5774,7 @@
-         fi
-       fi
-     done
--    rm -f conftest*
-+    rm -rf conftest*
-     if test -z "$gmp_cv_prog_host_cc"; then
-       { { echo "$as_me:5779: error: cannot find a build system compiler" >&5
- echo "$as_me: error: cannot find a build system compiler" >&2;}
-@@ -6835,7 +6835,7 @@
-   # Check to see that the pipe works correctly.
-   pipe_works=no
- 
--  rm -f conftest*
-+  rm -rf conftest*
-   cat > conftest.$ac_ext <<EOF
- #ifdef __cplusplus
- extern "C" {
-@@ -6932,7 +6932,7 @@
-     echo "$progname: failed program was:" >&5
-     cat conftest.$ac_ext >&5
-   fi
--  rm -f conftest* conftst*
-+  rm -rf conftest* conftst*
- 
-   # Do not use the global_symbol_pipe unless it works.
-   if test "$pipe_works" = yes; then
-@@ -16362,7 +16362,7 @@
-   cat conftest.s >&5
-   gmp_cv_asm_x86_mmx=no
- fi
--rm -f conftest*
-+rm -rf conftest*
- 
- fi
- echo "$as_me:16368: result: $gmp_cv_asm_x86_mmx" >&5
-@@ -16445,7 +16445,7 @@
-   cat conftest.s >&5
-   gmp_cv_asm_x86_sse2=no
- fi
--rm -f conftest*
-+rm -rf conftest*
- 
- fi
- echo "$as_me:16451: result: $gmp_cv_asm_x86_sse2" >&5
-@@ -16541,7 +16541,7 @@
- else
-   ac_cv_header_stdc=no
- fi
--rm -f conftest*
-+rm -rf conftest*
- 
- fi
- 
-@@ -16559,7 +16559,7 @@



Home | Main Index | Thread Index | Old Index