changeset 12:41256afcdc09

Add nexttoward to libm
author Andrew Stormont <andyjstormont@gmail.com>
date Wed, 29 Feb 2012 23:27:16 +0000
parents f427da4b677f
children f60a82e85167
files usr/src/lib/libm/arm/Makefile usr/src/lib/libm/arm/mapfile-common usr/src/lib/libm/arm/mapfile-vers usr/src/lib/libm/common/C/libm_protos.h usr/src/lib/libm/common/m9x/nexttoward.c
diffstat 5 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libm/arm/Makefile	Wed Feb 29 07:28:38 2012 +0000
+++ b/usr/src/lib/libm/arm/Makefile	Wed Feb 29 23:27:16 2012 +0000
@@ -143,6 +143,7 @@
 	logbl.o		\
 	logl.o		\
 	nextafterl.o	\
+	nexttowardl.o	\
 	remainderl.o	\
 	rintl.o		\
 	rndintl.o	\
@@ -201,6 +202,7 @@
 	logbf.o		\
 	logf.o		\
 	nextafterf.o	\
+	nexttowardf.o	\
 	powf.o		\
 	remainderf.o	\
 	rintf.o		\
@@ -225,6 +227,7 @@
 	ilogb.o		\
 	isnan.o		\
 	nextafter.o	\
+	nexttoward.o	\
 	remainder.o	\
 	rint.o		\
 	scalbn.o
--- a/usr/src/lib/libm/arm/mapfile-common	Wed Feb 29 07:28:38 2012 +0000
+++ b/usr/src/lib/libm/arm/mapfile-common	Wed Feb 29 23:27:16 2012 +0000
@@ -123,6 +123,7 @@
 		__log1p;
 		__logb;
 		__nextafter;
+		__nexttoward;
 		__pow;
 		__remainder;
 		__rint;
@@ -173,6 +174,7 @@
 		logb;
 		matherr;
 		nextafter;
+		nexttoward;
 		pow;
 		remainder;
 		rint;
--- a/usr/src/lib/libm/arm/mapfile-vers	Wed Feb 29 07:28:38 2012 +0000
+++ b/usr/src/lib/libm/arm/mapfile-vers	Wed Feb 29 23:27:16 2012 +0000
@@ -54,6 +54,7 @@
 		_modf;				#LSARC/2003/658
 		_modff;				#LSARC/2003/658
 		_nextafter;			#LSARC/2003/658
+		_nexttoward;			#LSARC/2003/658
 		_scalb;				#LSARC/2003/658
 		isnand;				#LSARC/2003/658
 		isnanf;				#LSARC/2003/658
@@ -130,6 +131,8 @@
 		__modf;
 		__nextafterf;
 		__nextafterl;
+		__nexttowardf;
+		__nexttowardl;
 		__remainderf;
 		__remainderl;
 		__rintf;
@@ -254,6 +257,8 @@
 		modfl;
 		nextafterf;
 		nextafterl;
+		nexttowardf;
+		nexttowardl;
 		powf;
 		powl;
 		remainderf;
@@ -379,6 +384,7 @@
 		__log1p;
 		__logb;
 		__nextafter;
+		__nexttoward;
 		__pow;
 		__remainder;
 		__rint;
@@ -429,6 +435,7 @@
 		logb;
 		matherr;
 		nextafter;
+		nexttoward;
 		pow;
 		remainder;
 		rint;
--- a/usr/src/lib/libm/common/C/libm_protos.h	Wed Feb 29 07:28:38 2012 +0000
+++ b/usr/src/lib/libm/common/C/libm_protos.h	Wed Feb 29 23:27:16 2012 +0000
@@ -120,6 +120,13 @@
 #define	__P(p)	()
 #endif
 
+#ifdef LIBM_BUILD
+/*
+ * Aliases for compiler builtins usually supplied by <math.h>
+ */
+#define	isunordered(x, y)	__builtin_isunordered(x, y)
+#endif
+
 #include <sys/ieeefp.h>
 
 extern double _SVID_libm_err __P((double, double, int));
--- a/usr/src/lib/libm/common/m9x/nexttoward.c	Wed Feb 29 07:28:38 2012 +0000
+++ b/usr/src/lib/libm/common/m9x/nexttoward.c	Wed Feb 29 23:27:16 2012 +0000
@@ -32,6 +32,7 @@
 
 #if defined(ELFOBJ)
 #pragma weak nexttoward = __nexttoward
+#pragma weak _nexttoward = __nexttoward
 #endif
 
 /*