Module Name:    src
Committed By:   mrg
Date:           Tue Sep  4 05:16:25 UTC 2018

Modified Files:
        src/external/lgpl3/mpc/lib/libmpc: Makefile config.h
        src/external/lgpl3/mpfr/lib/libmpfr: Makefile

Log Message:
build new libmpc and libmpfr files.  define endianness as needed.
remove odd sort of duplicated SRCS list for mpfr.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/mpc/lib/libmpc/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/mpc/lib/libmpc/config.h
cvs rdiff -u -r1.17 -r1.18 src/external/lgpl3/mpfr/lib/libmpfr/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/mpc/lib/libmpc/Makefile
diff -u src/external/lgpl3/mpc/lib/libmpc/Makefile:1.3 src/external/lgpl3/mpc/lib/libmpc/Makefile:1.4
--- src/external/lgpl3/mpc/lib/libmpc/Makefile:1.3	Tue Aug 22 09:17:50 2017
+++ src/external/lgpl3/mpc/lib/libmpc/Makefile	Tue Sep  4 05:16:25 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2017/08/22 09:17:50 mrg Exp $
+#	$NetBSD: Makefile,v 1.4 2018/09/04 05:16:25 mrg Exp $
 
 .include <bsd.init.mk>
 
@@ -30,6 +30,7 @@ SRCS=	\
 	atanh.c \
 	clear.c \
 	cmp.c \
+	cmp_abs.c \
 	cmp_si_si.c \
 	conj.c \
 	cos.c \
@@ -73,6 +74,7 @@ SRCS=	\
 	pow_z.c \
 	proj.c \
 	real.c \
+	rootofunity.c \
 	urandom.c \
 	set.c \
 	set_prec.c \

Index: src/external/lgpl3/mpc/lib/libmpc/config.h
diff -u src/external/lgpl3/mpc/lib/libmpc/config.h:1.1 src/external/lgpl3/mpc/lib/libmpc/config.h:1.2
--- src/external/lgpl3/mpc/lib/libmpc/config.h:1.1	Thu Nov 28 10:57:30 2013
+++ src/external/lgpl3/mpc/lib/libmpc/config.h	Tue Sep  4 05:16:25 2018
@@ -13,6 +13,9 @@
 /* Define to 1 if you have the `dup2' function. */
 #define HAVE_DUP2 1
 
+/* Define to 1 if you have the `getrusage' function. */
+#define HAVE_GETRUSAGE 1
+
 /* Define to 1 if you have the `gettimeofday' function. */
 #define HAVE_GETTIMEOFDAY 1
 
@@ -37,6 +40,9 @@
 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1
 
+/* mpfr_fmma is not present */
+#define HAVE_MPFR_FMMA 1
+
 /* Define to 1 if you have the `setlocale' function. */
 #define HAVE_SETLOCALE 1
 
@@ -52,6 +58,9 @@
 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1
 
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#define HAVE_SYS_RESOURCE_H 1
+
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #define HAVE_SYS_STAT_H 1
 
@@ -64,8 +73,7 @@
 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1
 
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
+/* Define to the sub-directory where libtool stores uninstalled libraries. */
 #define LT_OBJDIR ".libs/"
 
 /* C compiler */
@@ -75,7 +83,7 @@
 #define MPC_GCC "yes"
 
 /* Version of gcc */
-#define MPC_GCC_VERSION "4.5.3"
+#define MPC_GCC_VERSION "5.5.0"
 
 /* Do not check mpc_out_str on stdout */
 /* #undef MPC_NO_STREAM_REDIRECTION */
@@ -93,7 +101,7 @@
 #define PACKAGE_NAME "mpc"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "mpc 1.0.1"
+#define PACKAGE_STRING "mpc 1.1.0"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "mpc"
@@ -102,7 +110,7 @@
 #define PACKAGE_URL ""
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "1.0.1"
+#define PACKAGE_VERSION "1.1.0"
 
 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1
@@ -111,7 +119,7 @@
 #define TIME_WITH_SYS_TIME 1
 
 /* Version number of package */
-#define VERSION "1.0.1"
+#define VERSION "1.1.0"
 
 /* Define to empty if `const' does not conform to ANSI C. */
 /* #undef const */

Index: src/external/lgpl3/mpfr/lib/libmpfr/Makefile
diff -u src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.17 src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.18
--- src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.17	Tue Aug 22 09:17:50 2017
+++ src/external/lgpl3/mpfr/lib/libmpfr/Makefile	Tue Sep  4 05:16:25 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2017/08/22 09:17:50 mrg Exp $
+#	$NetBSD: Makefile,v 1.18 2018/09/04 05:16:25 mrg Exp $
 
 .include <bsd.init.mk>
 
