Should Data.Bits have a bit scan operation; can the compiler generate a BSR instruction?
Maciej Marcin Piechotka
uzytkownik2 at gmail.com
Mon Jun 27 09:42:58 CEST 2011
On Sun, 2011-06-26 at 22:29 -0400, Ryan Newton wrote:
> It would be nice to have something equivalent to GCC's __builtin_clz
> intrinsic that could generate a BSR instruction on x86. Is there any way to
> get GHC to generate such an instruction presently?
>
> If Data.Bits had bitScan methods they would have straightforward default
> implementations but would also open up the possibility of generating
> efficient code for some instances.
>
> Cheers,
> -Ryan
>
http://hackage.haskell.org/trac/ghc/ticket/4102
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110627/c7370b36/attachment.pgp>
More information about the Libraries
mailing list