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

Function mulh

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

Source from the content-addressed store, hash-verified

131/// Upper 64 bits of signed*signed product.
132#[inline]
133pub fn mulh(a: u64, b: u64) -> u64 {
134 ((a as i64 as i128).wrapping_mul(b as i64 as i128) >> 64) as u64
135}
136
137/// Upper 64 bits of unsigned*unsigned product.
138#[inline]

Callers 1

exec_aluFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected