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

Method grow_to

src/entity/set.rs:140–143  ·  view source on GitHub ↗
(&mut self, max_index: usize)

Source from the content-addressed store, hash-verified

138 /// Any existing elements are not modified.
139 #[inline]
140 pub fn grow_to(&mut self, max_index: usize) {
141 let words = max_index.div_ceil(Word::BITS as usize);
142 self.storage.resize(words, 0);
143 }
144
145 /// Returns whether the set contains no elements.
146 #[inline]

Callers 10

prepareMethod · 0.45
runMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
isolate_group_usesMethod · 0.45
spillMethod · 0.45
parse_class_defFunction · 0.45
arbitrary_with_configMethod · 0.45
with_max_indexMethod · 0.45
clear_and_resizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected