Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ align
Method
align
src/core/test/static_mem_alloc.cpp:69–71 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
67
size_t padding() const { return GetParam().padding; }
68
69
size_t align(size_t addr) const {
70
return get_aligned_power2(addr, GetParam().align);
71
}
72
73
public:
74
void SetUp() override {
Callers
1
format_and_print
Method · 0.45
Calls
1
get_aligned_power2
Function · 0.50
Tested by
no test coverage detected