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

Method into_int_unsigned

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

Source from the content-addressed store, hash-verified

282 }
283
284 fn into_int_unsigned(self) -> ValueResult<u128> {
285 match self {
286 DataValue::I8(n) => Ok(n as u8 as u128),
287 DataValue::I16(n) => Ok(n as u16 as u128),
288 DataValue::I32(n) => Ok(n as u32 as u128),
289 DataValue::I64(n) => Ok(n as u64 as u128),
290 DataValue::I128(n) => Ok(n as u128),
291 _ => Err(ValueError::InvalidType(ValueTypeClass::Integer, self.ty())),
292 }
293 }
294
295 fn float(bits: u64, ty: Type) -> ValueResult<Self> {
296 match ty {

Callers 8

umaxMethod · 0.80
uminMethod · 0.80
udivMethod · 0.80
uremMethod · 0.80
sum_unsignedFunction · 0.80
stepFunction · 0.80
icmpFunction · 0.80
vectorizelanes_allFunction · 0.80

Calls 2

OkFunction · 0.85
tyMethod · 0.45

Tested by

no test coverage detected