math/mpcomplex: Update from version 0.9 to 1.0 Changes since version 0.9: - First release as a GNU package - License change: LGPLv3+ for code, GFDLv1.3+ (with no invariant sections) for documentation - 100% of all lines are covered by tests - Functions renamed: mpc_mul_2exp to mpc_mul_2ui, mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0) - Removed compatibility with K&R compilers, untestable due to lack of such compilers - New functions: mpc_log10, mpc_mul_2si, mpc_div_2si - Speed-ups: - mpc_fma - Bug fixes: - mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions - mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation - mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected - mpc_fr_sub: Wrong return value for imaginary part is correcteddiff -r1.3 -r1.4 pkgsrc/math/mpcomplex/Makefile
(marino)
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2011/09/14 17:14:09 hans Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2012/08/05 18:24:56 marino Exp $ | |
2 | 2 | |||
3 | DISTNAME= mpc-0.9 | 3 | DISTNAME= mpc-1.0 | |
4 | PKGNAME= mpcomplex-0.9 | 4 | PKGNAME= mpcomplex-1.0 | |
5 | CATEGORIES= math | 5 | CATEGORIES= math | |
6 | MASTER_SITES= http://www.multiprecision.org/mpc/download/ | 6 | MASTER_SITES= http://www.multiprecision.org/mpc/download/ | |
7 | 7 | |||
8 | MAINTAINER= MarkoSchuetz@web.de | 8 | MAINTAINER= MarkoSchuetz@web.de | |
9 | HOMEPAGE= http://www.multiprecision.org/mpc/ | 9 | HOMEPAGE= http://www.multiprecision.org/mpc/ | |
10 | COMMENT= Multiprecision complex arithmetic library | 10 | COMMENT= Multiprecision complex arithmetic library | |
11 | LICENSE= gnu-lgpl-v2.1 | 11 | LICENSE= gnu-lgpl-v3 | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 14 | |||
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | INFO_FILES= yes | 17 | INFO_FILES= yes | |
18 | 18 | |||
19 | TEST_TARGET= check | 19 | TEST_TARGET= check | |
20 | 20 | |||
21 | BUILDLINK_API_DEPENDS.gmp+= gmp>=4.3.2 | 21 | BUILDLINK_API_DEPENDS.gmp+= gmp>=4.3.2 | |
22 | .include "../../devel/gmp/buildlink3.mk" | 22 | .include "../../devel/gmp/buildlink3.mk" | |
23 | BUILDLINK_API_DEPENDS.mpfr+= mpfr>=2.4.2 | 23 | BUILDLINK_API_DEPENDS.mpfr+= mpfr>=2.4.2 | |
24 | .include "../../math/mpfr/buildlink3.mk" | 24 | .include "../../math/mpfr/buildlink3.mk" |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2011/10/13 13:22:46 hans Exp $ | 1 | $NetBSD: distinfo,v 1.4 2012/08/05 18:24:56 marino Exp $ | |
2 | 2 | |||
3 | SHA1 (mpc-0.9.tar.gz) = 229722d553030734d49731844abfef7617b64f1a | 3 | SHA1 (mpc-1.0.tar.gz) = 20af7cc481433c019285a2c1757ac65e244e1e06 | |
4 | RMD160 (mpc-0.9.tar.gz) = 63d5fb8ab2725839e7565716c4d20187b606e2c8 | 4 | RMD160 (mpc-1.0.tar.gz) = 9880676913b99537099617da7955028ccf99c878 | |
5 | Size (mpc-0.9.tar.gz) = 565953 bytes | 5 | Size (mpc-1.0.tar.gz) = 628311 bytes | |
6 | SHA1 (patch-src_get.c) = 439d4bb0dc8714b111787d21f8f14b8da5588fcd | 6 | SHA1 (patch-src_get.c) = 25495981765971c031b5a92dce098a44e53413c8 |
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | $NetBSD: patch-src_get.c,v 1.1 2011/10/13 13:22:46 hans Exp $ | 1 | $NetBSD: patch-src_get.c,v 1.2 2012/08/05 18:24:56 marino Exp $ | |
2 | 2 | |||
3 | --- src/get.c.orig 2011-01-26 09:47:17.000000000 +0100 | 3 | Work around bug in SunOS complex.h to make this build with Sun's gcc | |
4 | +++ src/get.c 2011-10-13 01:09:15.618498023 +0200 | 4 | ||
5 | @@ -28,6 +28,13 @@ MA 02111-1307, USA. */ | 5 | --- src/get_x.c.orig 2011-11-04 18:20:19.000000000 +0000 | |
6 | +++ src/get_x.c | |||
7 | @@ -35,6 +35,13 @@ along with this program. If not, see htt | |||
6 | #include "mpc-impl.h" | 8 | #include "mpc-impl.h" | |
7 | 9 | |||
8 | #if defined _MPC_H_HAVE_COMPLEX | 10 | #ifdef HAVE_COMPLEX_H | |
9 | + | 11 | + | |
10 | +#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I) | 12 | +#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I) | |
11 | +#undef I | 13 | +#undef I | |
12 | +#define I (__extension__ 1.0iF) | 14 | +#define I (__extension__ 1.0iF) | |
13 | + | 15 | + | |
14 | +#endif | 16 | +#endif | |
15 | + | 17 | + | |
16 | double _Complex | 18 | double _Complex | |
17 | mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) { | 19 | mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) { | |
18 | return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd)) | 20 | return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd)) |