Commit Graph

36 Commits

Author SHA1 Message Date
Takayuki Matsuoka
bd4ded94ee Introduce md5sum style filename escape convention
For details, see issue #695.

If filename contains special character (\n, 0x0a, LF),

- Put '\' (0x5c) at the beginning of the line.
- Escape special character by '\'.
2022-04-04 19:52:50 +09:00
Yannic Staudt
81972bf476 Added tipi.build support and instructions to xxHash (incl. ci build) 2022-03-09 18:01:45 +01:00
Yann Collet
8e5afc71b3 fixed minor warnings 2021-12-11 10:28:20 -08:00
Yann Collet
f035303b8a updated copyright years 2021-12-08 11:04:22 -08:00
Yann Collet
836f4e735c fix man page installation
for variant redirectors (`xxh32sum`, `xxh64sum` and `xxh128sum`).
fix #647, reported by @jpalus.

Also : slightly updated man page text, for clarity and accuracy.
2021-12-04 10:29:49 -08:00
easyaspi314 (Devin)
2e7af136e2 Fix CLI detection for Windows ARM and ARM64EC
Not that you would get an ARMv7 binary to run in cmd but it fixes
it nonetheless.
2021-11-30 01:38:35 -05:00
Yann Collet
c7ed8b54c2 activate _dispatch() (when enabled) in benchmark mode 2021-11-29 10:31:59 -08:00
Yann Collet
a0e9159bdc more generator tests
with multiple secret lengths
2021-11-28 20:17:57 -08:00
Yann Collet
6eb4e03b3e XXH3_generateSecret() can now generate secret of any size
as long as it's >= XX3_SECRET_SIZE_MIN .

Note that results produced by this version
are not comparable to results produced by earlier version.
XXH3_generateSecret() is still considered experimental,
aka, its result is not yet guaranteed to remain stable across versions.
2021-11-28 20:01:46 -08:00
Yann Collet
079d6bba3b updated man page 2021-11-28 17:36:55 -08:00
Yann Collet
d14507f4ad updated documentation for -H3 2021-11-28 17:35:46 -08:00
Yann Collet
35cc12401c more thorough format validation with --check
in --tag mode, will detect mismatch between algo name and algo width.
2021-11-28 17:14:34 -08:00
Yann Collet
ca3a9923c4 added XXH3 to the list of possible hashes
using command `-H3`.
Specifying `-H3` necessarily triggers BSD-style `--tag` mode,
in order to prevent any possibility of confusion with XXH64.
2021-11-28 16:53:56 -08:00
Yann Collet
29353eb21f reduce dependencies 2021-11-28 11:42:51 -08:00
Yann Collet
2257be33b4 fix annoying mingw conversion warnings 2021-11-28 11:22:20 -08:00
Yann Collet
2b8fc59ccd fix minor conversion warning 2021-11-28 11:01:13 -08:00
Yann Collet
f9ce9c5fd9 separate benchmark functions into xsum_bench.c 2021-11-28 10:44:00 -08:00
Yann Collet
08ae025730 added test for correspondance with _withSecret() 2021-11-27 23:02:43 -08:00
Yann Collet
f87c51515d added variant XXH3_128bits_reset_withSecretandSeed() 2021-11-27 20:58:36 -08:00
Yann Collet
6a23376980 added variant XXH3_64bits_reset_withSecretandSeed() 2021-11-27 20:31:42 -08:00
Yann Collet
9953ed6a51 Merge branch 'dev' into secretandseed 2021-11-27 18:04:13 -08:00
Yann Collet
a2d465dadf added XXH32 + XXH64 streaming variants to benchmark 2021-11-26 16:24:59 -08:00
Yann Collet
cdc182510d fix minor conversion warning in clang for windows
fix #588
2021-11-25 19:59:45 -08:00
Yann Collet
85e1ea2ab0 clarify license
fix request #548
2021-11-25 13:57:02 -08:00
Yann Collet
cfb05264c2 removed XXH_ACCEPT_NULL_INPUT_POINTER
All variants are now directly compatible with input_ptr==NULL,
with no extra check nor indirection,
though it now *requires* that, in this case, len == 0.
2021-11-25 11:00:45 -08:00
Dimitris Apostolou
b802f53487 Fix typos 2021-11-13 11:02:14 +02:00
Yann Collet
dfbd52684f added XXH3_128bits_withSecretandSeed() variant 2021-08-26 11:47:41 -07:00
Yann Collet
665424e720 added variant XXH3_64bits_withSecretandSeed()
and its companion XXH3_generateSecret_fromSeed().

The new variant uses @seed for "small" keys,
and @secret for "large" keys.
When combined with the new generator,
it provides exactly the same results as _withSeed(),
with the benefit of pre-caculated @secret for "large keys",
resulting in a speed boost for "not too large" keys (<1 KB).
2021-08-25 15:39:12 -07:00
Yann Collet
f87aec4a7a minor cleaning
As suggested by @pdillinger in #549,
`XXH_endianess` is never used and should be removed.
2021-08-21 09:56:34 -07:00
Yann Collet
6e7a7b8679 fix relative include directory
`xxhash.h` expected into `../` directory.
This method does not depend on setting `-I` include directory.
However, it relies on source code preserving its original arborescence.
2021-07-12 22:39:40 -07:00
Yann Collet
00b7bd1243 regroup all xxhsum files into cli/ 2021-07-12 22:34:34 -07:00
Yann Collet
21cf00d42d fixed compile time x86 cpu detection 2020-11-12 11:57:32 -08:00
Yann Collet
15f61dbe55 fix compilation on macOS
added macOS test to travisCI
2020-09-26 10:24:57 -07:00
easyaspi314 (Devin)
684812267d xsum_sanity_check.c: Refactor to use tables
Refactored xsum_sanity_check.c to use a table instead of direct
function calls. This is cleaner and has smaller code size.

Additionally, did some cleanup to reduce repetition a bit. There is
still a lot of DRY that could be applied to this file.
2020-09-20 14:16:06 -04:00
easyaspi314 (Devin)
1d00c51237 xxhsum: split sanity check
It now exists in xsum_sanity_check.c

Also add `XSUM_NO_TESTS` option, which instead prints "This version of xxhsum
is not verified." to stderr whenever XSUM_sanityCheck() is called.
2020-09-19 19:30:39 -04:00
easyaspi314 (Devin)
4b0d1731f1 xxhsum: move programs/xxhsum -> cli by request
also use XXHSUM_SRC_DIR in Makefile
2020-09-18 17:44:15 -04:00