Commit Graph

1920 Commits

Author SHA1 Message Date
Yann Collet
eaffecc777 use macro instead of static function 2025-01-28 14:55:11 -08:00
Yann Collet
9376b76413 fix function signature 2025-01-28 14:47:58 -08:00
Yann Collet
5124b2d825 document new XXH_memxxx() macros 2025-01-28 14:44:22 -08:00
Yann Collet
99ed11175e makes it possible to redirect memcpy / memset / memcmp
to user-selectable symbols or functions
at compiler time, using build macros.
2025-01-28 14:39:37 -08:00
Yann Collet
e4e33f1f54 Merge pull request #1000 from pps83/dev-x64test
Use _M_X64 only without mixing with _M_AMD64
2025-01-23 16:58:31 -08:00
Yann Collet
f5b53f1848 Merge pull request #999 from Cyan4973/dependabot/github_actions/actions/upload-artifact-4.6.0
build(deps): bump actions/upload-artifact from 4.4.3 to 4.6.0
2025-01-22 13:54:26 -08:00
Yann Collet
1569750d2d Merge pull request #1002 from Cyan4973/doxyfix
minor fixes for doxygen documentation
2025-01-22 11:16:24 -08:00
Yann Collet
4a7c46d613 fix doxygen documentation 2025-01-22 10:34:03 -08:00
Yann Collet
647951a548 Merge pull request #1003 from Cyan4973/noInput_msg
more clearly identify error when there is no input
2025-01-22 10:19:58 -08:00
Yann Collet
b1f76e5990 more clearly identify error when there is no input 2025-01-22 09:49:08 -08:00
Yann Collet
f5a0b6fa8f Merge pull request #1004 from Cyan4973/usan_fix
attempt to silence a recent ubsan warning with code reorganization
2025-01-22 09:34:22 -08:00
Yann Collet
71e797bd8c add XXH_NOESCAPE 2025-01-21 20:55:25 -08:00
Yann Collet
c3e587a1ca attempt to silence a recent ubsan warning with code reorganization
apparently, UBSAN uses the prototype of the inner inlined function
instead of the outer shell of the function.
Let's see if one indirection level is enough to fix this.
2025-01-21 17:28:25 -08:00
Yann Collet
1bf7bc4af2 Merge pull request #993 from walterdejong/xxhsum-help
Xxhsum improved help
2025-01-21 11:51:35 -08:00
Yann Collet
d5422ce901 Merge pull request #997 from Cyan4973/nostreamtest
fix nostreamtest
2025-01-21 11:51:18 -08:00
Pavel P
a42b007b06 Use _M_X64 only without mixing with _M_AMD64 2025-01-21 02:26:34 +02:00
dependabot[bot]
a294a2633f build(deps): bump actions/upload-artifact from 4.4.3 to 4.6.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.3 to 4.6.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b4b15b8c7c...65c4c4a1dd)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 11:24:43 +00:00
Yann Collet
51fa4ef151 Merge pull request #996 from 24bit-xjkp/dev
feat(xxhash3): Support LASX instruction set and refactor LSX implement
2025-01-17 09:57:12 -08:00
Yann Collet
26f622122f fix nostreamtest 2025-01-13 16:50:45 -08:00
24bit-xjkp
7d6bd4ea09 feat(xsum): Display which mode is complied in the welcome message for 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
2025-01-13 11:30:39 +08:00
24bit-xjkp
63e083c539 feat(xxhash3): Support LASX instruction set and refactor LSX implement
1. Use __lsx_vmul_d dircetly instead of using 2 32-bit multiply to emulate a 64-bit multiply.
2. Add LASX support.
2025-01-12 19:33:18 +08:00
Yann Collet
36cd8bfe01 Merge pull request #994 from sunpoet/dev
Update MANDIR for FreeBSD
2025-01-05 06:58:04 -08:00
Po-Chuan Hsieh
867e8752f3 Update MANDIR for FreeBSD
FreeBSD uses share/man/ rather than man/ now.

