mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
util-memory: Rename aligned_malloc
This commit is contained in:
parent
32ed7b645a
commit
cf17cdab19
2 changed files with 2 additions and 2 deletions
|
@ -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*));
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
Loading…
Reference in a new issue