1 //===-- Memmove implementation for riscv ------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_RISCV_INLINE_MEMMOVE_H 9 #define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_RISCV_INLINE_MEMMOVE_H 10 11 #include "src/__support/macros/attributes.h" // LIBC_INLINE 12 #include "src/__support/macros/config.h" 13 #include "src/__support/macros/properties/architectures.h" // LIBC_TARGET_ARCH_IS_RISCV64 14 #include "src/string/memory_utils/generic/byte_per_byte.h" 15 #include "src/string/memory_utils/utils.h" // Ptr, CPtr 16 17 #include <stddef.h> // size_t 18 19 namespace LIBC_NAMESPACE_DECL { 20 21 [[maybe_unused]] LIBC_INLINE void inline_memmove_riscv(Ptr __restrict dst,CPtr __restrict src,size_t count)22inline_memmove_riscv(Ptr __restrict dst, CPtr __restrict src, size_t count) { 23 return inline_memmove_byte_per_byte(dst, src, count); 24 } 25 26 } // namespace LIBC_NAMESPACE_DECL 27 28 #endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_RISCV_INLINE_MEMMOVE_H 29