MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / aligned

Function aligned

test/core/test_emmalloc.c:156–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void aligned() {
157 stage("aligned");
158 for (int i = 0; i < 35; i++) {
159 for (int j = 0; j < 35; j++) {
160 emmalloc_blank_slate_from_orbit();
161 size_t first = (size_t)memalign(i, 100);
162 size_t second = (size_t)memalign(j, 100);
163 printf("%d %d => %zu %zu\n", i, j, first, second);
164 check_aligned(i, first);
165 check_aligned(j, second);
166 }
167 }
168}
169
170void randoms() {
171 stage("randoms");

Callers 10

mainFunction · 0.85
mainFunction · 0.85
test_sse.hFile · 0.85
mapClass · 0.85
crtend.cFile · 0.85
crtbegin.cFile · 0.85
em_types.hFile · 0.85

Calls 5

stageFunction · 0.85
memalignFunction · 0.85
printfFunction · 0.85
check_alignedFunction · 0.85

Tested by

no test coverage detected