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

Method umin

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

Source from the content-addressed store, hash-verified

524 }
525
526 fn umin(self, other: Self) -> ValueResult<Self> {
527 let lhs = self.clone().into_int_unsigned()?;
528 let rhs = other.clone().into_int_unsigned()?;
529 if lhs < rhs { Ok(self) } else { Ok(other) }
530 }
531
532 fn smin(self, other: Self) -> ValueResult<Self> {
533 if self < other { Ok(self) } else { Ok(other) }

Callers 2

stepFunction · 0.80
translate_operatorFunction · 0.80

Calls 3

OkFunction · 0.85
into_int_unsignedMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected