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

Method add

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

Source from the content-addressed store, hash-verified

538 }
539
540 fn add(self, other: Self) -> ValueResult<Self> {
541 if self.is_float() {
542 binary_match!(+(self, other); [F32, F64])
543 } else {
544 binary_match!(wrapping_add(&self, &other); [I8, I16, I32, I64, I128])
545 }
546 }
547
548 fn sub(self, other: Self) -> ValueResult<Self> {
549 if self.is_float() {

Callers

nothing calls this directly

Calls 1

is_floatMethod · 0.45

Tested by

no test coverage detected