[libc-commits] [libc] [libc] Make BigInt bit_cast-able to compatible types (PR #75063)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 12 11:29:45 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,
----------------
michaelrj-google wrote:

is this function intended to be available for general internal use? If not, should it be in an `internal` namespace?

https://github.com/llvm/llvm-project/pull/75063


More information about the libc-commits mailing list