summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-03-06 16:53:38 +0000
committerMark Wielaard <mark@klomp.org>2006-03-06 16:53:38 +0000
commit2ee86888adc7c14ef6583b0d478388270196e593 (patch)
treeb550fa353d6e694c18839ca8795313c65be1f688
parent3ce4ec1c16fffe1daffdf502286f8d50654c9951 (diff)
downloadclasspath-2ee86888adc7c14ef6583b0d478388270196e593.tar.gz
Fixes bug #26568 reported by Paul Jenner <psj@harker.dyndns.org>
* native/fdlibm/fdlibm.h (__ieee754_rem_pio2): Return an int32_t. (isnan): Define explicitly isnan if it is not a macro.
-rw-r--r--ChangeLog6
-rw-r--r--native/fdlibm/fdlibm.h8
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3dd2d7883..8f376e010 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-06 Mark Wielaard <mark@klomp.org>
+
+ Fixes bug #26568 reported by Paul Jenner <psj@harker.dyndns.org>
+ * native/fdlibm/fdlibm.h (__ieee754_rem_pio2): Return an int32_t.
+ (isnan): Define explicitly isnan if it is not a macro.
+
2006-03-06 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/text/GapContent.java:
diff --git a/native/fdlibm/fdlibm.h b/native/fdlibm/fdlibm.h
index 3bfa1bbe1..5dbcdb523 100644
--- a/native/fdlibm/fdlibm.h
+++ b/native/fdlibm/fdlibm.h
@@ -157,7 +157,11 @@ extern double erf __P((double));
extern double erfc __P((double));
extern double gamma __P((double));
extern double hypot __P((double, double));
-extern int isnan __P((double));
+
+#if !defined(isnan) && !defined(HAVE_ISNAN)
+#define isnan(x) ((x) != (x))
+#endif
+
extern int finite __P((double));
extern double j0 __P((double));
extern double j1 __P((double));
@@ -236,7 +240,7 @@ extern double __ieee754_y1 __P((double));
extern double __ieee754_jn __P((int,double));
extern double __ieee754_yn __P((int,double));
extern double __ieee754_remainder __P((double,double));
-extern int __ieee754_rem_pio2 __P((double,double*));
+extern int32_t __ieee754_rem_pio2 __P((double,double*));
#ifdef _SCALB_INT
extern double __ieee754_scalb __P((double,int));
#else