Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Define FP_ILOGB0 and FP_ILOGBNAN
details: https://anonhg.NetBSD.org/src/rev/42f51ace3b63
branches: trunk
changeset: 784799:42f51ace3b63
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 09 22:56:20 2013 +0000
description:
Define FP_ILOGB0 and FP_ILOGBNAN
diffstat:
include/math.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 11c2c310c6e2 -r 42f51ace3b63 include/math.h
--- a/include/math.h Sat Feb 09 22:56:00 2013 +0000
+++ b/include/math.h Sat Feb 09 22:56:20 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: math.h,v 1.59 2013/01/28 23:19:28 matt Exp $ */
+/* $NetBSD: math.h,v 1.60 2013/02/09 22:56:20 matt Exp $ */
/*
* ====================================================
@@ -38,6 +38,7 @@
#include <machine/math.h> /* may use __float_u, __double_u,
or __long_double_u */
+#include <limits.h> /* for INT_{MIN,MAX} */
#ifdef __HAVE_LONG_DOUBLE
#define __fpmacro_unary_floating(__name, __arg0) \
@@ -116,6 +117,9 @@
#define _FP_LOMD 0x80 /* range for machine-specific classes */
#define _FP_HIMD 0xff
+#define FP_ILOGB0 INT_MIN
+#define FP_ILOGBNAN INT_MIN
+
#endif /* !_ANSI_SOURCE && ... */
/*
Home |
Main Index |
Thread Index |
Old Index