Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ align_up
Function
align_up
tests/all/stack_creator.rs:11–13 ·
view source on GitHub ↗
(v: usize, align: usize)
Source
from the content-addressed store, hash-verified
9
use wasmtime::*;
10
11
fn align_up(v: usize, align: usize) -> usize {
12
return (v + (align - 1)) & (!(align - 1));
13
}
14
15
struct CustomStack {
16
base: NonNull<u8>,
Callers
1
new
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected