issues Search Results · repo:tyler/bitset language:C
Filter by
6 results
(53 ms)6 results
intyler/bitset (press backspace or delete to remove)As of 2/23/2016, this version no longer builds on the latest Ruby, and it has a couple bugs I am aware of. I invite
people to use my version at https://github.com/ericboesch/bitset . Thanks again to Tyler ...
ericboesch
- 5
- Opened on Feb 23, 2016
- #12
I m struggling with this one. I m getting these errors exclusively in the app I m trying to use it with:
(gdb) backtrace #0 0x00007fff81f63616 in __kill () #1 0x00007fff82003cca in abort () #2 0x00007fff81f1b6f5 ...
brendon9x
- Opened on Mar 19, 2011
- #7
If you have a Bitset of size 64, you get an incorrect cardinality value (always 0).
bits = Bitset.new(64)
bits.set(13,23)
puts bits.cardinality
Results in the value of 0, when it should be 2.
kevinjalbert
- 3
- Opened on Mar 17, 2011
- #6
a = Bitset.new(7)
b = ~Bitset.new(7)
a.hamming(b) #= 64
The problem is that internally the representation is always some number of 64-bit integers, and so unless we explicitly
mask out the bits that ...
tyler
- Opened on Mar 4, 2011
- #5
b = Bitset.new(16000) [5343, 15661, 1500, 6225].each {|i| b[i] = true } b.to_s.count( 1 ) # = 8 (instead of 4)
b.cardinality # = 36 (instead of 4) (0...16000).select{|x| b[x]} # = [1500, 1532, 5343, 5375, ...
mdemare
- 1
- Opened on Feb 25, 2011
- #2

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.