@@ -34,6 +34,7 @@ SRCS=	\
 	atan2.c \
 	atanh.c \
 	bernoulli.c \
+	beta.c \
 	buildopt.c \
 	cache.c \
 	cbrt.c \
@@ -75,12 +76,14 @@ SRCS=	\
 	eq.c \
 	erf.c \
 	erfc.c \
+	exceptions.c \
 	exp.c \
 	exp10.c \
 	exp2.c \
 	exp3.c \
 	exp_2.c \
 	expm1.c \
+	extract.c \
 	factorial.c \
 	fits_intmax.c \
 	fits_sint.c \
@@ -91,11 +94,14 @@ SRCS=	\
 	fits_ulong.c \
 	fits_ushort.c \
 	fma.c \
+	fmma.c \
 	fms.c \
+	fpif.c \
 	frac.c \
 	free_cache.c \
 	frexp.c \
 	gamma.c \
+	gamma_inc.c \
 	gammaonethird.c \
 	get_d.c \
 	get_d64.c \
@@ -104,6 +110,7 @@ SRCS=	\
 	get_flt.c \
 	get_ld.c \
 	get_patches.c \
+	get_q.c \
 	get_si.c \
 	get_sj.c \
 	get_str.c \
@@ -134,6 +141,7 @@ SRCS=	\
 	log10.c \
 	log1p.c \
 	log2.c \
+	log_ui.c \
 	logging.c \
 	min_prec.c \
 	minmax.c \
@@ -150,7 +158,10 @@ SRCS=	\
 	mulders.c \
 	neg.c \
 	next.c \
+	nrandom.c \
+	odd_p.c \
 	out_str.c \
+	pool.c \
 	pow.c \
 	pow_si.c \
 	pow_ui.c \
@@ -159,10 +170,12 @@ SRCS=	\
 	print_raw.c \
 	print_rnd_mode.c \
 	printf.c \
+	random_deviate.c \
 	rec_sqrt.c \
 	reldiff.c \
 	rem1.c \
 	rint.c \
+	rndna.c \
 	root.c \
 	round_near_x.c \
 	round_p.c \
@@ -176,6 +189,7 @@ SRCS=	\
 	set_dfl_prec.c \
 	set_exp.c \
 	set_f.c \
+	set_float128.c \
 	set_flt.c \
 	set_inf.c \
 	set_ld.c \
@@ -220,6 +234,8 @@ SRCS=	\
 	swap.c \
 	tan.c \
 	tanh.c \
+	ubf.c \
+	uceil_exp2.c \
 	uceil_log2.c \
 	ufloor_log2.c \
 	ui_div.c \
@@ -235,224 +251,8 @@ SRCS=	\
 	zeta.c \
 	zeta_ui.c
 
