https://d.puremagic.com/issues/show_bug.cgi?id=12027
--- Comment #5 from Peter Alexander <[email protected]> 2014-03-01 13:47:50 PST --- (In reply to comment #4) > (In reply to comment #3) > > > Also adds: > > - countTrailingZeros(v) > > - countBitsSet(v) > > - bitsSet(v) > > Apparently only bitsSet is working for me: countTrailingZeros and countBitsSet are only defined for built-in integral types at the moment. They were needed to implement bitsSet. However, I was persuaded to make them private because druntime defines popcnt and bsf, but not generically. @blackwhale argued that popcnt/bsf should be extended to be more generic in druntime, but I argued that druntime was for things only necessary for the D language to work, and these weren't necessary. We disagreed, so compromised and just marked them as private for now until we figure out how to resolve it. btw, bitsSet also works on built-in integers, e.g. 5.bitsSet.equal([0, 2]); -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
