This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: floatToRawIntBits, doubleToRawLongBits, + cleanups.
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: floatToRawIntBits, doubleToRawLongBits, + cleanups.
- From: Tom Tromey <tromey at redhat dot com>
- Date: 08 Feb 2001 23:45:36 -0700
- Cc: java-patches at gcc dot gnu dot org
- References: <3A835DA3.51E9FF46@albatross.co.nz>
- Reply-To: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
Bryce> We were missing the Float.floatToRawIntBits and
Bryce> Double.doubleToRawLongBits methods; this patch adds
Bryce> them. Presumably these are supposed to be different to their
Bryce> non-raw counterparts somehow, but I can't figure out how. The
Bryce> JDK seems to return the same values for all the inputs I've
Bryce> tried, including NaN.
There are multiple NaN representations. doubleToLongBits always
returns a fixed value for any NaN, but doubleToRawLongBits returns the
actual NaN value. The 1.3 online docs support this.
Tom