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

Function CheckAlignment

tests/translation/test_alignment_bind.cpp:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "runtime.h"
2
3int CheckAlignment(NULLCRef ptr, int alignment, void* unused)
4{
5 int asInt = (int)ptr.ptr;
6 return asInt % alignment == 0;
7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected