[PATCH] Sunbug 7131192: Optimize BigInteger.doubleValue(), floatValue()

Andrew Haley aph at redhat.com
Thu Jul 12 10:21:15 UTC 2012

On 07/12/2012 10:32 AM, Louis Wasserman wrote:
> It was attached to the previous message?  I don't know if this list works
> with attachments.  Alternately, the patch was attached here:
> https://bugs.openjdk.java.net/show_bug.cgi?id=100222
> I'm not sure what you mean by double-rounding bugs, though.  It's
> not difficult to actually implement the HALF_EVEN rounding behavior
> with bit twiddling.

Sure, as long as you've thought about it and done it carefully.  The
bit twiddling is easy to do, and easy to get wrong.

>From the supplied patch it looks like you've done a good job, but
there was no way to tell without it.  I presume the listserv dropped
it on the floor.


More information about the core-libs-dev mailing list