[libc-commits] [llvm] [libc] [libc] Adding a version of memset with software prefetching (PR #70857)

via libc-commits libc-commits at lists.llvm.org
Wed Nov 8 09:35:38 PST 2023


================
@@ -374,6 +374,12 @@ template <size_t SIZE> struct AlignHelper {
   uintptr_t offset_;
 };
 
+LIBC_INLINE void prefetch_for_write(CPtr dst) { __builtin_prefetch(dst, 1, 3); }
----------------
doshimili wrote:

Inline comments added

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


More information about the libc-commits mailing list