MCPcopy 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
1202fn checked_round_up(val: u32, mask: u32) -> Option<u32> {
1203 Some(val.checked_add(mask)? & !mask)
1204}
1205
1206impl<M: ABIMachineSpec> Callee<M> {
1207 /// Create a new body ABI instance.

Callers 1

newMethod · 0.85

Calls 1

checked_addMethod · 0.45

Tested by

no test coverage detected