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

Method into_int_signed

cranelift/interpreter/src/value.rs:273–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 }
272
273 fn into_int_signed(self) -> ValueResult<i128> {
274 match self {
275 DataValue::I8(n) => Ok(n as i128),
276 DataValue::I16(n) => Ok(n as i128),
277 DataValue::I32(n) => Ok(n as i128),
278 DataValue::I64(n) => Ok(n as i128),
279 DataValue::I128(n) => Ok(n),
280 _ => Err(ValueError::InvalidType(ValueTypeClass::Integer, self.ty())),
281 }
282 }
283
284 fn into_int_unsigned(self) -> ValueResult<u128> {
285 match self {

Callers 5

convertMethod · 0.80
sdivMethod · 0.80
sremMethod · 0.80
simd_sumFunction · 0.80
stepFunction · 0.80

Calls 2

OkFunction · 0.85
tyMethod · 0.45

Tested by

no test coverage detected