Ticket #5159: find_next.patch
File find_next.patch, 695 bytes (added by , 12 years ago) |
---|
-
boost/dynamic_bitset/dynamic_bitset.hpp
1257 1257 const size_type blk = block_index(pos); 1258 1258 const block_width_type ind = bit_index(pos); 1259 1259 1260 // mask out bits before pos1261 const Block fore = m_bits[blk] & ( ~Block(0) << ind );1260 // shift bits upto one immediately after current 1261 const Block fore = m_bits[blk] >> ind; 1262 1262 1263 1263 return fore? 1264 blk * bits_per_block+ lowest_bit(fore)1264 pos + lowest_bit(fore) 1265 1265 : 1266 1266 m_do_find_from(blk + 1); 1267 1267