summaryrefslogtreecommitdiffstats
path: root/core/os/pool_allocator.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-04-28 11:04:05 +0200
committerGitHub <noreply@github.com>2021-04-28 11:04:05 +0200
commit305b2a15bf1ed950e8e2ed50fa84456b584798fb (patch)
treeabaa1e01ca34382f4ea1d6e24c403ecff1502f39 /core/os/pool_allocator.cpp
parent7bca90769cbf7ae29023ca8d83ba7ab3137deda3 (diff)
parent8247667a3ee0d86f26094e722497b0cbb99cc12b (diff)
downloadredot-engine-305b2a15bf1ed950e8e2ed50fa84456b584798fb.tar.gz
Merge pull request #48239 from akien-mga/goodbye-copymem
Core: Drop custom `copymem`/`zeromem` defines
Diffstat (limited to 'core/os/pool_allocator.cpp')
-rw-r--r--core/os/pool_allocator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/os/pool_allocator.cpp b/core/os/pool_allocator.cpp
index 9be3a62e2f..74e9c24e04 100644
--- a/core/os/pool_allocator.cpp
+++ b/core/os/pool_allocator.cpp
@@ -31,7 +31,6 @@
#include "pool_allocator.h"
#include "core/error/error_macros.h"
-#include "core/os/copymem.h"
#include "core/os/memory.h"
#include "core/os/os.h"
#include "core/string/print_string.h"
@@ -42,7 +41,7 @@
do { \
void *_dst = &((unsigned char *)pool)[m_to_pos]; \
void *_src = &((unsigned char *)pool)[(m_entry).pos]; \
- movemem(_dst, _src, aligned((m_entry).len)); \
+ memmove(_dst, _src, aligned((m_entry).len)); \
(m_entry).pos = m_to_pos; \
} while (0);