MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / next

Method next

src/entity/set.rs:364–374  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

362
363 #[inline]
364 fn next(&mut self) -> Option<Self::Item> {
365 while self.current_word == 0 {
366 self.current_word = *self.set.storage.get(self.next_index)?;
367 self.next_index += 1;
368 }
369
370 let low_bit = self.current_word.trailing_zeros();
371 self.current_word &= self.current_word - 1;
372 let bit = (self.next_index - 1) * Word::BITS as usize + low_bit as usize;
373 Some(T::new(bit))
374 }
375}

Callers 8

check_skipped_instMethod · 0.45
compute_idomsMethod · 0.45
parse_reg_group_listFunction · 0.45
parse_reg_defFunction · 0.45
parse_value_declarationFunction · 0.45
parse_opcodeFunction · 0.45
parse_operandFunction · 0.45
parse_constraintFunction · 0.45

Calls 2

trailing_zerosMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected