
27 Jun
2011
27 Jun
'11
3:42 a.m.
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