#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_INLINE_MEMMOVE_H
#define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_INLINE_MEMMOVE_H
#include "src/__support/macros/config.h"
#include <stddef.h>
#if defined(LIBC_TARGET_ARCH_IS_X86)
#include "src/string/memory_utils/x86_64/inline_memmove.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE …
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP …
#elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
#include "src/string/memory_utils/aarch64/inline_memmove.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE …
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP …
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
#include "src/string/memory_utils/riscv/inline_memmove.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE …
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP …
#elif defined(LIBC_TARGET_ARCH_IS_ARM)
#include "src/string/memory_utils/generic/byte_per_byte.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE …
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP …
#elif defined(LIBC_TARGET_ARCH_IS_GPU)
#include "src/string/memory_utils/generic/builtin.h"
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_SMALL_SIZE …
#define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE_FOLLOW_UP …
#else
#error "Unsupported architecture"
#endif
namespace LIBC_NAMESPACE_DECL {
LIBC_INLINE constexpr bool inline_memmove_no_small_size(void *, const void *,
size_t) { … }
[[gnu::flatten]] LIBC_INLINE bool
inline_memmove_small_size(void *dst, const void *src, size_t count) { … }
[[gnu::flatten]] LIBC_INLINE void
inline_memmove_follow_up(void *dst, const void *src, size_t count) { … }
LIBC_INLINE void inline_memmove(void *dst, const void *src, size_t count) { … }
}
#endif