From 36e2f27502524155e6475a75ffcab4999fce166a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 24 Feb 2021 21:07:07 -0500 Subject: Align node allocations --- src/system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index a5fb7459..f0e6e267 100644 --- a/src/system.h +++ b/src/system.h @@ -27,6 +27,11 @@ SERD_I_MALLOC_FUNC void* serd_malloc_aligned(size_t alignment, size_t size); +/// Allocate a zeroed buffer aligned to `alignment` bytes +SERD_I_MALLOC_FUNC +void* +serd_calloc_aligned(size_t alignment, size_t size); + /// Allocate an aligned buffer for I/O SERD_I_MALLOC_FUNC void* -- cgit v1.2.1