mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 23:48:21 +00:00
A new rollup tool now exists for flattening out the headers in a way that works better for our purposes than cpp. A lot of the API clutter has been removed. APIs that aren't a sure thing in terms of general recommendation are now marked internal. There's now a smoke test for the amalgamation archive and gigantic header file. So we can now guarantee you can use this project on the easiest difficulty setting without the gigantic repository. A website is being created, which is currently a work in progress: https://justine.storage.googleapis.com/cosmopolitan/index.html
7 lines
249 B
C
7 lines
249 B
C
#include "libc/mem/mem.h"
|
|
#include "third_party/dlmalloc/dlmalloc.internal.h"
|
|
|
|
void *dlmemalign(size_t alignment, size_t bytes) {
|
|
if (alignment <= MALLOC_ALIGNMENT) return dlmalloc(bytes);
|
|
return dlmemalign$impl(g_dlmalloc, alignment, bytes);
|
|
}
|