
8 Oct
2006
8 Oct
'06
10:56 p.m.
On 10/8/06, Samuel Bronson
Sun Oct 8 22:09:06 EDT 2006 Samuel Bronson
* Inline shift in GHC's Bits instances for {Int,Word}{,8,16,32,64}
This is what I came up with after an afternoon of trying to help roconner get shiftR to inline in his UM, so he wouldn't have to use the nasty tricks dons used in his... I couldn't get it to inline *at all* without this, and with this it usually comes out as a nice C bitshifting operator in the end (if you compile via C). It wouldn't inline the $wshift* functions otherwise. Incidentally I would really like an ar(1) that doesn't take forever to deal with split objects -- I've had to cancel the ar step almost every time during the testing of this patch.