-SRCS+=	\
-	exceptions.c \
-	extract.c \
-	uceil_exp2.c \
-	uceil_log2.c \
-	ufloor_log2.c \
-	add.c \
-	add1.c \
-	add_ui.c \
-	agm.c \
-	clear.c \
-	cmp.c \
-	cmp_abs.c \
-	cmp_si.c \
-	cmp_ui.c \
-	comparisons.c \
-	div_2exp.c \
-	div_2si.c \
-	div_2ui.c \
-	div.c \
-	div_ui.c \
-	dump.c \
-	eq.c \
-	exp10.c \
-	exp2.c \
-	exp3.c \
-	exp.c \
-	frac.c \
-	get_d.c \
-	get_exp.c \
-	get_str.c \
-	init.c \
-	inp_str.c \
-	isinteger.c \
-	isinf.c \
-	isnan.c \
-	isnum.c \
-	const_log2.c \
-	log.c \
-	modf.c \
-	mul_2exp.c \
-	mul_2si.c \
-	mul_2ui.c \
-	mul.c \
-	mul_ui.c \
-	neg.c \
-	next.c \
-	out_str.c \
-	printf.c \
-	vasprintf.c \
-	const_pi.c \
-	pow.c \
-	pow_si.c \
-	pow_ui.c \
-	print_raw.c \
-	print_rnd_mode.c \
-	reldiff.c \
-	round_prec.c \
-	set.c \
-	setmax.c \
-	setmin.c \
-	set_d.c \
-	set_dfl_prec.c \
-	set_exp.c \
-	set_rnd.c \
-	set_f.c \
-	set_prc_raw.c \
-	set_prec.c \
-	set_q.c \
-	set_si.c \
-	set_str.c \
-	set_str_raw.c \
-	set_ui.c \
-	set_z.c \
-	sqrt.c \
-	sqrt_ui.c \
-	sub.c \
-	sub1.c \
-	sub_ui.c \
-	rint.c \
-	ui_div.c \
-	ui_sub.c \
-	urandom.c \
-	urandomb.c \
-	get_z_exp.c \
-	swap.c \
-	factorial.c \
-	cosh.c \
-	sinh.c \
-	tanh.c \
-	sinh_cosh.c \
-	acosh.c \
-	asinh.c \
-	atanh.c \
-	atan.c \
-	cmp2.c \
-	exp_2.c \
-	asin.c \
-	const_euler.c \
-	cos.c \
-	sin.c \
-	tan.c \
-	fma.c \
-	fms.c \
-	hypot.c \
-	log1p.c \
-	expm1.c \
-	log2.c \
-	log10.c \
-	ui_pow.c \
-	ui_pow_ui.c \
-	minmax.c \
-	dim.c \
-	signbit.c \
-	copysign.c \
-	setsign.c \
-	gmp_op.c \
-	init2.c \
-	acos.c \
-	sin_cos.c \
-	set_nan.c \
-	set_inf.c \
-	set_zero.c \
-	powerof2.c \
-	gamma.c \
-	set_ld.c \
-	get_ld.c \
-	cbrt.c \
-	volatile.c \
-	fits_sshort.c \
-	fits_sint.c \
-	fits_slong.c \
-	fits_ushort.c \
-	fits_uint.c \
-	fits_ulong.c \
-	fits_uintmax.c \
-	fits_intmax.c \
-	get_si.c \
-	get_ui.c \
-	zeta.c \
-	cmp_d.c \
-	erf.c \
-	inits.c \
-	inits2.c \
-	clears.c \
-	sgn.c \
-	check.c \
-	sub1sp.c \
-	version.c \
-	mpn_exp.c \
-	mpfr-gmp.c \
-	mp_clz_tab.c \
-	sum.c \
-	add1sp.c \
-	free_cache.c \
-	si_op.c \
-	cmp_ld.c \
-	set_ui_2exp.c \
-	set_si_2exp.c \
-	set_uj.c \
-	set_sj.c \
-	get_sj.c \
-	get_uj.c \
-	get_z.c \
-	iszero.c \
-	cache.c \
-	sqr.c \
-	int_ceil_log2.c \
-	isqrt.c \
-	strtofr.c \
-	pow_z.c \
-	logging.c \
-	mulders.c \
-	get_f.c \
-	round_p.c \
-	erfc.c \
-	atan2.c \
-	subnormal.c \
-	const_catalan.c \
-	root.c \
-	sec.c \
-	csc.c \
-	cot.c \
-	eint.c \
-	sech.c \
-	csch.c \
-	coth.c \
-	round_near_x.c \
-	constant.c \
-	abort_prec_max.c \
-	stack_interface.c \
-	lngamma.c \
-	zeta_ui.c \
-	set_d64.c \
-	get_d64.c \
-	jn.c \
-	yn.c \
-	rem1.c \
-	get_patches.c \
-	add_d.c \
-	sub_d.c \
-	d_sub.c \
-	mul_d.c \
-	div_d.c \
-	d_div.c \
-	li2.c \
-	rec_sqrt.c \
-	min_prec.c \
-	buildopt.c \
-	digamma.c \
-	bernoulli.c \
-	isregular.c \
-	set_flt.c \
-	get_flt.c \
-	scale2.c \
-	set_z_exp.c \
-	ai.c \
-	gammaonethird.c
+# not yet
+# float128.c
 
 CPPFLAGS+=	-I. \
 		-DHAVE_INTTYPES_H=1 \
@@ -506,6 +306,17 @@ CPPFLAGS+=	-DHAVE_LDOUBLE_IEEE_QUAD_LITT
 CPPFLAGS+=	-DHAVE_LDOUBLE_IEEE_QUAD_BIG=1
 .endif
 
+.include <bsd.endian.mk>
+
+.if ${TARGET_ENDIANNESS} == "1234"
+CPPFLAGS+=	-DHAVE_DOUBLE_IEEE_LITTLE_ENDIAN=1
+CPPFLAGS+=	-DHAVE_BIG_ENDIAN=1
+.elif ${TARGET_ENDIANNESS} == "4321"
+CPPFLAGS+=	-DHAVE_DOUBLE_IEEE_BIG_ENDIAN=1
+CPPFLAGS+=	-DHAVE_LITTLE_ENDIAN=1
+.endif
+
+
 WITHOUT_MAN=	yes
 
 .include <bsd.lib.mk>

Reply via email to