diff options
| author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-08-14 12:32:32 +0200 |
|---|---|---|
| committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-08-31 15:47:32 +0200 |
| commit | a8a969ae7a05e408b29961d0a2ea621a16d73d3e (patch) | |
| tree | 7e7e77b19c9d086347b91c763dc4f6ef063bde28 /compiler/llvmGen/LlvmCodeGen/CodeGen.hs | |
| parent | 393b820233caa00e428affc28e090b496d181664 (diff) | |
| download | haskell-a8a969ae7a05e408b29961d0a2ea621a16d73d3e.tar.gz | |
Add `FiniteBits(count{Leading,Trailing}Zeros)`
This exposes the newly added CLZ/CTZ primops from
e0c1767d0ea8d12e0a4badf43682a08784e379c6 (re #9340)
via two new methods `countLeadingZeros` and `countTrailingZeros`
in the `Data.Bits.FiniteBits` class.
The original proposal can be found at
http://www.haskell.org/pipermail/libraries/2014-August/023567.html
Test Plan: successful validate
Reviewers: ekmett, tibbe
GHC Trac Issues: #9532
Differential Revision: https://phabricator.haskell.org/D158
Diffstat (limited to 'compiler/llvmGen/LlvmCodeGen/CodeGen.hs')
0 files changed, 0 insertions, 0 deletions
