Rounding differences between 1.8 and 1.7 (including -Xint mode).

Roland Westrelin roland.westrelin at oracle.com
Mon Jul 30 16:59:37 PDT 2012


> so the output is rounded. I don't fully understand the comment on Math.pow:
> 
> > The computed result must be within 1 ulp of the exact result.
> 
> so it's hard for me to tell if it's a bug or compliant, but different,
> implementation.

StrictMath.pow(0.35380219098726884, 0.2564102564102564) + Math.ulp(StrictMath.pow(0.35380219098726884, 0.2564102564102564)) == Math.pow(0.35380219098726884, 0.2564102564102564)

which means, I think, that the result is within 1 ulp of the exact
result. So that wouldn't be a bug.

Roland.


More information about the hotspot-compiler-dev mailing list