From 4b491ee94a034d6a5a7d90a6f1a822a3d76b53f0 Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Sun, 25 Jun 2023 17:28:31 +0200 Subject: [PATCH] - Defined mp_thread_local to nothing for Orca platforms (since this requires atomics, which we don't have yet). This allows use to enable bulk-memory without getting clang backend errors about missing tls and atomics. - Replaced memory copy/fill routines with builtins --- src/platform/orca_memory.c | 44 ++++---------------------------------- src/platform/platform.h | 10 ++++++--- 2 files changed, 11 insertions(+), 43 deletions(-) diff --git a/src/platform/orca_memory.c b/src/platform/orca_memory.c index 6b52925..08cce3c 100644 --- a/src/platform/orca_memory.c +++ b/src/platform/orca_memory.c @@ -30,58 +30,22 @@ mem_base_allocator* mem_base_allocator_default() return(&base); } - -//TODO: implement malloc/realloc/free/memset/etc here... - - void* memset(void* b, int c, size_t n) { - for(size_t i = 0; i=0; i--) - { - ((char*)dst)[i] = ((char*)src)[i]; - } - } - else if(src > dst) - { - for(size_t i = 0; i