Hotspot loves PHP.reboot

John Rose john.r.rose at oracle.com
Tue Sep 6 12:58:56 PDT 2011


On Sep 6, 2011, at 11:28 AM, Charles Oliver Nutter wrote:

> On Tue, Sep 6, 2011 at 12:36 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
>> If you have specialize for -2/+2, you should reuse exactly the same code
>> for +n/-n.
>> see
>> https://code.google.com/p/jsr292-cookbook/source/browse/trunk/binary-operation/src/jsr292/cookbook/binop/RT.java#11
> 
> You're right. I'll make that change. Thanks!


Also (from an early attempt at a cookbook):
  http://hg.openjdk.java.net/mlvm/mlvm/file/tip/netbeans/indy-demo/src/recipes/FastAndSlow.java

This uses the same logic as Remi's safeAdd.

What's needed here is a way to get 33 bits out of a 32-bit add intrinsic.  There's no fully natural way to do this, and about 4 kludgey ways.  Because there are so many poor ways to shape the API, it's hard to pick the best one to invest in.

-- John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110906/c29b9c73/attachment.html 


More information about the mlvm-dev mailing list