Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ checked_round_up
Function
checked_round_up
cranelift/codegen/src/machinst/abi.rs:1202–1204 ·
view source on GitHub ↗
(val: u32, mask: u32)
Source
from the content-addressed store, hash-verified
1200
}
1201
1202
fn checked_round_up(val: u32, mask: u32) -> Option<u32> {
1203
Some(val.checked_add(mask)? & !mask)
1204
}
1205
1206
impl<M: ABIMachineSpec> Callee<M> {
1207
/// Create a new body ABI instance.
Callers
1
new
Method · 0.85
Calls
1
checked_add
Method · 0.45
Tested by
no test coverage detected