MCPcopy 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

9use wasmtime::*;
10
11fn align_up(v: usize, align: usize) -> usize {
12 return (v + (align - 1)) & (!(align - 1));
13}
14
15struct CustomStack {
16 base: NonNull<u8>,

Callers 1

newMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected