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

Function mspace_memalign

system/lib/dlmalloc.c:5914–5923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5912}
5913
5914void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
5915 mstate ms = (mstate)msp;
5916 if (!ok_magic(ms)) {
5917 USAGE_ERROR_ACTION(ms,ms);
5918 return 0;
5919 }
5920 if (alignment <= MALLOC_ALIGNMENT)
5921 return mspace_malloc(msp, bytes);
5922 return internal_memalign(ms, alignment, bytes);
5923}
5924
5925void** mspace_independent_calloc(mspace msp, size_t n_elements,
5926 size_t elem_size, void* chunks[]) {

Callers

nothing calls this directly

Calls 2

mspace_mallocFunction · 0.85
internal_memalignFunction · 0.85

Tested by

no test coverage detected