head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.8 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.6 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.4 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.2 pkgsrc-2011Q2-base:1.6 pkgsrc-2010Q2:1.5.0.12 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.10 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.8 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.6 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.4 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.2 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.4.0.16 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.14 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.12 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.10 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.8 pkgsrc-2008Q1:1.4.0.6 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.4 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.2 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.3.0.12 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.10 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.8 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.6 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.4 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.2 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.1.1.1.0.14 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.12 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.10 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.8 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.6 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.4 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.2 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2010.07.15.20.30.40; author asau; state dead; branches; next 1.5; 1.5 date 2009.03.19.11.54.53; author drochner; state Exp; branches; next 1.4; 1.4 date 2007.09.18.20.15.58; author drochner; state Exp; branches; next 1.3; 1.3 date 2006.03.24.10.35.29; author joerg; state Exp; branches; next 1.2; 1.2 date 2006.03.02.19.09.39; author drochner; state dead; branches; next 1.1; 1.1 date 2004.06.05.22.11.39; author rh; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.06.05.22.11.39; author rh; state Exp; branches; next ; desc @@ 1.6 log @Update MPFR to version 3.0.0. Contributed by Stathis Kamperis on IRC. Changes from versions 2.4.* to version 3.0.0: - The "boudin aux pommes" release. - MPFR 3.0.0 is binary incompatible with previous versions but (almost) API compatible. More precisely the obsolete functions mpfr_random and mpfr_random2 have been removed, the meaning of the return type of the function mpfr_get_f has changed, and the return type of the function mpfr_get_z is now int instead of void. In practice, this should not break any existing code. - MPFR is now distributed under the GNU Lesser General Public License version 3 or later (LGPL v3+). - Rounding modes GMP_RNDx are now MPFR_RNDx (GMP_RNDx kept for compatibility). - A new rounding mode (MPFR_RNDA) is available to round away from zero. - The rounding mode type is now mpfr_rnd_t (as in previous versions, both mpfr_rnd_t and mp_rnd_t are accepted, but mp_rnd_t may be removed in the future). - The precision type is now mpfr_prec_t (as in previous versions, both mpfr_prec_t and mp_prec_t are accepted, but mp_prec_t may be removed in the future) and it is now signed (it was unsigned in MPFR 2.*, but this was not documented). In practice, this change should not affect existing code that assumed nothing on the precision type. - MPFR now has its own exponent type mpfr_exp_t, which is currently the same as GMP's mp_exp_t. - Functions mpfr_random and mpfr_random2 have been removed. - mpfr_get_f and mpfr_get_z now return a ternary value. - mpfr_strtofr now accepts bases from 37 to 62. - mpfr_custom_get_mantissa was renamed to mpfr_custom_get_significand (mpfr_custom_get_mantissa is still available via a #define). - Functions mpfr_get_si, mpfr_get_ui, mpfr_get_sj, mpfr_get_uj, mpfr_get_z and mpfr_get_z_2exp no longer have cases with undefined behavior; in these cases, the behavior is now specified, and in particular, the erange flag is set. - New functions mpfr_buildopt_tls_p and mpfr_buildopt_decimal_p giving information about options used at MPFR build time. - New function mpfr_regular_p. - New function mpfr_set_zero. - New function mpfr_digamma. - New function mpfr_ai (incomplete, experimental). - New functions mpfr_set_flt and mpfr_get_flt to convert from/to the float type. - New function mpfr_urandom. - New function mpfr_set_z_2exp (companion to mpfr_get_z_2exp, which was renamed from mpfr_get_z_exp in previous versions). - Speed improvement for large operands in the trigonometric functions (mpfr_sin, mpfr_cos, mpfr_tan, mpfr_sin_cos): speedup of about 2.5 for 10^5 digits, of about 5 for 10^6 digits. - Speed improvement for large operands of the inverse trigonometric functions (arcsin, arccos, arctan): about 2 for 10^3 digits, up to 2.7 for 10^6 digits. - Some documentation files are installed in $docdir. - The detection of a GMP build directory (more precisely, the internal header files of GMP) was previously done separately from the use of the --with-gmp-build configure option. This was not consistent with the documentation and with other parts of the configure script. So, as of MPFR 3.0.0, the internal header files of GMP are now used if and only if the --with-gmp-build configure option is given. - The configure script recognizes some extra "long double" formats (double big endian, double little endian, double-double big endian). - MPFR manual: added "API Compatibility" section. - Test coverage: 97.1% lines of code. - Bug fixes. @ text @$NetBSD: patch-aa,v 1.5 2009/03/19 11:54:53 drochner Exp $ --- mpfr.h.orig 2009-03-18 19:16:07.000000000 +0100 +++ mpfr.h @@@@ -23,6 +23,10 @@@@ MA 02110-1301, USA. */ #ifndef __MPFR_H #define __MPFR_H +#ifdef HAVE_STDINT_H +#include +#endif + /* Define MPFR version number */ #define MPFR_VERSION_MAJOR 2 #define MPFR_VERSION_MINOR 4 @ 1.5 log @update to 2.4.1 changes: -Behavior of mpfr_check_range changed -Function mpfr_init_gmp_rand is no longer defined -New functions -Configure test for TLS support -Get default $CC and $CFLAGS from gmp.h -Security fix in mpfr_snprintf and mpfr_vsnprintf (buffer overflow) -Configure: new checks for length modifiers hh and ll (new in C99) -bugfixes -documentation fixes @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @update to 2.3.0 changes: -New functions mpfr_j0, mpfr_j1, mpfr_jn, mpfr_y0, mpfr_y1, mpfr_yn, mpfr_lgamma, mpfr_remainder, mpfr_remquo, mpfr_fms, mpfr_signbit, mpfr_setsign, mpfr_copysign, mpfr_get_patches -Functions mpfr_sin, mpfr_cos and mpfr_sin_cos improved -More detailed MPFR manual -Improved tests (make check) -Bug fixes @ text @d3 1 a3 1 --- mpfr.h.orig 2007-08-29 12:18:11.000000000 +0200 d15 1 a15 1 #define MPFR_VERSION_MINOR 3 @ 1.3 log @Fix DragonFly: include stdint.h. @ text @d3 1 a3 1 --- mpfr.h.orig 2006-03-24 10:17:08.000000000 +0000 d5 1 a5 1 @@@@ -22,6 +22,10 @@@@ MA 02110-1301, USA. */ d15 1 a15 1 #define MPFR_VERSION_MINOR 2 @ 1.2 log @update to 2.2.0 changes: -Bug fixes -New functions mpfr_set_overflow, mpfr_set_underflow, mpfr_set_inexflag, mpfr_set_erangeflag, mpfr_set_nanflag, mpfr_erfc, mpfr_atan2, mpfr_pow_z, mpfr_subnormalize, mpfr_const_catalan, mpfr_sec, mpfr_csc, mpfr_cot, mpfr_root, mpfr_eint, mpfr_get_f, mpfr_sech, mpfr_csch, mpfr_coth, mpfr_lngamma -New macro: MPFR_VERSION_STRING -The exported MPFR variables have been removed from mpfr.h -cleanup, speed improvement... @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2004/06/05 22:11:39 rh Exp $ d3 5 a7 13 --- ../gmp-4.1.2/longlong.h.orig 2002-12-18 07:57:20.000000000 +1000 +++ ../gmp-4.1.2/longlong.h @@@@ -715,8 +715,10 @@@@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( } while (0) #define count_trailing_zeros(count, x) \ do { \ + UDItype __cbtmp; \ ASSERT ((x) != 0); \ - __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x))); \ + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ + (count) = __cbtmp; \ } while (0) #endif /* x86_64 */ d9 7 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of mpfr-2.0.3, a library for multiple-precision floating-point computations @ text @@