Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/src Add support for archs with LDBL_IMPLICIT_NBIT
details: https://anonhg.NetBSD.org/src/rev/85ca765dcce4
branches: trunk
changeset: 789533:85ca765dcce4
user: martin <martin%NetBSD.org@localhost>
date: Wed Aug 21 13:03:56 2013 +0000
description:
Add support for archs with LDBL_IMPLICIT_NBIT
diffstat:
lib/libm/src/s_nexttoward.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r de939a8495f9 -r 85ca765dcce4 lib/libm/src/s_nexttoward.c
--- a/lib/libm/src/s_nexttoward.c Wed Aug 21 08:30:50 2013 +0000
+++ b/lib/libm/src/s_nexttoward.c Wed Aug 21 13:03:56 2013 +0000
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index