Details
-
Type:
Enhancement
-
Status:
Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Backlog
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
Description
Reported by a...@thened.net, Apr 08, 2009 I posted this small patch to the mailing list last week but received no feedback, so I'm attaching it here to make sure it doesn't get lost. I have submitted a CA. http://groups.google.com/group/clojure/browse_thread/thread/4345f76a12bac6fe/ The new function bit-count returns the count of 1-bits in a number, like C's popcount or Common Lisp's logcount.
clj-107-add-bit-count-v1.txt is probably a correct updated version of the old patch linked above. Added a couple of unit tests.