Clojure

GC Issue 103: bit-count function

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • 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.

Activity

Andy Fingerhut made changes -
Field Original Value New Value
Attachment clj-107-add-bit-count-v1.txt [ 11681 ]
Andy Fingerhut made changes -
Patch Code and Test [ 10002 ]
Priority Trivial [ 5 ]
Reporter Andy Fingerhut [ jafingerhut ]
Alex Miller made changes -
Fix Version/s Backlog [ 10035 ]
Andy Fingerhut made changes -
Attachment clj-107-v1.diff [ 12376 ]
Andy Fingerhut made changes -
Attachment clj-107-add-bit-count-v1.txt [ 11681 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: