MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / select_multi

Method select_multi

crates/tinywasm/src/interpreter/stack/value_stack.rs:217–222  ·  view source on GitHub ↗
(&mut self, counts: ValueCounts)

Source from the content-addressed store, hash-verified

215
216 #[inline]
217 pub(crate) fn select_multi(&mut self, counts: ValueCounts) {
218 let condition = i32::stack_pop(self) != 0;
219 self.stack_32.select_many(counts.c32 as usize, condition);
220 self.stack_64.select_many(counts.c64 as usize, condition);
221 self.stack_128.select_many(counts.c128 as usize, condition);
222 }
223
224 pub(crate) fn pop_types<'a>(
225 &'a mut self,

Callers 1

execMethod · 0.80

Calls 1

select_manyMethod · 0.80

Tested by

no test coverage detected