summaryrefslogtreecommitdiff
path: root/lib/libm/src
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-09-17 20:39:39 +0000
committerchristos <christos@NetBSD.org>2010-09-17 20:39:39 +0000
commit92da7545e1705ab879767a77792331f7ce651605 (patch)
treeee73f529ad1abee26fe106ada6ac818bad5ef898 /lib/libm/src
parentde41a05aef9111d5f775f9c7c60a1420cd9a0faa (diff)
don't compile long double support for the havenots.
Diffstat (limited to 'lib/libm/src')
-rw-r--r--lib/libm/src/s_copysignl.c6
-rw-r--r--lib/libm/src/s_fabsl.c6
-rw-r--r--lib/libm/src/s_nextafterl.c6
3 files changed, 12 insertions, 6 deletions
diff --git a/lib/libm/src/s_copysignl.c b/lib/libm/src/s_copysignl.c
index 66d9e6bcbb7..c347e1d536f 100644
--- a/lib/libm/src/s_copysignl.c
+++ b/lib/libm/src/s_copysignl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: s_copysignl.c,v 1.1 2010/09/15 16:12:05 christos Exp $ */
+/* $NetBSD: s_copysignl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: s_copysignl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_copysignl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
#include <math.h>
#include <machine/ieee.h>
@@ -35,6 +35,7 @@ __RCSID("$NetBSD: s_copysignl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
* copysignl(long double x, long double y)
* This function returns a value with the magnitude of x and the sign of y.
*/
+#ifdef EXT_EXP_INFNAN
long double
copysignl(long double x, long double y)
{
@@ -47,3 +48,4 @@ copysignl(long double x, long double y)
return (ux.extu_ld);
}
+#endif
diff --git a/lib/libm/src/s_fabsl.c b/lib/libm/src/s_fabsl.c
index 8833951e62b..b2c8cfc0178 100644
--- a/lib/libm/src/s_fabsl.c
+++ b/lib/libm/src/s_fabsl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: s_fabsl.c,v 1.1 2010/09/15 16:12:05 christos Exp $ */
+/* $NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fabsl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
#include <math.h>
#include <machine/ieee.h>
@@ -35,6 +35,7 @@ __RCSID("$NetBSD: s_fabsl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
* fabsl(long double x)
* This function returns the absolute value of its argumetn x, |x|.
*/
+#ifdef EXT_EXP_INFNAN
long double
fabsl(long double x)
{
@@ -45,3 +46,4 @@ fabsl(long double x)
return (ux.extu_ld);
}
+#endif
diff --git a/lib/libm/src/s_nextafterl.c b/lib/libm/src/s_nextafterl.c
index 9109da90d2f..87488e2f514 100644
--- a/lib/libm/src/s_nextafterl.c
+++ b/lib/libm/src/s_nextafterl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: s_nextafterl.c,v 1.1 2010/09/15 16:12:05 christos Exp $ */
+/* $NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
/* @(#)s_nextafter.c 5.1 93/09/24 */
/*
@@ -13,12 +13,13 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
#include <float.h>
#include <math.h>
#include <machine/ieee.h>
+#ifdef EXT_EXP_INFNAN
#if LDBL_MAX_EXP != 0x4000
#error "Unsupported long double format"
#endif
@@ -90,3 +91,4 @@ nextafterl(long double x, long double y)
return ux.extu_ld;
}
+#endif