Yann Collet
236b98e7de
Merge pull request #2310 from senhuang42/fix_multifile_status_bar
...
Fix multifile status bar and summary - clear out extraneous characters
2020-09-25 07:48:33 -07:00
Nick Terrell
f1cbeec039
[superblock] Reduce stack usage by correctly sizing header buffers
2020-09-24 19:42:04 -07:00
Nick Terrell
6a1e526ea7
[lib] Add ZSTD_COMPRESS_HEAPMODE tuning parameter
2020-09-24 19:42:04 -07:00
Nick Terrell
b841387218
[freestanding] Improve macro resolution to handle #if X
2020-09-24 19:42:04 -07:00
Nick Terrell
caecd8c211
Allow user to override ASAN/MSAN detection
...
Rename ADDRESS_SANITIZER -> ZSTD_ADDRESS_SANITIZER and same for
MEMORY_SANITIZER. Also set it to 0/1 instead of checking for defined.
This allows the user to override ASAN/MSAN detection for platforms that
don't support it.
2020-09-24 19:42:04 -07:00
Nick Terrell
88fac5d514
Remove call to memset
...
The previous commit fixes the test so it errors on calls to mem*()
functions from <string.h>.
2020-09-24 19:42:04 -07:00
Nick Terrell
683150e59f
[linux-kernel] Avoid including <string.h> in the tests
2020-09-24 19:42:04 -07:00
Nick Terrell
9ae0483858
Reorganize zstd_deps.h and mem.h + replace mem.h for the kernel
2020-09-24 19:41:59 -07:00
Nick Terrell
260fc75028
Move __has_builtin() fallback define to compiler.h
2020-09-24 15:51:08 -07:00
Nick Terrell
4d63ee57f5
Move ASAN/MSAN support declarations to compiler.h
2020-09-24 15:51:08 -07:00
Nick Terrell
b09ec5c2b9
Remove MEM_STATIC_ASSERT and use DEBUG_STATIC_ASSERT instead
2020-09-24 15:51:04 -07:00
senhuang42
9f7212a48b
Update unit tests
2020-09-24 16:44:33 -04:00
senhuang42
88f4410390
Add more useful failure message when stdin is an input
2020-09-24 16:29:12 -04:00
senhuang42
93d63eaeb8
Expand UTIL_requireUserConfirmation to include stdin input check
2020-09-24 15:58:06 -04:00
senhuang42
432186cbea
Add FIO_determineHasStdinInput() function and member to fCtx
2020-09-24 15:55:30 -04:00
senhuang42
0e8ac6b995
Add fCtx to FIO_openDstFile()
2020-09-24 15:49:30 -04:00
Yann Collet
c6c0a57c53
Merge pull request #2315 from senhuang42/allow_zstd_suffix
...
Support .zstd suffix only for decompression
2020-09-24 09:44:48 -07:00
Nick Terrell
9009b59f09
[linux-kernel] Add missing semicolon in zstd_deps.h
2020-09-23 23:26:10 -07:00
Nick Terrell
9261476b7d
[lib] Wrap customMem xor checks in parens for readability
...
This clarifies operator precedence, and quiets cppcheck in
the Kernel Test Robot. I think this is a slight bonus to
readability, so I am accepting the suggestion.
2020-09-23 23:26:07 -07:00
Nick Terrell
2fc1d50ee7
Merge pull request #2324 from terrelln/kernel-test-fix
...
Silence warnings reported by Kernel Test Robot
2020-09-23 15:01:56 -07:00
Nick Terrell
a70fa342f0
[CI][linux-kernel] Enable -Wunused-const-variable and -Wunused-but-set-variable
2020-09-23 12:59:57 -07:00
Nick Terrell
dec7fb03ec
[lib] Silence -Wunused-const-variable warnings
2020-09-23 12:59:57 -07:00
Nick Terrell
978659d34f
[linux-kernel] Fix unused variable warnings with malloc, calloc, and free
2020-09-23 12:59:57 -07:00
senhuang42
21cd640b93
Add unit tests to guard against bad stdin
2020-09-22 14:55:41 -04:00
senhuang42
7aa3da1cd7
Use IS_CONSOLE macro to detect that we're indeed using a console
2020-09-22 14:15:52 -04:00
Nick Terrell
8170e3ca6d
Merge pull request #2320 from terrelln/test-fix
...
[tests] Don't write to stdout
2020-09-22 10:58:48 -07:00
senhuang42
8adeb9f1e6
Updated to repcode documentation to reflect dict content size
2020-09-22 13:24:27 -04:00
senhuang42
9dcfe4d7b7
Update documentation about repcodes in dictionaries
2020-09-22 13:02:26 -04:00
Nick Terrell
973f2adeec
[tests] Don't write to stdout
2020-09-22 00:40:27 -07:00
Yann Collet
5618e000bd
update fullbench for compressStream2()
...
makes it possible to measure scenarios such as #2314
2020-09-21 07:19:20 -07:00
animalize
2e5d73dd72
Use `MEM_STATIC FORCE_INLINE_ATTR` instead of `FORCE_INLINE_TEMPLATE`
...
It adds `__attribute__((unused))` for __GNUC__, to eliminate `-Werror=unused-function` error.
2020-09-21 13:26:38 +08:00
animalize
0a69a6b1ca
Let MSVC force inline ZSTD_hashPtr() function
...
ZSTD_hashPtr() function was not expanded by MSVC, led to low performance compared to GCC.
2020-09-21 10:38:55 +08:00
Felix Handte
200c960f1d
Merge pull request #2311 from felixhandte/ddss-fix-cparam-derivation
...
Fix Compression Parameter Derivation Bugs Introduced by DDSS Changes
2020-09-18 14:02:14 -04:00
senhuang42
07034952df
Add -f to .zstd decompression CLI test
2020-09-18 13:01:45 -04:00
senhuang42
6b6cc80196
Support .zstd suffix only for decompression
2020-09-18 12:49:51 -04:00
Felix Handte
5870c47bc0
Merge pull request #2313 from felixhandte/fuzzer-separate-long-tests
...
Separate Long Tests in Fuzzer
2020-09-18 12:03:00 -04:00
W. Felix Handte
e991f9994d
Run Long Tests in GitHub CI
2020-09-17 13:31:10 -04:00
W. Felix Handte
9398acb245
Move Last Two Long Tests in fuzzer.c into Separate --long-tests Section
2020-09-17 13:31:10 -04:00
W. Felix Handte
f23a321781
Update Regression Test Results
2020-09-17 12:23:05 -04:00
W. Felix Handte
8930c6e551
Use ZSTD_CCtxParams_init() to Init CCtxParams, not memset()
...
Even if the discrepancies are at the moment benign, it's probably better to
standardize on using the one true initializer, rather than trying (and failing)
to correctly duplicate its behavior.
2020-09-17 12:15:33 -04:00
W. Felix Handte
e8a44326fa
Avoid Redundancy in ZSTD_initCDict_internal() Args; Don't Take CParams + CCtxParams
2020-09-17 12:08:36 -04:00
senhuang42
29b8f2eb08
Fix multifile decompression summary
2020-09-16 10:38:13 -04:00
senhuang42
1d5c6fda9f
Add filename truncations to decompression
2020-09-16 10:28:45 -04:00
W. Felix Handte
eee51a664a
Fall Back if Derived CParams are Incompatible with DDSS; Refactor CDict Creation
...
Rewrite ZSTD_createCDict_advanced() as a wrapper around
ZSTD_createCDict_advanced2(). Evaluate whether to use DDSS mode *after* fully
resolving cparams. If not, fall back.
2020-09-15 18:01:08 -04:00
senhuang42
ab0d332563
Add display clears
2020-09-15 15:53:32 -04:00
W. Felix Handte
bc6521a6f6
Make ZSTD_createCDict_advanced2() cctxParams Arg Const
2020-09-15 14:06:10 -04:00
W. Felix Handte
26a96a5b35
Do More Complete CParams Deduction in Non-DDSS Path of ZSTD_createCDict_advanced2
...
Call ZSTD_getCParamsFromCCtxParams() instead of ZSTD_getCParams_internal().
2020-09-15 13:57:43 -04:00
W. Felix Handte
a2af804129
Pull CParam Override Logic into Helper
2020-09-15 13:38:05 -04:00
senhuang42
cad6bf99af
Add padding to remove previous line's leftovers, and keep the printed line to around the same size
2020-09-15 13:01:46 -04:00
Nick Terrell
d96e98cfde
Merge pull request #2308 from terrelln/zstd-kernel
...
[contrib][linux-kernel] Add decompress_sources.h
2020-09-14 14:56:30 -07:00