diff --git a/cli/xsum_arch.h b/cli/xsum_arch.h index aae7eaa8..79de3c7c 100644 --- a/cli/xsum_arch.h +++ b/cli/xsum_arch.h @@ -163,7 +163,13 @@ # define XSUM_ARCH "wasm/asmjs" # endif #elif defined(__loongarch_lp64) -# define XSUM_ARCH "loongarch" +# if defined(__loongarch_asx) +# define XSUM_ARCH "loongarch64 + lasx" +# elif defined(__loongarch_sx) +# define XSUM_ARCH "loongarch64 + lsx" +# else +# define XSUM_ARCH "loongarch64" +# endif #else # define XSUM_ARCH "unknown" #endif diff --git a/xxhash.h b/xxhash.h index e70ef233..812dcb01 100644 --- a/xxhash.h +++ b/xxhash.h @@ -1125,7 +1125,7 @@ XXH_PUBLIC_API XXH_PUREF XXH64_hash_t XXH64_hashFromCanonical(XXH_NOESCAPE const # define XXH_VSX 5 /*!< VSX and ZVector for POWER8/z13 (64-bit) */ # define XXH_SVE 6 /*!< SVE for some ARMv8-A and ARMv9-A */ # define XXH_LSX 7 /*!< LSX (128-bit SIMD) for LoongArch64 */ -# define XXH_LASX 8 /*!< LASX (256-bit SIMD) for LoongArch64 */ +# define XXH_LASX 8 /*!< LASX (256-bit SIMD) for LoongArch64 */ /*-**********************************************************************