From cf17cdab197c7a70a3fd9a0b393f5ee0e811085b Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 8 Jan 2018 11:35:05 +0100 Subject: [PATCH] util-memory: Rename aligned_malloc --- source/util-memory.cpp | 2 +- source/util-memory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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