Did Double.doubleToLongBits() get removed?

119 views
Skip to first unread message

Dennis

unread,
Mar 31, 2010, 8:49:53 AM3/31/10
to Google Web Toolkit Contributors
Hi,

in http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/a5193c6a82eddb5e/ba5dbb35ecc0f512
Ray Cromwell submitted an implementation for (amongst others)
Double.doubleToLongBits().

I can't find this in the current gwt 2.0.3 - has this been removed at
some point?


thanks,

Dennis

Ray Cromwell

unread,
Apr 2, 2010, 2:09:29 PM4/2/10
to google-web-tool...@googlegroups.com
It looks like it did, maybe it failed a testcase. There's an alternate
implementation in GwtQuake
(http://code.google.com/p/quake2-gwt-port/source/browse/src/com/google/gwt/corp/compatibility/Numbers.java).
I'll look at getting these back in in the future.
-Ray

> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> To unsubscribe, reply using "remove me" as the subject.
>

John Tamplin

unread,
Apr 2, 2010, 2:35:12 PM4/2/10
to google-web-tool...@googlegroups.com
It wasn't ever included, apparently because it wasn't totally stable across browsers. 

--
John A. Tamplin
Software Engineer (GWT), Google

Joel Webber

unread,
Apr 2, 2010, 2:40:48 PM4/2/10
to google-web-tool...@googlegroups.com
The Quake code has only ever been tested on WebKit (Nitro & V8), so I would check it carefully before using. float/doubleToLongBits() in Javascript is a truly, truly foul piece of work that is horrifically inefficient. Use with caution.


Reply all
Reply to author
Forward
0 new messages