Improve speed of ZSTD_compressSequencesAndLiterals() using RVV

This commit is contained in:
李子建
2025-06-02 17:21:02 +08:00
committed by Zijian Li
parent f9938c217d
commit d95123f2e6
2 changed files with 157 additions and 0 deletions
+6
View File
@@ -218,6 +218,9 @@
# if defined(__ARM_NEON) || defined(_M_ARM64)
# define ZSTD_ARCH_ARM_NEON
# endif
# if defined(__riscv) && defined(__riscv_vector)
# define ZSTD_ARCH_RISCV_RVV
# endif
#
# if defined(ZSTD_ARCH_X86_AVX2)
# include <immintrin.h>
@@ -227,6 +230,9 @@
# elif defined(ZSTD_ARCH_ARM_NEON)
# include <arm_neon.h>
# endif
# if defined(ZSTD_ARCH_RISCV_RVV)
# include <riscv_vector.h>
# endif
#endif
/* C-language Attributes are added in C23. */