Commit Graph

1068 Commits

Author SHA1 Message Date
Yann Collet
26fded0503
Merge pull request #418 from Cyan4973/dispatch_cxx
fixed dispatcher compilation in c++ mode
2020-07-05 01:58:15 -07:00
Yann Collet
56e03e7562
Merge pull request #419 from Cyan4973/welcomeMessage
minor welcome message tweaks
2020-07-05 00:27:38 -07:00
Yann Collet
26b7fdff4c Merge branch 'dev' into dispatch_cxx 2020-07-05 00:26:11 -07:00
Yann Collet
b694f972dd
Merge pull request #417 from Cyan4973/shuffle_avx512
fix _mm512_shuffle_epi32 in c++ mode
2020-07-05 00:22:43 -07:00
Yann Collet
be54f1f793 minor welcome message tweaks
- display binary name without path
- only provide binary name and version by default
- print extended compilation information on benchmark and --version
2020-07-02 17:02:38 -07:00
Yann Collet
9caf801b67 fixed CI test 2020-07-02 16:39:47 -07:00
Yann Collet
e4ecae117c fixed dispatcher compilation in c++ mode 2020-07-02 16:35:52 -07:00
Yann Collet
6379a93461 fix _mm512_shuffle_epi32 in c++ mode
added relevant test in CI
2020-07-02 15:50:49 -07:00
Yann Collet
c77920d92e
Merge pull request #414 from martinetd/defaultalgo
xxh*sum: print correct default algo for symlinked helpers
2020-06-28 00:44:55 -07:00
Yann Collet
f171e87f33
Merge pull request #413 from easyaspi314/wpedantic-hotfix
Fix C99isms in XXH3_initCustomSecret_avx512
2020-06-28 00:40:53 -07:00
Dominique Martinet
3b0668ee52 xxh*sum: print correct default algo for symlinked helpers
Printing xxh128sum's help for example would say default algo is xxh64,
which is not correct. Adjust g_defaultAlgo accordingly as well as the
currently selected algorithm.
2020-06-28 07:21:01 +02:00
easyaspi314 (Devin)
6c82248bdb Fix C99isms in XXH3_initCustomSecret_avx512
Removed // comments and a compound literals.
2020-06-27 23:03:19 -04:00
Yann Collet
e9322f488d
Merge pull request #411 from ellert/compiler-warn-32bit
Fix compiler warning for 32 bit architectures
2020-06-27 15:14:10 -07:00
Mattias Ellert
2677da37d5 Fix compiler warning for 32 bit architectures
In file included from xxhash.h:2065,
                 from xxhash.c:43:
xxh3.h: In function 'XXH3_len_9to16_128b':
xxh3.h:2278: warning: integer constant is too large for 'long' type
2020-06-27 20:05:58 +02:00
Yann Collet
173e50be05
Merge pull request #408 from Cyan4973/newOutput074
Modifies XXH3/XXH128 return values
2020-06-24 23:32:16 -07:00
Yann Collet
775d03d5e7 minor changelog update, prepating v0.7.4 2020-06-24 19:23:05 -07:00
Yann Collet
f41dc60ff1 updated comments on _withSecret() variants
re-inforce the need for a high entropy source for `secret`.
2020-06-24 17:03:00 -07:00
Yann Collet
999e5c363e fixed and restored self-tests 2020-06-24 16:06:06 -07:00
Yann Collet
fa2dabbc04
Merge pull request #407 from Cyan4973/all128
Switch mixer to XXH128
2020-06-24 16:05:38 -07:00
Yann Collet
6ab5932983 XXH3 mixer is now the same as XXH128
Simplify code
2020-06-24 13:07:31 -07:00
Yann Collet
9548436582 use 128-bit mixing even in 64-bit mode 2020-06-24 00:41:16 -07:00
Yann Collet
b781a9bdb2
Merge pull request #406 from Cyan4973/backtothefarsh
reverted default secret to Farsh
2020-06-23 20:32:37 -07:00
Yann Collet
3cc3e49014 removed extraneous tests
necessarily wrong, due to ongoing changes to default secret
2020-06-23 15:00:34 -07:00
Yann Collet
be32411fcc reverted default secret to Farsh 2020-06-23 14:46:48 -07:00
Yann Collet
abf93128fc
Merge pull request #405 from erijo/dispatch-defines
Dispatch defines
2020-06-23 09:29:45 -07:00
Yann Collet
2b8da903c9
Merge pull request #404 from erijo/ndebug
Fix redefinition warning when NDEBUG is defined during build
2020-06-23 09:22:35 -07:00
Erik Johansson
3ad5c01625 Make xxh_x86dispatch build without XXH_DISPATCH_AVX2 defined 2020-06-23 11:38:09 +02:00
Erik Johansson
2b5c61dabf Fix build when XXH_DISPATCH_AVX512 isn't defined
This makes it possible to disable AVX512 by removing the define.
2020-06-23 11:16:53 +02:00
Erik Johansson
516867a44d Fix redefinition warning when NDEBUG is defined during build 2020-06-23 10:49:27 +02:00
Yann Collet
ef21d43e34
Merge pull request #403 from Cyan4973/fullBlocks
small speed boost when len is multiple of block size
2020-06-22 22:00:17 -07:00
Yann Collet
2d793b4eef
Merge pull request #402 from Cyan4973/pi
replaced the default kSecret by decimals of Pi
2020-06-22 21:59:56 -07:00
Yann Collet
3a5637f8c1 Merge branch 'newOutput074' into pi 2020-06-22 21:59:39 -07:00
Yann Collet
9dab074b0e
Merge pull request #395 from Cyan4973/demerphq_xxh3
fixed demerphq avalanche tests for len [0-3]
2020-06-22 21:57:59 -07:00
Yann Collet
6e5d5d7668 do not scramble when input len is multiple of block size
also :
always use "last secret" for last stripe

