Ian Rogers schrieb:
Dalibor Topic wrote:
Hi all,
I've implemented doubleToLongBits without requring a VMDouble method
of the same name. It would let us remove one method from the VM
interface for the next version, and the corresoponding native code.
OK to commit?
(I'd do the equivalent patch for Float, too).
* java/lang/Double.java (doubleToLongBits): Simplified.
cheers,
dalibor topic
Hi,
if this life makes things easier for you then its a good thing. The
Jikes RVM already does this at the VMDouble level, and just has a
doubleAsRawLongBits magic/native method. So, I'm not sure if this
change shouldn't be pushed down into VMDouble, or at least if it is
done in Double the obsolete doubleToLongBits call in VMDouble should
be removed.
Yeah, I'll do the latter, as there is no point in having this method in
the VM interface if we can do it (and the methods its implementation
invokes) in Java. Same for Float and the int conversion method.
cheers,
dalibor topic