[CLJ-107] GC Issue 103: bit-count function Created: 17/Jun/09 Updated: 15/Nov/12 |
|
| Status: | Open |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Backlog |
| Type: | Enhancement | Priority: | Trivial |
| Reporter: | Andy Fingerhut | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| 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. |
| Comments |
| Comment by Assembla Importer [ 24/Aug/10 3:45 AM ] |
|
Converted from http://www.assembla.com/spaces/clojure/tickets/107 |
| Comment by Assembla Importer [ 24/Aug/10 3:45 AM ] |
|
oranenj said: [file:dqone2w4er3RbzeJe5afGb] |
| Comment by Assembla Importer [ 24/Aug/10 3:45 AM ] |
|
richhickey said: Updating tickets (#8, #19, #30, #31, #126, #17, #42, #47, #50, #61, #64, #69, #71, #77, #79, #84, #87, #89, #96, #99, #103, #107, #112, #113, #114, #115, #118, #119, #121, #122, #124) |
| Comment by Andy Fingerhut [ 15/Nov/12 8:40 PM ] |
|
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. |