From 87e0796bf46690acf7a6e5ae2f3a86f090ea33f1 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 13 Jul 2024 15:55:30 +0200 Subject: [PATCH] inline M_Memcpy --- src/m_fixed.c | 7 ------- src/m_misc.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/m_fixed.c b/src/m_fixed.c index 2da72fe05..ddd1ce63a 100644 --- a/src/m_fixed.c +++ b/src/m_fixed.c @@ -1011,13 +1011,6 @@ int main(int argc, char** argv) exit(0); } -static void *cpu_cpy(void *dest, const void *src, size_t n) -{ - return memcpy(dest, src, n); -} - -void *(*M_Memcpy)(void* dest, const void* src, size_t n) = cpu_cpy; - void I_Error(const char *error, ...) { (void)error; diff --git a/src/m_misc.c b/src/m_misc.c index 7d0ce6bfc..c40848ecd 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -1938,7 +1938,7 @@ char *sizeu5(size_t num) return sizeu5_buf; } -void *M_Memcpy(void *dest, const void *src, size_t n) +FUNCINLINE ATTRINLINE void *M_Memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); }