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

Method shl

cranelift/interpreter/src/value.rs:738–741  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

736 }
737
738 fn shl(self, other: Self) -> ValueResult<Self> {
739 let amt = other.convert(ValueConversionKind::Exact(types::I32))?;
740 binary_match!(wrapping_shl(&self, &amt); [I8, I16, I32, I64, I128]; [i8, i16, i32, i64, i128]; rhs: I32,u32)
741 }
742
743 fn ushr(self, other: Self) -> ValueResult<Self> {
744 let amt = other.convert(ValueConversionKind::Exact(types::I32))?;

Callers

nothing calls this directly

Calls 1

convertMethod · 0.45

Tested by

no test coverage detected