[libc-commits] [libc] [libc] Make BigInt bit_cast-able to compatible types (PR #75063)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Wed Dec 20 06:11:40 PST 2023
================
@@ -25,6 +25,27 @@ namespace LIBC_NAMESPACE::cpp {
#define LLVM_LIBC_HAS_BUILTIN_MEMCPY_INLINE
#endif
+// Performs a copy from 'src' to 'dst' of 'size' bytes.
+// The semantics is valid if 'src' and 'dst' are equal but undefined if the
+// regions defined by [src, src + size] and [dst, dst + size] overlap.
+template <size_t size, typename DstT, typename SrcT>
+LIBC_INLINE constexpr void memcpy_inline(DstT *__restrict dst,
----------------
gchatelet wrote:
With @legrosbuffle https://github.com/llvm/llvm-project/pull/75063#discussion_r1432534464 I think we can do away with this and put the function back into `libc/src/string/memory_utils/utils.h`.
https://github.com/llvm/llvm-project/pull/75063
More information about the libc-commits
mailing list