Reference:	https://cgit.freebsd.org/ports/tree/devel/xxhash/Makefile#n17
2025-01-04 19:35:30 +08:00
Walter de Jong
f90089f90b Revert "help is basically lying about omitting filename"
This reverts commit 1c54e8abc3.
2025-01-02 10:15:56 +01:00
Walter de Jong
1c54e8abc3 help is basically lying about omitting filename 2025-01-02 09:09:38 +01:00
Walter de Jong
6d39e97f25 cleanup newline 2025-01-02 08:56:04 +01:00
Walter de Jong
5920111153 consistency typo 2025-01-02 08:55:26 +01:00
Walter de Jong
540433885f align help message 2025-01-02 08:54:53 +01:00
Walter de Jong
7d49d13b41 help message shows option --files-from 2025-01-02 08:51:38 +01:00
Yann Collet
1ac318b264 Merge pull request #990 from Cyan4973/xxh3_finalize
Extract finalization from XXH3 hashLong
2024-12-27 17:58:57 -08:00
easyaspi314
a8d6ff0e13 Extract finalization from XXH3 hashLong 2024-12-27 17:37:17 -08:00
Yann Collet
abae92fe33 Merge pull request #989 from Cyan4973/xxh_leg_refactor
Modernize XXH32/XXH64
2024-12-27 17:36:42 -08:00
Yann Collet
4dd799c922 fix static analyzer warnings
they are suspicious that some tests on unsigned values might wrap around.
They should not, but let's write these branches differently to also cover these cases.
2024-12-27 17:15:50 -08:00
easyaspi314
bca2d275b2 Modernize XXH32/XXH64
- Fix the state structs to use unsigned char, update names
 - Extract the algorithm steps into inline subroutines
 - Fix a theoretical integer overflow bug
 - Reroll XXH64 on 32-bit (it is going to run like crap anyway)
2024-12-27 16:28:26 -08:00
Yann Collet
86f6400a2a updated CHANGELOG for v0.8.3 2024-12-27 02:11:10 -08:00
Yann Collet
2d70d4c00c Merge pull request #988 from Cyan4973/cmake310
update cmake minimum version to 3.10
2024-12-26 22:58:43 -08:00
Yann Collet
43d8f7987d update cmake minimum version test on github actions to 3.10 2024-12-26 22:38:18 -08:00
Yann Collet
81a5efc7e5 update cmake minimum version to 3.10 2024-12-26 22:27:10 -08:00
Yann Collet
67bba310c7 Merge pull request #987 from Cyan4973/libxxh_dispatch
LIBXXH_DISPATCH: control runtime vector dispatch in `libxxhash`
2024-12-26 20:06:57 -08:00
Yann Collet
9ff12f6797 control runtime dispatch in the library via separate variable LIBXXH_DISPATCH
disabled by default (in contrast with `DISPATCH`, which is enabled by default, for `xxhsum`).
2024-12-26 18:51:36 -08:00
Yann Collet
8aa8944b27 Merge pull request #983 from Cyan4973/mingw64_og
Added -Og test to mingw on Github Actions
2024-12-26 17:58:46 -08:00
Yann Collet
574aabad87 document XXH_NO_INLINE_HINTS as being useful for -Og
some compiler versions may require it.
2024-12-26 17:06:27 -08:00
Yann Collet
5dd119795e fix -Og test, by adding -DXXH_NO_INLINE_HINTS 2024-12-26 17:01:02 -08:00
Yann Collet
71891a0bda Added -Og test to mingw GA test 2024-12-26 16:53:08 -08:00
Yann Collet
cf9e2dc589 Merge pull request #986 from Cyan4973/autovec_x86
enable by default runtime detection of vector extension on x86/64 target
2024-12-26 16:47:48 -08:00
Yann Collet
5c6dd83b42 removed the XXH_X86DISPATCH_ALLOW_AVX build variable
if the program is compiled with, for example, -mavx2,
then the resulting binary will simply require this instruction set to run.
2024-12-26 16:24:09 -08:00
Yann Collet
5a8de81527 make XXH_VECTOR values more accessible
via #include "xxhash.h"
to fix double-include issues in xsum_arch.c
2024-12-26 16:10:04 -08:00
Yann Collet
cfd77237e6 updated doc 2024-12-26 16:02:40 -08:00
Yann Collet
877d9e5092 enable runtime detection of vector extension on x86/64 target 2024-12-26 15:25:51 -08:00
Yann Collet
6fe4f191b6 Merge pull request #985 from Cyan4973/autovec_rtdiag
xxhsum with auto-dispatch displays the locally detected vector extension
2024-12-26 11:36:23 -08:00