[PROPOSAL] Add `FiniteBits(count{Leading,Trailing}Zeros)`

Herbert Valerio Riedel hvr at gnu.org
Fri Aug 15 09:05:40 UTC 2014


On 2014-08-15 at 10:22:38 +0200, Herbert Valerio Riedel wrote:
> As GHC 7.10.1 will have support for new assembler-optimized CLZ & CTZ[1]
> primops[2], it'd be useful to provide also a convenient high-level
> interface to avoid having to work with -XMagicHash and unboxed values.
>
> To this end, I hereby propose to add two new methods to the 'FiniteBits'
> class, specifically

PS: I forgot to explicitly declare the usual *2-week discussion period*
    (which I guess many would have implicitly assumed anyway...)


More information about the Libraries mailing list