]> git.proxmox.com Git - wasi-libc.git/blobdiff - dlmalloc/src/dlmalloc.c
Set the MALLOC_ALIGNMENT to 16.
[wasi-libc.git] / dlmalloc / src / dlmalloc.c
index c84205689c8f31604cedae0042f96fa99fade842..cb9cc81270403668d9ce569c8e1fecfa5ec138a5 100644 (file)
@@ -29,6 +29,9 @@
 #define NO_MALLINFO 1
 #define NO_MALLOC_STATS 1
 
+/* Align malloc regions to 16, to avoid unaligned SIMD accesses. */
+#define MALLOC_ALIGNMENT 16
+
 /*
  * Declare errno values used by dlmalloc. We define them like this to avoid
  * putting specific errno values in the ABI.