MCPcopy Create free account
hub / github.com/WheretIB/nullc / CheckAlignment

Function CheckAlignment

tests/TestExtra.cpp:198–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int CheckAlignment(NULLCRef ptr, int alignment)
199{
200 intptr_t asInt = (intptr_t)ptr.ptr;
201 return asInt % alignment == 0;
202}
203
204LOAD_MODULE_BIND(test_alignment, "test.alignment", "int CheckAlignment(auto ref ptr, int alignment);")
205{

Callers 2

kFunction · 0.70
k2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected