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

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - oranenj said: [file:dqone2w4er3RbzeJe5afGb]
Hide
Assembla Importer added a comment -

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)

Show
Assembla Importer added a comment - 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)
Hide
Andy Fingerhut added a comment -

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.

Show
Andy Fingerhut added a comment - 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.
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 ]
Hide
Andy Fingerhut added a comment -

Patch clj-107-v1.diff is identical to earlier clj-107-add-bit-count-v1.txt, but with .diff suffix for easier diff-style viewing in some editors.

Show
Andy Fingerhut added a comment - Patch clj-107-v1.diff is identical to earlier clj-107-add-bit-count-v1.txt, but with .diff suffix for easier diff-style viewing in some editors.
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: