natMath.cc (pow): Cast args to `double', not `jdouble'.
authorJeff Sturm <jsturm@sigma6.com>
Mon, 10 Jan 2000 20:02:47 +0000 (20:02 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 10 Jan 2000 20:02:47 +0000 (20:02 +0000)
2000-01-10  Jeff Sturm  <jsturm@sigma6.com>

* java/lang/natMath.cc (pow): Cast args to `double', not
`jdouble'.
(atan2): Likewise.
(IEEEremainder): Likewise.
* java/lang/mprec.h: Don't wrap includes in `extern "C"'.
* java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.

From-SVN: r31305

libjava/ChangeLog
libjava/java/lang/fdlibm.h
libjava/java/lang/mprec.h
libjava/java/lang/natMath.cc

index 945137812894324620df77efb1344417e766e491..fdd5fe1f612c501e23527d5664d202a1c7969f2c 100644 (file)
@@ -1,3 +1,12 @@
+2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
+
+       * java/lang/natMath.cc (pow): Cast args to `double', not
+       `jdouble'.
+       (atan2): Likewise.
+       (IEEEremainder): Likewise.
+       * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
+       * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
+
 2000-01-09  Anthony Green  <green@cygnus.com>
 
        * java/lang/natString.cc (init): Test for overflow condition
index 00d43e552384d3c12eacc56f8af87c8e17dfc4df..228208fedfd34211b561ae0e0b05c89e52938c21 100644 (file)
@@ -2,7 +2,7 @@
 /* @(#)fdlibm.h 5.1 93/09/24 */
 /*
  * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ * Copyright (C) 1993, 2000 by Sun Microsystems, Inc. All rights reserved.
  *
  * Developed at SunPro, a Sun Microsystems, Inc. business.
  * Permission to use, copy, modify, and distribute this
  */
 
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <config.h>
 #include <stdlib.h>
 
@@ -48,6 +44,10 @@ extern "C" {
 
 #define _IEEE_LIBM
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * ANSI/POSIX
  */
index fbfba4c3ba0b498b16c3302e49442260a6cd0ef6..61d9d50deade20e019a5b0819b25e30979099bf9 100644 (file)
@@ -2,7 +2,7 @@
  *
  * The author of this software is David M. Gay.
  *
- * Copyright (c) 1991 by AT&T.
+ * Copyright (c) 1991, 2000 by AT&T.
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose without fee is hereby granted, provided that this entire notice
        dmg@research.att.com or research!dmg
  */
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <config.h>
 #include "ieeefp.h"
 
@@ -51,6 +47,9 @@ extern "C" {
 #include <sys/config.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* ISO C9X int type declarations */
 
index bdfc9f9cd9eb9beb75d1a4e7f9d512ad20686c54..88c0f8d81fb2919ce9bed37df7d9cd9422b4273f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999  Cygnus Solutions
+/* Copyright (C) 1998, 1999, 2000  Cygnus Solutions
 
    This file is part of libgcj.
 
@@ -59,7 +59,7 @@ jdouble java::lang::Math::atan(jdouble x)
 
 jdouble java::lang::Math::atan2(jdouble y, jdouble x)
 {
-  return (jdouble)::atan2((jdouble)y, (jdouble)x);
+  return (jdouble)::atan2((double)y, (double)x);
 }  
 
 jdouble java::lang::Math::log(jdouble x)
@@ -79,12 +79,12 @@ jdouble java::lang::Math::sqrt(jdouble x)
 
 jdouble java::lang::Math::pow(jdouble y, jdouble x)
 {
-  return (jdouble)::pow((jdouble)y, (jdouble)x);
+  return (jdouble)::pow((double)y, (double)x);
 }  
 
 jdouble java::lang::Math::IEEEremainder(jdouble y, jdouble x)
 {
-  return (jdouble)::__ieee754_remainder((jdouble)y, (jdouble)x);
+  return (jdouble)::__ieee754_remainder((double)y, (double)x);
 }  
 
 jdouble java::lang::Math::abs(jdouble x)