cosmopolitan/third_party/dlmalloc/dlmemalign.c

8 lines
240 B
C

#include "libc/mem/mem.h"
#include "third_party/dlmalloc/dlmalloc.h"
void *dlmemalign(size_t alignment, size_t bytes) {
if (alignment <= MALLOC_ALIGNMENT) return dlmalloc(bytes);
return dlmemalign$impl(g_dlmalloc, alignment, bytes);
}