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

> On Tue, Sep 6, 2011 at 12:36 PM, Rémi Forax <fo...@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

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to