[libc-commits] [libc] fdb4b89 - [libc] Fix memmove macros for unreocognized targets
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Mar 14 08:25:47 PDT 2025
Author: Joseph Huber
Date: 2025-03-14T10:25:42-05:00
New Revision: fdb4b89bc0e52ef769ee8ac4d40c0c7b5b62db25
URL: https://github.com/llvm/llvm-project/commit/fdb4b89bc0e52ef769ee8ac4d40c0c7b5b62db25
DIFF: https://github.com/llvm/llvm-project/commit/fdb4b89bc0e52ef769ee8ac4d40c0c7b5b62db25.diff
LOG: [libc] Fix memmove macros for unreocognized targets
Added:
Modified:
libc/src/string/memory_utils/inline_memmove.h
Removed:
################################################################################
diff --git a/libc/src/string/memory_utils/inline_memmove.h b/libc/src/string/memory_utils/inline_memmove.h
index e422ad3143c4d..71a28c32e4c56 100644
--- a/libc/src/string/memory_utils/inline_memmove.h
+++ b/libc/src/string/memory_utils/inline_memmove.h
@@ -29,8 +29,6 @@
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE \
inline_memmove_no_small_size
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP inline_memmove_riscv
-#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP \
- inline_memmove_byte_per_byte
#elif defined(LIBC_TARGET_ARCH_IS_GPU)
#include "src/string/memory_utils/generic/builtin.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE \
@@ -40,6 +38,8 @@
#include "src/string/memory_utils/generic/byte_per_byte.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE \
inline_memmove_no_small_size
+#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP \
+ inline_memmove_byte_per_byte
#endif
namespace LIBC_NAMESPACE_DECL {
More information about the libc-commits
mailing list