#4102: Bit manipulation built-ins
---------------------------------+------------------------------------------
Reporter: uzytkownik | Owner:
Type: feature request | Status: new
Priority: normal | Component: libraries/base
Version: 6.12.2 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
So far Haskell/GHC lacks more HL bit manipulation instructions which on
many platform can be compiled to single instruction. Probably the good
guide are those implemented in LLVM:
- byte swap
- population count
- number of leading zeros
- number of trailing zeros
All of them can be implemented in terms of Data.Bits - however not quite
in efficient way (like looping over patterns).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4102>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs