diff options
author | David Robillard <d@drobilla.net> | 2021-02-24 21:07:07 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | 36e2f27502524155e6475a75ffcab4999fce166a (patch) | |
tree | c193ccab896fa63a48e0dba5eecfccfc9ec46a2b /src/system.h | |
parent | 02507b57fae1e29572a11be8894b7dde9048da5d (diff) | |
download | serd-36e2f27502524155e6475a75ffcab4999fce166a.tar.gz serd-36e2f27502524155e6475a75ffcab4999fce166a.tar.bz2 serd-36e2f27502524155e6475a75ffcab4999fce166a.zip |
Align node allocations
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
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* |