Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/src Make it compile on archs with implicit NBIT



details:   https://anonhg.NetBSD.org/src/rev/6c95af4f2d46
branches:  trunk
changeset: 791487:6c95af4f2d46
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Nov 20 21:12:30 2013 +0000

description:
Make it compile on archs with implicit NBIT

diffstat:

 lib/libm/src/e_sqrtl.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 173ae5d60981 -r 6c95af4f2d46 lib/libm/src/e_sqrtl.c
--- a/lib/libm/src/e_sqrtl.c    Wed Nov 20 18:13:16 2013 +0000
+++ b/lib/libm/src/e_sqrtl.c    Wed Nov 20 21:12:30 2013 +0000
@@ -28,7 +28,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/lib/msun/src/e_sqrtl.c 176720 2008-03-02 01:47:58Z das $");
 #endif
-__RCSID("$NetBSD: e_sqrtl.c,v 1.1 2013/11/19 19:24:34 joerg Exp $");
+__RCSID("$NetBSD: e_sqrtl.c,v 1.2 2013/11/20 21:12:30 martin Exp $");
 
 #include <machine/ieee.h>
 #include <fenv.h>
@@ -39,6 +39,10 @@
 
 #ifdef __HAVE_LONG_DOUBLE
 
+#ifdef LDBL_IMPLICIT_NBIT
+#define        LDBL_NBIT       0
+#endif
+
 /* Return (x + ulp) for normal positive x. Assumes no overflow. */
 static inline long double
 inc(long double x)



Home | Main Index | Thread Index | Old Index