natMath.cc (pow): Cast args to double', not jdouble'.

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
This commit is contained in:
Jeff Sturm
2000-01-10 20:02:47 +00:00
committed by Tom Tromey
parent b1e9c8a926
commit 0cf69affdd
4 changed files with 22 additions and 14 deletions
+4 -4
View 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)