Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 18:10:49 -0500
From:      Alexander Kabaev <ak03@gte.com>
To:        Huang wen hui <hwh@gddsn.org.cn>
Cc:        java@FreeBSD.ORG
Subject:   Re: Math.pow bug for jdk1.3.1-p8 ?
Message-ID:  <20030214181049.470647be.ak03@gte.com>
In-Reply-To: <3E4C9DDD.4040204@gddsn.org.cn>
References:  <3E4C9DDD.4040204@gddsn.org.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
What GCC have you used to compile jdk? GCC 3.2.1 from ports had an ABI
bug in it which might have the symptoms you are describing. Update your
GCC to the latest 3.2.2 version.

On Fri, 14 Feb 2003 15:42:21 +0800
Huang wen hui <hwh@gddsn.org.cn> wrote:

> hi,
> I build jdk1.3.1-p8 for 4.7-STABLE(today), Math.pow return wrong value
> if using the following example:
> 
> 
> public class TestPow {
> public static void main(String[] args) {
> int exp =9;
> int i = (int)Math.pow(2.0,(double)exp);
> System.out.println("i="+i);
> }
> }
> 
> ----------output------------
> %java TestPow
> i=0
> 
> 
> jdk1.4.1-p2 and jdk1.3.1-p7 do not have this problem.
> 
> --hwh
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message


-- 
Alexander Kabaev

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030214181049.470647be.ak03>