26 Commits

Author SHA1 Message Date
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
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
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
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
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
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
dadcbc4a0f first commit of the brute-force collision tester 2020-02-28 16:28:43 -08:00