Skip to content

Commit

Permalink
feat(xsum): Display which mode is complied in the welcome message for…
Browse files Browse the repository at this point in the history
… LoongArch

1. Display the mode which is used as below:
"loongarch64 + lasx" -> LoongArch64 platform with LoongArch Advanced SIMD Extension
"loongarch64 + lsx"   -> LoongArch64 platform with LoongArch SIMD Extension
"loongarch64"            -> LoongArch64 platform, use scalar implement
2. Align the define in xxhash.h
  • Loading branch information
24bit-xjkp committed Jan 13, 2025
1 parent 63e083c commit 0588fd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cli/xsum_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */


/*-**********************************************************************
Expand Down

0 comments on commit 0588fd9

Please sign in to comment.