changes suggested by @gzm55
2020-06-22 21:40:07 -07:00
Yann Collet
469274ab67 replaced the default kSecret by decimals of Pi
should be random enough
2020-06-22 15:48:50 -07:00
Yann Collet
adf47e6a35 Merge branch 'dev' into demerphq_xxh3 2020-06-22 10:28:11 -07:00
Yann Collet
8256aef21b
Merge pull request #399 from Cyan4973/direct_kSecret
fixed performance issue reported in #398
2020-06-22 09:57:28 -07:00
Yann Collet
3bdc590879
Merge pull request #396 from Cyan4973/bsdStyle
introduced --tag for BSD-style output
2020-06-22 09:46:32 -07:00
Yann Collet
fc46fa46c0
Merge pull request #397 from Cyan4973/libdispatch
allow optional compilation of libxxhash with DISPATCH=1
2020-06-20 08:31:27 -07:00
Yann Collet
49a4dd0c43 benchhash : removed fractional part 2020-06-20 07:52:56 -07:00
Yann Collet
ec2d1a7ec0 removed fractional part of bench measurement
to simplify importation
2020-06-20 00:08:42 -07:00
Yann Collet
71566dfcee fixed performance issue reported in #398
also : fixed XXH128_withSecret(),
which was messed up with default `kSecret`.
This error remained unnoticed because their was no test for this variant.
Added a test in `xxhsum` checking results of `XXH128_withSecret()`
2020-06-19 15:59:23 -07:00
Yann Collet
744f7b01a4 DISPATCH=1 for make install 2020-06-19 13:18:39 -07:00
Yann Collet
9836059130 blindfix for windows compilation
`const`ify parameters
2020-06-18 17:17:09 -07:00
Yann Collet
5f44a42668 allow optional compilation of libxxhash with DISPATCH=1
embedding the `*_dispatch()` symbols into the library.
2020-06-18 16:33:29 -07:00
Yann Collet
00833b2631 fixed incorrect assert 2020-06-18 16:13:13 -07:00
Yann Collet
a7a617584c introduced --tag for BSD-style output
hidden option for the time being (undocumented)
as it's only an output format,
there is no ability to `-c` check it yet.

The effort was however useful in refactoring `xxhsum` code base.

One advantage of the `--tag` BSD format is
that it's a lot safer to introduce additional formats.
For example, little and big-endian variants can co-exist safely,
since endianess is clearly expressed as part of the algorithm name.
It would also make it possible to introduce XXH3 (later),
even though it's 64-bit, which would be confusing with XXH64.

Also :
added ability to select algorithm by specifying bit width.
Hence :
H0 == H32 ==> XXH32
H1 == H64 ==> XXH64
H2 == H128==> XXH128
2020-06-18 16:00:10 -07:00
Yann Collet
1320ac8a4e minor refactor : simplify hash printing function
using function pointer.
2020-06-18 14:24:27 -07:00
Yann Collet
2e88626a2c minor refactor
check scenario with input size == exact nb of blocks
though not a multiple of 256 (streaming internal buffer size)
2020-06-18 12:39:53 -07:00
Yann Collet
6e1ba913bb fixed XXH128 seed avalanche for inputs of len [0-3] 2020-06-18 00:17:03 -07:00