Enable PREFETCH_L1 for RISC-V to improve performance

This commit is contained in:
黄尚诚10330306 2026-04-15 14:53:25 +08:00
parent 48c0ed7362
commit 03540e99d1

View file

@ -1020,7 +1020,7 @@ size_t ZSTD_execSequence(BYTE* op,
assert(op != NULL /* Precondition */);
assert(oend_w < oend /* No underflow */);
#if defined(__aarch64__)
#if defined(__aarch64__) || defined(__riscv)
/* prefetch sequence starting from match that will be used for copy later */
PREFETCH_L1(match);
#endif