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;
}
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*));

View file

@ -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);
};