diff --git a/source/util-memory.cpp b/source/util-memory.cpp index d472fb57..85d0876d 100644 --- a/source/util-memory.cpp +++ b/source/util-memory.cpp @@ -24,7 +24,7 @@ inline size_t aligned_offset(size_t align, size_t size) { return ((size / align) + 1) * align; } -void* util::aligned_malloc(size_t align, size_t size) { +void* util::malloc_aligned(size_t align, size_t size) { // Ensure that we have space for the pointer and the data. size_t asize = aligned_offset(align, size + sizeof(void*)); diff --git a/source/util-memory.h b/source/util-memory.h index a7e65831..3e98402a 100644 --- a/source/util-memory.h +++ b/source/util-memory.h @@ -20,6 +20,6 @@ #pragma once namespace util { - void* aligned_malloc(size_t align, size_t size); + void* malloc_aligned(size_t align, size_t size); void free_aligned(void* mem); }; \ No newline at end of file