[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Define isnan explicitly in fdlibm
From: |
Guilhem Lavaux |
Subject: |
[cp-patches] FYI: Define isnan explicitly in fdlibm |
Date: |
Sat, 17 Dec 2005 21:43:53 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050322) |
Hi,
Here is a patch to define isnan explicitly as a macro if it is not
already defined. At the same it removes the symbol renaming in namespace.h.
Cheers,
Guilhem.
ChangeLog:
2005-12-17 Guilhem Lavaux <address@hidden>
* native/fdlibm/namespace.h: Regenerated.
* native/fdlibm/fdlibm.h
(isnan): Define explicitly isnan if it is not a macro.
* scripts/math_symbols: Removed isnan.
Index: native/fdlibm/fdlibm.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/fdlibm.h,v
retrieving revision 1.7
diff -u -r1.7 fdlibm.h
--- native/fdlibm/fdlibm.h 16 Dec 2005 21:11:23 -0000 1.7
+++ native/fdlibm/fdlibm.h 17 Dec 2005 20:41:52 -0000
@@ -95,7 +95,11 @@
extern double erfc __P((double));
extern double gamma __P((double));
extern double hypot __P((double, double));
-extern int isnan __P((double));
+
+#ifndef isnan
+#define isnan(x) ((x) != (x))
+#endif
+
extern int finite __P((double));
extern double j0 __P((double));
extern double j1 __P((double));
Index: native/fdlibm/namespace.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/namespace.h,v
retrieving revision 1.1
diff -u -r1.1 namespace.h
--- native/fdlibm/namespace.h 16 Dec 2005 21:11:23 -0000 1.1
+++ native/fdlibm/namespace.h 17 Dec 2005 20:41:52 -0000
@@ -23,7 +23,6 @@
#define erfc ClasspathMath_erfc
#define gamma ClasspathMath_gamma
#define hypot ClasspathMath_hypot
-#define isnan ClasspathMath_isnan
#define finite ClasspathMath_finite
#define j0 ClasspathMath_j0
#define j1 ClasspathMath_j1
Index: scripts/math_symbols
===================================================================
RCS file: /cvsroot/classpath/classpath/scripts/math_symbols,v
retrieving revision 1.1
diff -u -r1.1 math_symbols
--- scripts/math_symbols 16 Dec 2005 21:11:23 -0000 1.1
+++ scripts/math_symbols 17 Dec 2005 20:41:52 -0000
@@ -22,7 +22,6 @@
erfc
gamma
hypot
-isnan
finite
j0
j1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Define isnan explicitly in fdlibm,
Guilhem Lavaux <=