Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/src Deal with an implicit NBIT
details: https://anonhg.NetBSD.org/src/rev/8dbc99de9b97
branches: trunk
changeset: 784926:8dbc99de9b97
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 14 08:56:56 2013 +0000
description:
Deal with an implicit NBIT
diffstat:
lib/libm/src/s_nextafterl.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 77daf2ad50a9 -r 8dbc99de9b97 lib/libm/src/s_nextafterl.c
--- a/lib/libm/src/s_nextafterl.c Thu Feb 14 08:56:21 2013 +0000
+++ b/lib/libm/src/s_nextafterl.c Thu Feb 14 08:56:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
+/* $NetBSD: s_nextafterl.c,v 1.3 2013/02/14 08:56:56 matt Exp $ */
/* @(#)s_nextafter.c 5.1 93/09/24 */
/*
@@ -13,7 +13,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.3 2013/02/14 08:56:56 matt Exp $");
#include <float.h>
#include <math.h>
@@ -24,6 +24,10 @@
#error "Unsupported long double format"
#endif
+#ifdef LDBL_IMPLICIT_NBIT
+#define LDBL_NBIT 0
+#endif
+
/*
* IEEE functions
* nextafterl(x,y)
@@ -83,7 +87,9 @@
return x+x; /* overflow */
if (ux.extu_exp == 0) { /* underflow */
+#ifndef LDBL_IMPLICIT_NBIT
mask_nbit_l(ux);
+#endif
t = ux.extu_ld * ux.extu_ld;
if (t != ux.extu_ld) /* raise underflow flag */
return ux.extu_ld;
Home |
Main Index |
Thread Index |
Old Index