Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ addw
Function
addw
crates/virtual-machine/src/cpu/alu.rs:99–101 ·
view source on GitHub ↗
(a: u64, b: u64)
Source
from the content-addressed store, hash-verified
97
98
#[inline]
99
pub fn addw(a: u64, b: u64) -> u64 {
100
(a as u32).wrapping_add(b as u32) as i32 as i64 as u64
101
}
102
103
#[inline]
104
pub fn subw(a: u64, b: u64) -> u64 {
Callers
2
exec_alu_imm32
Function · 0.85
exec_alu32
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected