Module Name:    src
Committed By:   martin
Date:           Wed Aug 21 13:03:56 UTC 2013

Modified Files:
        src/lib/libm/src: s_nexttoward.c

Log Message:
Add support for archs with LDBL_IMPLICIT_NBIT


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_nexttoward.c

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

Modified files:

Index: src/lib/libm/src/s_nexttoward.c
diff -u src/lib/libm/src/s_nexttoward.c:1.1 src/lib/libm/src/s_nexttoward.c:1.2
--- src/lib/libm/src/s_nexttoward.c:1.1	Wed Sep 15 16:12:05 2010
+++ src/lib/libm/src/s_nexttoward.c	Wed Aug 21 13:03:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_nexttoward.c,v 1.1 2010/09/15 16:12:05 christos Exp $	*/
+/*	$NetBSD: s_nexttoward.c,v 1.2 2013/08/21 13:03:56 martin Exp $	*/
 
 /* @(#)s_nextafter.c 5.1 93/09/24 */
 /*
@@ -13,7 +13,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nexttoward.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_nexttoward.c,v 1.2 2013/08/21 13:03:56 martin Exp $");
 
 /*
  * We assume that a long double has a 15-bit exponent.  On systems
@@ -30,6 +30,10 @@ __RCSID("$NetBSD: s_nexttoward.c,v 1.1 2
 #error "Unsupported long double format"
 #endif
 
+#ifdef LDBL_IMPLICIT_NBIT
+#define	LDBL_NBIT	0
+#endif
+
 /*
  * The nexttoward() function is equivalent to nextafter() function,
  * except that the second parameter shall have type long double and

Reply via email to