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

Function bitselect

cranelift/interpreter/src/step.rs:1612–1616  ·  view source on GitHub ↗
(c: DataValue, x: DataValue, y: DataValue)

Source from the content-addressed store, hash-verified

1610}
1611
1612fn bitselect(c: DataValue, x: DataValue, y: DataValue) -> ValueResult<DataValue> {
1613 let mask_x = DataValueExt::and(c.clone(), x)?;
1614 let mask_y = DataValueExt::and(DataValueExt::not(c)?, y)?;
1615 DataValueExt::or(mask_x, mask_y)
1616}
1617
1618fn splat(ty: Type, val: DataValue) -> ValueResult<DataValue> {
1619 let mut new_vector = SimdVec::new();

Callers 1

stepFunction · 0.85

Calls 2

notFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected