MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / apply_preset

Method apply_preset

cranelift/codegen/src/settings.rs:205–209  ·  view source on GitHub ↗

Apply a preset. The argument is a slice of (mask, value) bytes.

(&mut self, values: &[(u8, u8)])

Source from the content-addressed store, hash-verified

203
204 /// Apply a preset. The argument is a slice of (mask, value) bytes.
205 fn apply_preset(&mut self, values: &[(u8, u8)]) {
206 for (byte, &(mask, value)) in self.bytes.iter_mut().zip(values) {
207 *byte = (*byte & !mask) | value;
208 }
209 }
210
211 /// Look up a descriptor by name.
212 fn lookup(&self, name: &str) -> SetResult<(usize, detail::Detail)> {

Callers 1

enableMethod · 0.80

Calls 1

iter_mutMethod · 0.45

Tested by

no test coverage detected