Yann Collet
5d975f2d16
fix -Og compilation with g++-14
2025-05-04 23:16:36 -07:00
Yann Collet
379f7eb2c8
fixed debug target for collisionsTest
2025-05-04 19:31:03 -07:00
Yann Collet
1248dc724c
collisionsTest is now compiled with multiconf.make
...
and multiconf.make now supports both *.cpp and *.cc C++ source files.
2025-05-04 17:33:26 -07:00
Yann Collet
282f39afc7
proper argument order for calloc()
...
count, then width
2024-05-13 18:07:32 -07:00
Yann Collet
24a05ff503
allow collision tester to run in 32-bit mode
...
though it's hardly useful,
but it allows CI to run runtime tests.
2023-07-24 15:59:32 +02:00
Yann Collet
284fdb14a8
fix MINGW
2023-07-24 14:25:29 +02:00
Yann Collet
90e54a21ea
fixed minor conversion warning
...
and added runtime tests for collision tester.
2023-07-23 02:26:24 +02:00
Yann Collet
981414861b
filter memory reduction
...
after bit tracing stage
2023-07-23 00:09:11 +02:00
Yann Collet
41b6a0a7f3
updated filter layout for faster performance
2023-07-22 23:54:43 +02:00
Yann Collet
aa255a4b7f
align the filter on cache lines
2023-07-22 23:54:43 +02:00
Haojian Zhuang
dde858b9a2
fix issues reported by cppcheck
...
Run command "make clean cppcheck".
---- static analyzer - cppcheck ----
cppcheck . --force --enable=warning,portability,performance,style --error-exitcode=1 > /dev/null
cli/xsum_os_specific.c:220:9: style: The scope of the variable 'ret' can be reduced. [variableScope]
int ret;
^
cli/xsum_sanity_check.c:571:19: style: Condition 'len>0' is always true [knownConditionTrueFalse]
} else if (len>0) {
^
cli/xsum_sanity_check.c:569:13: note: Assuming that condition 'len==0' is not redundant
if (len == 0) {
^
cli/xsum_sanity_check.c:571:19: note: Condition 'len>0' is always true
} else if (len>0) {
^
tests/bench/benchHash.c:112:55: error: Uninitialized variables: result.internal_never_ever_use_directly, result.error_result_never_ever_use_directly, result.error_tag_never_ever_use_directly [uninitvar]
BMK_runTime_t const runTime = BMK_extract_runTime(result);
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:112:55: note: Uninitialized variables: result.internal_never_ever_use_directly, result.error_result_never_ever_use_directly, result.error_tag_never_ever_use_directly
BMK_runTime_t const runTime = BMK_extract_runTime(result);
^
tests/bench/benchfn.c:95:12: error: Uninitialized variable: outcome.error_result_never_ever_use_directly [uninitvar]
return outcome;
^
tests/collisions/main.c:209:14: style: Same expression on both sides of '<='. [duplicateExpression]
assert(m <= m);
^
make: *** [Makefile:387: cppcheck] Error 1
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org >
2022-10-19 13:10:12 +08:00
Yann Collet
f035303b8a
updated copyright years
2021-12-08 11:04:22 -08:00
Dimitris Apostolou
b802f53487
Fix typos
2021-11-13 11:02:14 +02:00
Yann Collet
e523b457b5
blindfix for mingw32 conversion warning
2021-08-17 15:31:05 -07:00
Yann Collet
f657e87c91
fix minor conversion warnings
2021-08-17 09:08:03 -07:00
Yann Collet
c11b0b96f8
fix #563
...
ensure that building test tools preserves compilation flags
including -std=c99 and -std=c++11
when invoked with CFLAGS pre-set
so that it properly compiles with gcc <= 4.8 .
reported by @t-mat.
2021-08-17 08:58:09 -07:00
Yann Collet
4c881f796d
fix minor warning
2020-11-26 15:04:08 -08:00
Yann Collet
758ed175ae
do not display collision hash values by default
2020-11-26 15:02:33 -08:00
Yann Collet
2c992d0cc7
merge xxh3 implementation within xxhash.h
...
xxh3.h is no longer necessary
but remains available,
in case some programs do #include "xxh3.h" directly.
Also : bumped version number to v0.8.0
2020-07-23 10:24:51 -07:00
easyaspi314 (Devin)
519dc67b23
Replace --std with -std, fix typo
...
`--std` is improper but accepted. The correct option is `-std`.
2020-03-10 01:21:23 -04:00
easyaspi314 (Devin)
4d4ce34a56
Fix Makefile portability issues
...
Don't use `-mavx2 -maes` in collisions
It prevents `make test` from passing on non-x86 targets
TODO: proper Windows library flags: bfd accepts Linux flags, but
ld.lld errors on `-Wl,-soname`
2020-03-10 01:20:47 -04:00
Yann Collet
8405fd6d33
fix typo default sample size
2020-03-08 23:24:08 -07:00
easyaspi314 (Devin)
c994f5c9ef
Fix copyright years
...
- Replace '-present' with '-2020' (fixes #329 )
- Use correct format: Copyright (C) <year> <name of author>
- Fix some obviously incorrect years from copy/paste i.e. avoid time travel
2020-03-08 21:28:43 -04:00
Yann Collet
ff5df558b7
changed xxhash.com links to https
2020-03-04 18:36:13 -08:00
Yann Collet
88680827e4
added unicode mention in changelog
2020-03-04 16:42:28 -08:00
Yann Collet
aac98c3d4f
add : xxh3 len==8 100G collision test result
2020-03-04 14:28:12 -08:00
Yann Collet
08792b56ba
Merge branch 'dev' into xxh128v18
2020-03-04 12:27:35 -08:00
Yann Collet
d9152c1cff
updated xxh128
...
pass the last test (2 collisions detected when restricting output to low 64-bit)
Also : minor update to `collisionsTest` examples
2020-03-04 09:59:08 -08:00
easyaspi314 (Devin)
87e7d8b999
More typos, add some more documentation
...
- Remove most remaining spaces before punctuation
- Fix a few missed copyright messages
- Document the timer resolution workaround
- Document XXH_mult32to64
- I compiled GCC 3.2 and 4.2 just to test this, both are affected.
- Make sure we downcast for __emulu
- Other minor fixes
2020-03-03 12:10:19 -05:00
Yann Collet
a6c1ff95d9
updated a few links to https
2020-03-02 14:26:49 -08:00
easyaspi314 (Devin)
6fdff4b423
Fix copyright message formatting, update copyright years
...
- Add missing copyright for generate_unicode_test.c
- use my real name, whatever
- Fix blatantly incorrect copyright years
- Update copyright years in xxhash.c/xxhash.h
- Fix formatting
- More typo fixes in multiInclude.c
2020-03-02 15:52:43 -05:00
easyaspi314 (Devin)
9eb91a3b53
Let the Great Typo Hunt commence!
...
Work in progress.
- Fix many spelling/grammar issues, primarily in comments
- Remove most spaces before punctuation
- Update XXH3 comment
- Wrap most comments to 80 columns
- Unify most comments to use the same style
- Use hexadecimal in the xxhash spec
- Update help messages to better match POSIX/GNU conventions
- Use HTML escapes in README.md to avoid UTF-8
- Mark outdated benchmark/scores
2020-03-02 15:20:49 -05:00
Yann Collet
645975d8ba
fixed minor typos
2020-03-01 18:42:42 -08:00
Yann Collet
a603671c92
attempt to fix clang compilation of collision test
2020-03-01 17:51:48 -08:00
Yann Collet
3021a28972
attempt to disable MT on MINGW32 through build macro
2020-03-01 16:37:52 -08:00
Yann Collet
0d97e52912
test adding stdio
2020-03-01 15:56:09 -08:00
Yann Collet
8072b3798a
forgot the include
2020-03-01 15:42:31 -08:00
Yann Collet
7d05df56cc
win version must be enforced
2020-03-01 15:05:40 -08:00
Yann Collet
cec4da8c1a
minor change for mingw32 compilation
2020-03-01 14:49:38 -08:00
Yann Collet
dd5d4b5526
update the SLAB5 pattern generator
2020-02-28 19:35:16 -08:00
Yann Collet
18725e9251
completed doc with a few examples
2020-02-28 19:11:40 -08:00
Yann Collet
7e7d65260b
make partial bitfield collision tester compatible with 32-bit
2020-02-28 17:41:33 -08:00
Yann Collet
e618ec4dcc
simplify integration of other hash algorithms
2020-02-28 17:07:12 -08:00
Yann Collet
dadcbc4a0f
first commit of the brute-force collision tester
2020-02-28 16:28:43 -08:00