Method: AMQ::BitSet#next_clear_bit
- Defined in:
- lib/amq/bit_set.rb
#next_clear_bit ⇒ Object
clear
71 72 73 74 75 76 77 78 79 |
# File 'lib/amq/bit_set.rb', line 71 def next_clear_bit() @words.each_with_index do |word, i| if word == WORD_MASK next end return i * BITS_PER_WORD + BitSet.number_of_trailing_ones(word) end -1 end |