darcs patch: Inline shift in GHC's Bits instances for {Int, Word}{, 8...

Samuel Bronson naesten at gmail.com
Sun Oct 8 22:56:02 EDT 2006

On 10/8/06, Samuel Bronson <naesten at gmail.com> wrote:
> Sun Oct  8 22:09:06 EDT 2006  Samuel Bronson <naesten at gmail.com>
>   * 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.

More information about the Libraries mailing list