mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-06 19:14:01 +08:00
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:
parent
b1e9c8a926
commit
0cf69affdd
@ -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>
|
2000-01-09 Anthony Green <green@cygnus.com>
|
||||||
|
|
||||||
* java/lang/natString.cc (init): Test for overflow condition
|
* java/lang/natString.cc (init): Test for overflow condition
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/* @(#)fdlibm.h 5.1 93/09/24 */
|
/* @(#)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.
|
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
||||||
* Permission to use, copy, modify, and distribute this
|
* Permission to use, copy, modify, and distribute this
|
||||||
@ -12,10 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -48,6 +44,10 @@ extern "C" {
|
|||||||
|
|
||||||
#define _IEEE_LIBM
|
#define _IEEE_LIBM
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ANSI/POSIX
|
* ANSI/POSIX
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* The author of this software is David M. Gay.
|
* 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
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose without fee is hereby granted, provided that this entire notice
|
* purpose without fee is hereby granted, provided that this entire notice
|
||||||
@ -26,10 +26,6 @@
|
|||||||
dmg@research.att.com or research!dmg
|
dmg@research.att.com or research!dmg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "ieeefp.h"
|
#include "ieeefp.h"
|
||||||
|
|
||||||
@ -51,6 +47,9 @@ extern "C" {
|
|||||||
#include <sys/config.h>
|
#include <sys/config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ISO C9X int type declarations */
|
/* ISO C9X int type declarations */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1998, 1999 Cygnus Solutions
|
/* Copyright (C) 1998, 1999, 2000 Cygnus Solutions
|
||||||
|
|
||||||
This file is part of libgcj.
|
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)
|
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)
|
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)
|
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)
|
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)
|
jdouble java::lang::Math::abs(jdouble x)
|
||||||
|
Loading…
Reference in New Issue
Block a user