[Issue 12027] Range of true bits for std.bitmanip.BitArray
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 1 12:28:59 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12027
--- Comment #3 from github-bugzilla at puremagic.com 2014-03-01 12:28:56 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/08820e2f146d7a7268f25fd130188929c62dd51c
Fix Issue 12027 - Iterate set bits in BitArray.
Also adds:
- countTrailingZeros(v)
- countBitsSet(v)
- bitsSet(v)
Notes:
- There is a `popcnt` function in `core.bitops`, but it only works with `int`.
- `bitsSet(v)` could be a bidirectional and possibly even random access range,
but I'll leave that for future work for now.
https://github.com/D-Programming-Language/phobos/commit/c78cfd97fba32893be2b3dd33425c0d8716409bd
Merge pull request #1901 from Poita/bug12027
Fix Issue 12027 - Iterate set bits in BitArray.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list