MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / mulw

Function mulw

crates/virtual-machine/src/cpu/alu.rs:188–190  ·  view source on GitHub ↗
(a: u64, b: u64)

Source from the content-addressed store, hash-verified

186
187#[inline]
188pub fn mulw(a: u64, b: u64) -> u64 {
189 (a as u32).wrapping_mul(b as u32) as i32 as i64 as u64
190}
191
192pub fn divw(a: u64, b: u64) -> u64 {
193 let dividend = a as i32;

Callers 1

exec_alu32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected