util-memory: Rename aligned_malloc

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2018-01-08 11:35:05 +01:00
parent 32ed7b645a
commit cf17cdab19
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ inline size_t aligned_offset(size_t align, size_t size) {
return ((size / align) + 1) * align; 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. // Ensure that we have space for the pointer and the data.
size_t asize = aligned_offset(align, size + sizeof(void*)); size_t asize = aligned_offset(align, size + sizeof(void*));

View File

@ -20,6 +20,6 @@
#pragma once #pragma once
namespace util { 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); void free_aligned(void* mem);
}; };