zstd-native-ruby 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +4 -2
- data/README.md +50 -23
- data/ext/zstd_native/Makefile +269 -0
- data/ext/zstd_native/extconf.rb +37 -0
- data/{vendor → ext/zstd_native}/zstd/CONTRIBUTING.md +1 -6
- data/{vendor → ext/zstd_native}/zstd/Makefile +6 -5
- data/{vendor → ext/zstd_native}/zstd/README.md +35 -42
- data/ext/zstd_native/zstd/build/cmake/CMakeLists.txt +228 -0
- data/{vendor → ext/zstd_native}/zstd/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake +19 -21
- data/{vendor → ext/zstd_native}/zstd/build/cmake/README.md +0 -9
- data/{vendor → ext/zstd_native}/zstd/build/cmake/lib/CMakeLists.txt +6 -9
- data/{vendor → ext/zstd_native}/zstd/build/meson/lib/meson.build +0 -4
- data/{vendor → ext/zstd_native}/zstd/build/meson/meson.build +2 -1
- data/{vendor → ext/zstd_native}/zstd/contrib/externalSequenceProducer/main.c +2 -3
- data/{vendor → ext/zstd_native}/zstd/contrib/largeNbDicts/largeNbDicts.c +0 -2
- data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/linux_zstd.h +0 -166
- data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/zstd_compress_module.c +0 -49
- data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/zstd_decompress_module.c +0 -36
- data/{vendor → ext/zstd_native}/zstd/contrib/premake/zstd.lua +0 -1
- data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Logging.h +0 -1
- data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/Makefile +1 -3
- data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/parallel_compression.c +84 -124
- data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/parallel_processing.c +5 -2
- data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/tests/Makefile +2 -22
- data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/tests/seekable_tests.c +0 -12
- data/{vendor → ext/zstd_native}/zstd/doc/zstd_compression_format.md +2 -3
- data/{vendor → ext/zstd_native}/zstd/doc/zstd_manual.html +24 -31
- data/{vendor → ext/zstd_native}/zstd/lib/Makefile +9 -9
- data/{vendor → ext/zstd_native}/zstd/lib/README.md +4 -23
- data/{vendor → ext/zstd_native}/zstd/lib/common/bits.h +1 -1
- data/{vendor → ext/zstd_native}/zstd/lib/common/compiler.h +6 -24
- data/ext/zstd_native/zstd/lib/common/debug.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/entropy_common.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/error_private.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/fse_decompress.o +0 -0
- data/ext/zstd_native/zstd/lib/common/pool.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/portability_macros.h +0 -19
- data/{vendor → ext/zstd_native}/zstd/lib/common/threading.c +2 -16
- data/ext/zstd_native/zstd/lib/common/threading.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/xxhash.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/zstd_common.c +0 -9
- data/ext/zstd_native/zstd/lib/common/zstd_common.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/common/zstd_internal.h +2 -4
- data/{vendor → ext/zstd_native}/zstd/lib/compress/fse_compress.o +0 -0
- data/ext/zstd_native/zstd/lib/compress/hist.c +191 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/hist.h +0 -4
- data/ext/zstd_native/zstd/lib/compress/hist.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/huf_compress.c +0 -1
- data/{vendor → ext/zstd_native}/zstd/lib/compress/huf_compress.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress.c +16 -535
- data/ext/zstd_native/zstd/lib/compress/zstd_compress.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_internal.h +3 -3
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_literals.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_sequences.o +0 -0
- data/ext/zstd_native/zstd/lib/compress/zstd_compress_superblock.o +0 -0
- data/ext/zstd_native/zstd/lib/compress/zstd_double_fast.o +0 -0
- data/ext/zstd_native/zstd/lib/compress/zstd_fast.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_lazy.c +3 -47
- data/ext/zstd_native/zstd/lib/compress/zstd_lazy.o +0 -0
- data/ext/zstd_native/zstd/lib/compress/zstd_ldm.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_opt.c +10 -2
- data/ext/zstd_native/zstd/lib/compress/zstd_opt.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_preSplit.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/compress/zstdmt_compress.c +14 -15
- data/ext/zstd_native/zstd/lib/compress/zstdmt_compress.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/decompress/huf_decompress.c +48 -57
- data/ext/zstd_native/zstd/lib/decompress/huf_decompress.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/decompress/huf_decompress_amd64.S +18 -182
- data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_ddict.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_decompress.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_decompress_block.c +65 -167
- data/ext/zstd_native/zstd/lib/decompress/zstd_decompress_block.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/cover.c +67 -98
- data/ext/zstd_native/zstd/lib/dictBuilder/cover.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/divsufsort.c +4 -4
- data/ext/zstd_native/zstd/lib/dictBuilder/divsufsort.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/fastcover.c +40 -39
- data/ext/zstd_native/zstd/lib/dictBuilder/fastcover.o +0 -0
- data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/zdict.c +14 -18
- data/ext/zstd_native/zstd/lib/dictBuilder/zdict.o +0 -0
- data/ext/zstd_native/zstd/lib/dll/example/build_package.bat +20 -0
- data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v01.c +5 -6
- data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v03.c +1 -1
- data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v04.c +1 -1
- data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v05.c +1 -1
- data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v06.c +1 -1
- data/{vendor → ext/zstd_native}/zstd/lib/libzstd.mk +1 -4
- data/{vendor → ext/zstd_native}/zstd/lib/libzstd.pc.in +0 -1
- data/{vendor → ext/zstd_native}/zstd/lib/zstd.h +30 -41
- data/{vendor → ext/zstd_native}/zstd/programs/Makefile +8 -8
- data/{vendor → ext/zstd_native}/zstd/programs/README.md +1 -1
- data/{vendor → ext/zstd_native}/zstd/programs/benchzstd.c +62 -51
- data/{vendor → ext/zstd_native}/zstd/programs/benchzstd.h +2 -2
- data/{vendor → ext/zstd_native}/zstd/programs/dibio.c +5 -12
- data/{vendor → ext/zstd_native}/zstd/programs/fileio.c +152 -405
- data/{vendor → ext/zstd_native}/zstd/programs/fileio.h +1 -1
- data/{vendor → ext/zstd_native}/zstd/programs/fileio_types.h +1 -1
- data/{vendor → ext/zstd_native}/zstd/programs/timefn.c +1 -3
- data/{vendor → ext/zstd_native}/zstd/programs/util.c +65 -153
- data/{vendor → ext/zstd_native}/zstd/programs/util.h +2 -4
- data/{vendor → ext/zstd_native}/zstd/programs/zstd.1 +37 -225
- data/{vendor → ext/zstd_native}/zstd/programs/zstd.1.md +14 -14
- data/{vendor → ext/zstd_native}/zstd/programs/zstdcli.c +65 -82
- data/{vendor → ext/zstd_native}/zstd/programs/zstdcli_trace.c +1 -2
- data/{vendor → ext/zstd_native}/zstd/programs/zstdgrep.1 +1 -1
- data/{vendor → ext/zstd_native}/zstd/programs/zstdless.1 +1 -1
- data/{vendor → ext/zstd_native}/zstd/tests/Makefile +4 -8
- data/{vendor → ext/zstd_native}/zstd/tests/automated_benchmarking.py +2 -2
- data/{vendor/zstd/tests/largeDictionary.c → ext/zstd_native/zstd/tests/bigdict.c} +18 -16
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/help.sh.stdout.glob +1 -1
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/common/platform.sh +0 -11
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/multi-threaded.sh +0 -7
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/multi-threaded.sh.stderr.exact +0 -10
- data/ext/zstd_native/zstd/tests/cli-tests/dict-builder/no-inputs.sh.stderr.exact +5 -0
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh.stderr.exact +0 -4
- data/{vendor/zstd/tests/cli-tests/file-stat/compress-file-to-file.sh.stderr.glob → ext/zstd_native/zstd/tests/cli-tests/file-stat/compress-file-to-file.sh.stderr.exact} +0 -4
- data/{vendor/zstd/tests/cli-tests/file-stat/compress-stdin-to-file.sh.stderr.glob → ext/zstd_native/zstd/tests/cli-tests/file-stat/compress-stdin-to-file.sh.stderr.exact} +0 -4
- data/{vendor/zstd/tests/cli-tests/file-stat/decompress-file-to-file.sh.stderr.glob → ext/zstd_native/zstd/tests/cli-tests/file-stat/decompress-file-to-file.sh.stderr.exact} +0 -4
- data/{vendor/zstd/tests/cli-tests/file-stat/decompress-stdin-to-file.sh.stderr.glob → ext/zstd_native/zstd/tests/cli-tests/file-stat/decompress-stdin-to-file.sh.stderr.exact} +0 -4
- data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/run.py +1 -2
- data/{vendor → ext/zstd_native}/zstd/tests/fullbench.c +0 -1
- data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz_helpers.c +3 -2
- data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz_helpers.h +0 -1
- data/{vendor → ext/zstd_native}/zstd/tests/fuzzer.c +0 -335
- data/ext/zstd_native/zstd/tests/largeDictionary.c +128 -0
- data/{vendor → ext/zstd_native}/zstd/tests/legacy.c +0 -2
- data/{vendor → ext/zstd_native}/zstd/tests/longmatch.c +17 -38
- data/{vendor → ext/zstd_native}/zstd/tests/paramgrill.c +3 -3
- data/{vendor → ext/zstd_native}/zstd/tests/playTests.sh +34 -35
- data/{vendor → ext/zstd_native}/zstd/tests/regression/method.c +3 -3
- data/{vendor → ext/zstd_native}/zstd/tests/zstreamtest.c +1 -1
- data/ext/zstd_native/zstd_native.c +852 -0
- data/ext/zstd_native/zstd_native.o +0 -0
- data/ext/zstd_native/zstd_native.so +0 -0
- data/lib/zstd_native/version.rb +3 -0
- data/lib/zstd_native/zstd_native.so +0 -0
- data/lib/zstd_native.rb +6 -0
- metadata +647 -657
- data/CLAUDE.md +0 -101
- data/ext/zstd_ruby/extconf.rb +0 -35
- data/ext/zstd_ruby/zstd_ruby.c +0 -221
- data/lib/zstd_ruby.rb +0 -68
- data/vendor/zstd/CMakeLists.txt +0 -11
- data/vendor/zstd/build/cmake/CMakeLists.txt +0 -81
- data/vendor/zstd/build/cmake/CMakeModules/ZstdBuild.cmake +0 -42
- data/vendor/zstd/build/cmake/CMakeModules/ZstdDependencies.cmake +0 -30
- data/vendor/zstd/build/cmake/CMakeModules/ZstdOptions.cmake +0 -68
- data/vendor/zstd/build/cmake/CMakeModules/ZstdPackage.cmake +0 -42
- data/vendor/zstd/build/cmake/CMakeModules/ZstdVersion.cmake +0 -31
- data/vendor/zstd/lib/common/debug.o +0 -0
- data/vendor/zstd/lib/common/pool.o +0 -0
- data/vendor/zstd/lib/common/threading.o +0 -0
- data/vendor/zstd/lib/common/zstd_common.o +0 -0
- data/vendor/zstd/lib/compress/hist.c +0 -446
- data/vendor/zstd/lib/compress/hist.o +0 -0
- data/vendor/zstd/lib/compress/zstd_compress.o +0 -0
- data/vendor/zstd/lib/compress/zstd_compress_superblock.o +0 -0
- data/vendor/zstd/lib/compress/zstd_double_fast.o +0 -0
- data/vendor/zstd/lib/compress/zstd_fast.o +0 -0
- data/vendor/zstd/lib/compress/zstd_lazy.o +0 -0
- data/vendor/zstd/lib/compress/zstd_ldm.o +0 -0
- data/vendor/zstd/lib/compress/zstd_opt.o +0 -0
- data/vendor/zstd/lib/compress/zstdmt_compress.o +0 -0
- data/vendor/zstd/lib/decompress/huf_decompress.o +0 -0
- data/vendor/zstd/lib/decompress/zstd_decompress_block.o +0 -0
- data/vendor/zstd/lib/dll/example/build_package.bat +0 -55
- data/vendor/zstd/lib/install_oses.mk +0 -17
- data/vendor/zstd/tests/cli-tests/bin/unzstd +0 -1
- data/vendor/zstd/tests/cli-tests/bin/zstdcat +0 -1
- data/vendor/zstd/tests/cli-tests/determinism/basic.sh +0 -36
- data/vendor/zstd/tests/cli-tests/determinism/basic.sh.stderr.exact +0 -0
- data/vendor/zstd/tests/cli-tests/determinism/basic.sh.stdout.exact +0 -880
- data/vendor/zstd/tests/cli-tests/determinism/multithread.sh +0 -45
- data/vendor/zstd/tests/cli-tests/determinism/multithread.sh.stderr.exact +0 -0
- data/vendor/zstd/tests/cli-tests/determinism/multithread.sh.stdout.exact +0 -260
- data/vendor/zstd/tests/cli-tests/determinism/reuse.sh +0 -44
- data/vendor/zstd/tests/cli-tests/determinism/reuse.sh.stderr.exact +0 -0
- data/vendor/zstd/tests/cli-tests/determinism/reuse.sh.stdout.exact +0 -19
- data/vendor/zstd/tests/cli-tests/determinism/setup +0 -5
- data/vendor/zstd/tests/cli-tests/determinism/setup_once +0 -30
- data/vendor/zstd/tests/cli-tests/dict-builder/no-inputs.sh.stderr.exact +0 -5
- data/vendor/zstd/tests/test_process_substitution.bash +0 -92
- /data/{vendor → ext/zstd_native}/zstd/CHANGELOG +0 -0
- /data/{vendor → ext/zstd_native}/zstd/CODE_OF_CONDUCT.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/COPYING +0 -0
- /data/{vendor → ext/zstd_native}/zstd/LICENSE +0 -0
- /data/{vendor → ext/zstd_native}/zstd/Package.swift +0 -0
- /data/{vendor → ext/zstd_native}/zstd/SECURITY.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/TESTING.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/LICENSE +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2008/fullbench/fullbench.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2008/fuzzer/fuzzer.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2008/zstd/zstd.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2008/zstd.sln +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2008/zstdlib/zstdlib.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/CompileAsCpp.props +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/datagen/datagen.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/fullbench/fullbench.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/fuzzer/fuzzer.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/libzstd/libzstd.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/libzstd-dll/libzstd-dll.rc +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/libzstd-dll/libzstd-dll.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/zstd/zstd.rc +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/zstd/zstd.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS2010/zstd.sln +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2010.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2012.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2013.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2015.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2017.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2017Community.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2017Enterprise.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VS2017Professional.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.VSPreview.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/VS_scripts/build.generic.cmd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/CMakeModules/FindLibLZ4.cmake +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/CMakeModules/GetZstdLibraryVersion.cmake +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/CMakeModules/JoinPaths.cmake +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/contrib/CMakeLists.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/contrib/gen_html/CMakeLists.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/contrib/pzstd/CMakeLists.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/lib/cmake_uninstall.cmake.in +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/programs/CMakeLists.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/tests/CMakeLists.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/cmake/zstdConfig.cmake.in +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/GetZstdLibraryVersion.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/InstallSymlink.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/contrib/gen_html/meson.build +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/contrib/meson.build +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/contrib/pzstd/meson.build +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/meson_options.txt +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/programs/meson.build +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/tests/meson.build +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/meson/tests/valgrindTest.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/build_decoder_test.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/build_library_test.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/combine.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/combine.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/create_single_file_decoder.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/create_single_file_library.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/emscripten.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/roundtrip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/shell.html +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/simple.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/testcard-dxt1.inl +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/testcard-zstd.inl +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/examples/testcard.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/zstd-in.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/build/single_file_libs/zstddeclib-in.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/fullbench/fullbench.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/fuzzer/fuzzer.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/zstd/zstd.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/zstd.sln +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/VS2005/zstdlib/zstdlib.vcproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/cleanTabs +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/diagnose_corruption/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/diagnose_corruption/check_flipped_bits.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/docker/Dockerfile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/docker/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/externalSequenceProducer/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/externalSequenceProducer/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/externalSequenceProducer/sequence_producer.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/externalSequenceProducer/sequence_producer.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/freestanding_lib/freestanding.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/gen_html/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/gen_html/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/gen_html/gen-zstd-manual.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/gen_html/gen_html.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/largeNbDicts/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/largeNbDicts/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/btrfs-benchmark.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/btrfs-extract-benchmark.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/decompress_sources.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/linux.mk +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/mem.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/squashfs-benchmark.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/compiler.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/errno.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/kernel.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/limits.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/math64.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/module.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/printk.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/stddef.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/swab.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/types.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/unaligned.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/include/linux/xxhash.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/macro-test.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/static_test.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/test/test.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/zstd_common_module.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/linux-kernel/zstd_deps.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/match_finders/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/match_finders/zstd_edist.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/match_finders/zstd_edist.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/premake/premake4.lua +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/ErrorHolder.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Options.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Options.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Pzstd.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/Pzstd.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/SkippableFrame.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/SkippableFrame.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/images/Cspeed.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/images/Dspeed.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/main.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/test/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/test/OptionsTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/test/PzstdTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/test/RoundTrip.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/test/RoundTripTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/Buffer.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/FileSystem.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/Likely.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/Portability.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/Range.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/ResourcePool.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/ScopeGuard.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/ThreadPool.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/WorkQueue.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/BufferTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/RangeTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/ResourcePoolTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/ScopeGuardTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/ThreadPoolTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/pzstd/utils/test/WorkQueueTest.cpp +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/recovery/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/recovery/recover_directory.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/seekable_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/seekable_decompression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/examples/seekable_decompression_mem.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/zstd_seekable.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/zstd_seekable_compression_format.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/zstdseek_compress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seekable_format/zstdseek_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seqBench/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/seqBench/seqBench.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/contrib/snap/snapcraft.yaml +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/decompressor_errata.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/decompressor_permissive.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/educational_decoder/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/educational_decoder/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/educational_decoder/harness.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/educational_decoder/zstd_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/educational_decoder/zstd_decompress.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/CSpeed2.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/DCspeed5.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/DSpeed3.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/cdict_v136.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/dict-cr.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/dict-cs.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/dict-ds.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/zstd_cdict_v1_3_5.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/doc/images/zstd_logo86.png +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/common.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/dictionary_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/dictionary_decompression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/multiple_simple_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/multiple_streaming_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/simple_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/simple_decompression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/streaming_compression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/streaming_compression_thread_pool.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/streaming_decompression.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/examples/streaming_memory_usage.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/allocations.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/bitstream.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/cpu.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/debug.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/debug.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/entropy_common.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/error_private.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/error_private.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/fse.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/fse_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/huf.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/mem.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/pool.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/pool.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/threading.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/xxhash.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/xxhash.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/zstd_deps.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/common/zstd_trace.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/clevels.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/fse_compress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_literals.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_literals.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_sequences.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_sequences.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_superblock.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_compress_superblock.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_cwksp.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_double_fast.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_double_fast.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_fast.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_fast.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_lazy.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_ldm.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_ldm.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_ldm_geartab.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_opt.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_preSplit.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstd_preSplit.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/compress/zstdmt_compress.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_ddict.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_ddict.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_decompress_block.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/decompress/zstd_decompress_internal.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/deprecated/zbuff.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/deprecated/zbuff_common.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/deprecated/zbuff_compress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/deprecated/zbuff_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/cover.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dictBuilder/divsufsort.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dll/example/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dll/example/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dll/example/fullbench-dll.sln +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/dll/example/fullbench-dll.vcxproj +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_legacy.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v01.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v02.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v02.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v03.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v04.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v05.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v06.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v07.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/legacy/zstd_v07.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/module.modulemap +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/zdict.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/lib/zstd_errors.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/benchfn.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/benchfn.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/datagen.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/datagen.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/dibio.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/fileio_asyncio.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/fileio_asyncio.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/fileio_common.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/lorem.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/lorem.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/platform.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/timefn.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/windres/verrsrc.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/windres/zstd.rc +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/windres/zstd32.res +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/windres/zstd64.res +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/zstdcli_trace.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/zstdgrep +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/zstdgrep.1.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/zstdless +0 -0
- /data/{vendor → ext/zstd_native}/zstd/programs/zstdless.1.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/DEPRECATED-test-zstd-speed.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/checkTag.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/check_size.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/args.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/args.sh.exit +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/args.sh.stderr.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/help.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/memlimit.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/memlimit.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/memlimit.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/output_dir.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/output_dir.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/output_dir.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/version.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/basic/version.sh.stdout.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/cmp_size +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/datagen +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/die +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/println +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/zstd +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/zstdgrep +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/bin/zstdless +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/setup +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdgrep.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdgrep.sh.exit +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdgrep.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdgrep.sh.stdout.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdless.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdless.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/cltools/zstdless.sh.stdout.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/common/format.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/common/mtime.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/common/permissions.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/adapt.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/basic.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/compress-literals.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/format.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/golden.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/gzip-compat.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/levels.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/levels.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/long-distance-matcher.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/multiple-files.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/multiple-files.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/row-match-finder.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/setup +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/stream-size.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/verbose-wlog.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/verbose-wlog.sh.stderr.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/verbose-wlog.sh.stdout.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/window-resize.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/window-resize.sh.stderr.ignore +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/window-resize.sh.stdout.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/decompression/detectErrors.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/decompression/golden.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/decompression/pass-through.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/decompression/pass-through.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/decompression/pass-through.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dict-builder/empty-input.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dict-builder/empty-input.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dict-builder/no-inputs.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dict-builder/no-inputs.sh.exit +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dictionaries/dictionary-mismatch.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dictionaries/dictionary-mismatch.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dictionaries/golden.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dictionaries/setup +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/dictionaries/setup_once +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-handling/directory-mirror.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-handling/directory-mirror.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-handling/directory-mirror.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-file-to-file.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-file-to-stdout.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-file-to-stdout.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-stdin-to-file.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-stdin-to-stdout.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/compress-stdin-to-stdout.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-file-to-file.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-file-to-stdout.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-file-to-stdout.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-stdin-to-file.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-stdin-to-stdout.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/file-stat/decompress-stdin-to-stdout.sh.stderr.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/progress/no-progress.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/progress/no-progress.sh.stderr.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/progress/progress.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/progress/progress.sh.stderr.glob +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/zstd-symlinks/setup +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/zstd-symlinks/zstdcat.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/zstd-symlinks/zstdcat.sh.stdout.exact +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/datagencli.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/decodecorpus.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/dict-files/zero-weight-dict +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/external_matchfinder.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/external_matchfinder.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/block_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/block_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/decompress_cross_format.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/decompress_dstSize_tooSmall.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/dictionary_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/dictionary_loader.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/dictionary_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/dictionary_stream_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fse_read_ncount.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz_data_producer.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz_data_producer.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/fuzz_third_party_seq_prod.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/generate_sequences.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/huf_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/huf_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/raw_dictionary_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/regression_driver.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/seekable_roundtrip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/seq_prod_fuzz_example/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/seq_prod_fuzz_example/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/seq_prod_fuzz_example/example_seq_prod.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/sequence_compression_api.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/simple_compress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/simple_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/simple_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/stream_decompress.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/stream_round_trip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/zstd_frame_info.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/zstd_helpers.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/fuzz/zstd_helpers.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-compression/PR-3517-block-splitter-corruption-test +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-compression/http +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-compression/huffman-compressed-larger +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-compression/large-literal-and-match-lengths +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression/block-128k.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression/empty-block.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression/rle-first-block.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression/zeroSeq_2B.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression-errors/off0.bin.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression-errors/truncated_huff_state.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-decompression-errors/zeroSeq_extraneous.zst +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/golden-dictionaries/http-dict-missing-symbols +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/gzip-env.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/helin-segv.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/help-version.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/hufts-segv.gz +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/hufts.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/init.cfg +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/init.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/keep.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/list.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/memcpy-abuse.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/mixed.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/null-suffix-clobber.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/stdin.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/test-driver.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/trailing-nul.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/unpack-invalid.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/z-suffix.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/zdiff.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/zgrep-context.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/zgrep-f.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/zgrep-signal.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/gzip/znew-k.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/invalidDictionaries.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/libzstd_builds.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/loremOut.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/loremOut.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/poolTests.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/rateLimiter.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/config.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/config.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/data.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/data.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/levels.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/method.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/result.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/result.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/results.csv +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/regression/test.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/roundTripCrash.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/seqgen.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/seqgen.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/test-license.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/test-variants.sh +0 -0
- /data/{vendor → ext/zstd_native}/zstd/tests/test-zstd-versions.py +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/BUCK +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/Makefile +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/README.md +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/example.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/example_original.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/fitblk.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/fitblk_original.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/minigzip.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/examples/zwrapbench.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzclose.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzcompatibility.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzguts.h +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzlib.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzread.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/gzwrite.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/zstd_zlibwrapper.c +0 -0
- /data/{vendor → ext/zstd_native}/zstd/zlibWrapper/zstd_zlibwrapper.h +0 -0
|
@@ -9,14 +9,7 @@ zstd --rsyncable -f file -q ; zstd -t file.zst
|
|
|
9
9
|
zstd -T0 -f file -q ; zstd -t file.zst
|
|
10
10
|
zstd -T0 --auto-threads=logical -f file -q ; zstd -t file.zst
|
|
11
11
|
zstd -T0 --auto-threads=physical -f file -q ; zstd -t file.zst
|
|
12
|
-
zstd -T0 --jobsize=1M -f file -q ; zstd -t file.zst
|
|
13
12
|
|
|
14
13
|
# multi-thread decompression warning test
|
|
15
14
|
zstd -T0 -f file -q ; zstd -t file.zst; zstd -T0 -d file.zst -o file3
|
|
16
15
|
zstd -T0 -f file -q ; zstd -t file.zst; zstd -T2 -d file.zst -o file4
|
|
17
|
-
# setting multi-thread via environment variable does not trigger decompression warning
|
|
18
|
-
zstd -T0 -f file -q ; zstd -t file.zst; ZSTD_NBTHREADS=0 zstd -df file.zst -o file3
|
|
19
|
-
zstd -T0 -f file -q ; zstd -t file.zst; ZSTD_NBTHREADS=2 zstd -df file.zst -o file4
|
|
20
|
-
# setting nbThreads==1 does not trigger decompression warning
|
|
21
|
-
zstd -T0 -f file -q ; zstd -t file.zst; zstd -T1 -df file.zst -o file3
|
|
22
|
-
zstd -T0 -f file -q ; zstd -t file.zst; zstd -T2 -T1 -df file.zst -o file4
|
data/{vendor → ext/zstd_native}/zstd/tests/cli-tests/compression/multi-threaded.sh.stderr.exact
RENAMED
|
@@ -6,16 +6,6 @@ file.zst : 65537 bytes
|
|
|
6
6
|
file.zst : 65537 bytes
|
|
7
7
|
file.zst : 65537 bytes
|
|
8
8
|
file.zst : 65537 bytes
|
|
9
|
-
Warning : decompression does not support multi-threading
|
|
10
|
-
file.zst : 65537 bytes
|
|
11
9
|
file.zst : 65537 bytes
|
|
12
10
|
Warning : decompression does not support multi-threading
|
|
13
11
|
file.zst : 65537 bytes
|
|
14
|
-
file.zst : 65537 bytes
|
|
15
|
-
file.zst : 65537 bytes
|
|
16
|
-
file.zst : 65537 bytes
|
|
17
|
-
file.zst : 65537 bytes
|
|
18
|
-
file.zst : 65537 bytes
|
|
19
|
-
file.zst : 65537 bytes
|
|
20
|
-
file.zst : 65537 bytes
|
|
21
|
-
file.zst : 65537 bytes
|
|
@@ -22,9 +22,5 @@ Trace:FileStat: > UTIL_isRegularFile(out/file.zst)
|
|
|
22
22
|
Trace:FileStat: > UTIL_stat(-1, out/file.zst)
|
|
23
23
|
Trace:FileStat: < 0
|
|
24
24
|
Trace:FileStat: < 0
|
|
25
|
-
Trace:FileStat: > UTIL_isFdRegularFile(-1)
|
|
26
|
-
Trace:FileStat: < 0
|
|
27
|
-
Trace:FileStat: > UTIL_isFileDescriptorPipe(out/file.zst)
|
|
28
|
-
Trace:FileStat: < 0
|
|
29
25
|
zstd: out/file.zst: Permission denied
|
|
30
26
|
zstd: can't stat out/file.zst : Permission denied -- ignored
|
|
@@ -22,10 +22,6 @@ Trace:FileStat: > UTIL_isRegularFile(file.zst)
|
|
|
22
22
|
Trace:FileStat: > UTIL_stat(-1, file.zst)
|
|
23
23
|
Trace:FileStat: < 0
|
|
24
24
|
Trace:FileStat: < 0
|
|
25
|
-
Trace:FileStat: > UTIL_isFdRegularFile(*)
|
|
26
|
-
Trace:FileStat: > UTIL_stat(*, )
|
|
27
|
-
Trace:FileStat: < 1
|
|
28
|
-
Trace:FileStat: < 1
|
|
29
25
|
Trace:FileStat: > UTIL_isRegularFile(file.zst)
|
|
30
26
|
Trace:FileStat: > UTIL_stat(-1, file.zst)
|
|
31
27
|
Trace:FileStat: < 1
|
|
@@ -14,10 +14,6 @@ Trace:FileStat: > UTIL_isRegularFile(file.zst)
|
|
|
14
14
|
Trace:FileStat: > UTIL_stat(-1, file.zst)
|
|
15
15
|
Trace:FileStat: < 0
|
|
16
16
|
Trace:FileStat: < 0
|
|
17
|
-
Trace:FileStat: > UTIL_isFdRegularFile(*)
|
|
18
|
-
Trace:FileStat: > UTIL_stat(*, )
|
|
19
|
-
Trace:FileStat: < 1
|
|
20
|
-
Trace:FileStat: < 1
|
|
21
17
|
Trace:FileStat: > UTIL_isRegularFile(file.zst)
|
|
22
18
|
Trace:FileStat: > UTIL_stat(-1, file.zst)
|
|
23
19
|
Trace:FileStat: < 1
|
|
@@ -22,10 +22,6 @@ Trace:FileStat: > UTIL_isRegularFile(file)
|
|
|
22
22
|
Trace:FileStat: > UTIL_stat(-1, file)
|
|
23
23
|
Trace:FileStat: < 0
|
|
24
24
|
Trace:FileStat: < 0
|
|
25
|
-
Trace:FileStat: > UTIL_isFdRegularFile(*)
|
|
26
|
-
Trace:FileStat: > UTIL_stat(*, )
|
|
27
|
-
Trace:FileStat: < 1
|
|
28
|
-
Trace:FileStat: < 1
|
|
29
25
|
Trace:FileStat: > UTIL_isRegularFile(file)
|
|
30
26
|
Trace:FileStat: > UTIL_stat(-1, file)
|
|
31
27
|
Trace:FileStat: < 1
|
|
@@ -14,10 +14,6 @@ Trace:FileStat: > UTIL_isRegularFile(file)
|
|
|
14
14
|
Trace:FileStat: > UTIL_stat(-1, file)
|
|
15
15
|
Trace:FileStat: < 0
|
|
16
16
|
Trace:FileStat: < 0
|
|
17
|
-
Trace:FileStat: > UTIL_isFdRegularFile(*)
|
|
18
|
-
Trace:FileStat: > UTIL_stat(*, )
|
|
19
|
-
Trace:FileStat: < 1
|
|
20
|
-
Trace:FileStat: < 1
|
|
21
17
|
Trace:FileStat: > UTIL_isRegularFile(file)
|
|
22
18
|
Trace:FileStat: > UTIL_stat(-1, file)
|
|
23
19
|
Trace:FileStat: < 1
|
|
@@ -640,7 +640,7 @@ if __name__ == "__main__":
|
|
|
640
640
|
help="Preserve the scratch directory TEST_DIR/scratch/ for debugging purposes."
|
|
641
641
|
)
|
|
642
642
|
parser.add_argument("--verbose", action="store_true", help="Verbose test output.")
|
|
643
|
-
parser.add_argument("--timeout", default=
|
|
643
|
+
parser.add_argument("--timeout", default=200, type=int, help="Test case timeout in seconds. Set to 0 to disable timeouts.")
|
|
644
644
|
parser.add_argument(
|
|
645
645
|
"--exec-prefix",
|
|
646
646
|
default=None,
|
|
@@ -705,7 +705,6 @@ if __name__ == "__main__":
|
|
|
705
705
|
env["DATAGEN_BIN"] = os.path.abspath(args.datagen)
|
|
706
706
|
env["ZSTDGREP_BIN"] = os.path.abspath(args.zstdgrep)
|
|
707
707
|
env["ZSTDLESS_BIN"] = os.path.abspath(args.zstdless)
|
|
708
|
-
env["CLI_TESTS"] = os.path.abspath(args.test_dir)
|
|
709
708
|
env["COMMON"] = os.path.abspath(os.path.join(args.test_dir, "common"))
|
|
710
709
|
env["PATH"] = bin_dir + ":" + os.getenv("PATH", "")
|
|
711
710
|
env["LC_ALL"] = "C"
|
|
@@ -890,7 +890,6 @@ static int benchMem(unsigned scenarioID,
|
|
|
890
890
|
if (!BMK_isSuccessful_runOutcome(bOutcome)) {
|
|
891
891
|
DISPLAY("ERROR: Scenario %u: %s \n", scenarioID, ZSTD_getErrorName(BMK_extract_errorResult(bOutcome)));
|
|
892
892
|
errorcode = 1;
|
|
893
|
-
BMK_freeTimedFnState(tfs);
|
|
894
893
|
goto _cleanOut;
|
|
895
894
|
}
|
|
896
895
|
|
|
@@ -31,11 +31,12 @@ void* FUZZ_malloc_rand(size_t size, FUZZ_dataProducer_t *producer)
|
|
|
31
31
|
return mem;
|
|
32
32
|
} else {
|
|
33
33
|
uintptr_t ptr = 0;
|
|
34
|
-
/*
|
|
34
|
+
/* Add +- 1M 50% of the time */
|
|
35
35
|
if (FUZZ_dataProducer_uint32Range(producer, 0, 1))
|
|
36
|
-
|
|
36
|
+
FUZZ_dataProducer_int32Range(producer, -1000000, 1000000);
|
|
37
37
|
return (void*)ptr;
|
|
38
38
|
}
|
|
39
|
+
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
int FUZZ_memcmp(void const* lhs, void const* rhs, size_t size)
|
|
@@ -66,7 +66,6 @@ void* FUZZ_malloc(size_t size);
|
|
|
66
66
|
/**
|
|
67
67
|
* malloc except returns random pointer for zero sized data and FUZZ_ASSERT
|
|
68
68
|
* that malloc doesn't fail.
|
|
69
|
-
* WARNING: Only free the returned pointer if size > 0!
|
|
70
69
|
*/
|
|
71
70
|
void* FUZZ_malloc_rand(size_t size, FUZZ_dataProducer_t *producer);
|
|
72
71
|
|
|
@@ -44,14 +44,6 @@
|
|
|
44
44
|
/* must be included after util.h, due to ERROR macro redefinition issue on Visual Studio */
|
|
45
45
|
#include "zstd_internal.h" /* ZSTD_WORKSPACETOOLARGE_MAXDURATION, ZSTD_WORKSPACETOOLARGE_FACTOR, KB, MB */
|
|
46
46
|
#include "threading.h" /* ZSTD_pthread_create, ZSTD_pthread_join */
|
|
47
|
-
#include "compress/hist.h" /* HIST_count_wksp */
|
|
48
|
-
#include "compress/zstd_compress_internal.h" /* ZSTD_get1BlockSummary */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/*-************************************
|
|
52
|
-
* Macros
|
|
53
|
-
**************************************/
|
|
54
|
-
#define COUNTOF(array) (sizeof(array) / sizeof(*(array)))
|
|
55
47
|
|
|
56
48
|
|
|
57
49
|
/*-************************************
|
|
@@ -575,123 +567,6 @@ static void test_decompressBound(unsigned tnb)
|
|
|
575
567
|
DISPLAYLEVEL(3, "OK \n");
|
|
576
568
|
}
|
|
577
569
|
|
|
578
|
-
static unsigned test_histCountWksp(unsigned seed, unsigned testNb)
|
|
579
|
-
{
|
|
580
|
-
static const unsigned symLowLimits[] = { 0, 27, 0, 0, 27, 42, 0, 0, 27, 42, 27, 42 };
|
|
581
|
-
static const unsigned symHighLimits[] = { 255, 255, 210, 110, 42, 42, 210, 110, 42, 42, 42, 42 };
|
|
582
|
-
static const unsigned symMaxLimits[] = { 255, 255, 255, 255, 255, 255, 230, 130, 99, 99, 42, 42 };
|
|
583
|
-
static const size_t inputSizes[] = { 3367, 1761, 893, 117 };
|
|
584
|
-
unsigned workspace[HIST_WKSP_SIZE_U32];
|
|
585
|
-
size_t res, i, is, il;
|
|
586
|
-
|
|
587
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp with empty source : ", testNb++);
|
|
588
|
-
{
|
|
589
|
-
/* With NULL source UBSan of older Clang could fail: applying zero offset to null pointer. */
|
|
590
|
-
static const unsigned char source[4] = { 0 };
|
|
591
|
-
unsigned count[1] = { 0 };
|
|
592
|
-
unsigned maxSym = 0;
|
|
593
|
-
res = HIST_count_wksp(count, &maxSym, source, 0, workspace, sizeof(workspace));
|
|
594
|
-
CHECK_EQ(res, 0);
|
|
595
|
-
CHECK_EQ(maxSym, 0);
|
|
596
|
-
CHECK_EQ(count[0], 0);
|
|
597
|
-
}
|
|
598
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
599
|
-
|
|
600
|
-
#if HIST_WKSP_SIZE_U32
|
|
601
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp with small workspace : ", testNb++);
|
|
602
|
-
{
|
|
603
|
-
unsigned count[1] = { 0 };
|
|
604
|
-
unsigned maxSym = 0;
|
|
605
|
-
res = HIST_count_wksp(count, &maxSym, NULL, 0, workspace, sizeof(workspace) - 1);
|
|
606
|
-
CHECK_EQ(res, ERROR(workSpace_tooSmall));
|
|
607
|
-
CHECK_EQ(maxSym, 0);
|
|
608
|
-
CHECK_EQ(count[0], 0);
|
|
609
|
-
}
|
|
610
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
611
|
-
|
|
612
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp with wrong workspace alignment : ", testNb++);
|
|
613
|
-
{
|
|
614
|
-
unsigned count[1] = { 0 };
|
|
615
|
-
unsigned maxSym = 0;
|
|
616
|
-
res = HIST_count_wksp(count, &maxSym, NULL, 0, (unsigned*)(void*)((char*)workspace + 1), sizeof(workspace));
|
|
617
|
-
CHECK_EQ(res, ERROR(GENERIC));
|
|
618
|
-
CHECK_EQ(maxSym, 0);
|
|
619
|
-
CHECK_EQ(count[0], 0);
|
|
620
|
-
}
|
|
621
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
622
|
-
#endif
|
|
623
|
-
|
|
624
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp with symbol out of range, small size : ", testNb++);
|
|
625
|
-
{
|
|
626
|
-
/* For less elements HIST_count_parallel_wksp would fail. */
|
|
627
|
-
static const unsigned char source[4] = { 1, 4, 0, 2 };
|
|
628
|
-
static const unsigned expected[6] = { 0 };
|
|
629
|
-
unsigned count[6] = { 0 };
|
|
630
|
-
unsigned maxSym = 2;
|
|
631
|
-
res = HIST_count_wksp(count, &maxSym, source, sizeof(source), workspace, sizeof(workspace));
|
|
632
|
-
CHECK_EQ(res, ERROR(maxSymbolValue_tooSmall));
|
|
633
|
-
CHECK_EQ(maxSym, 2);
|
|
634
|
-
for (i = 0; i < COUNTOF(expected); ++i) CHECK_EQ(count[i], expected[i]);
|
|
635
|
-
}
|
|
636
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
637
|
-
|
|
638
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp with symbol out of range, medium size : ", testNb++);
|
|
639
|
-
{
|
|
640
|
-
unsigned char source[3407];
|
|
641
|
-
unsigned count[6] = { 0 };
|
|
642
|
-
unsigned maxSym = 2;
|
|
643
|
-
for (i = 0; i < COUNTOF(source); ++i) {
|
|
644
|
-
source[i] = (48271 * (i + 1)) & 3;
|
|
645
|
-
}
|
|
646
|
-
res = HIST_count_wksp(count, &maxSym, source, sizeof(source), workspace, sizeof(workspace));
|
|
647
|
-
CHECK_EQ(res, ERROR(maxSymbolValue_tooSmall));
|
|
648
|
-
CHECK_EQ(maxSym, 2);
|
|
649
|
-
for (i = 0; i < COUNTOF(count); ++i) CHECK_EQ(count[i], 0);
|
|
650
|
-
}
|
|
651
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
652
|
-
|
|
653
|
-
for (il = 0; il < COUNTOF(symMaxLimits); ++il) {
|
|
654
|
-
unsigned symMax = symMaxLimits[il];
|
|
655
|
-
unsigned symLow = symLowLimits[il];
|
|
656
|
-
unsigned symHigh = symHighLimits[il];
|
|
657
|
-
unsigned symRange = symHigh - symLow + 1;
|
|
658
|
-
|
|
659
|
-
for (is = 0; is < COUNTOF(inputSizes); ++is) {
|
|
660
|
-
unsigned char source[4000];
|
|
661
|
-
size_t inputSize = inputSizes[is];
|
|
662
|
-
assert(inputSize <= sizeof(source));
|
|
663
|
-
DISPLAYLEVEL(3, "test%3u : HIST_count_wksp test in [%u..%u], symMax: %u, inputSize: %u : ",
|
|
664
|
-
testNb++, symLow, symHigh, symMax, (unsigned)inputSize);
|
|
665
|
-
{
|
|
666
|
-
unsigned count[260] = { 0 };
|
|
667
|
-
unsigned expected[COUNTOF(count)] = { 0 };
|
|
668
|
-
unsigned maxSym = symMax;
|
|
669
|
-
unsigned realMaxSym = symMax;
|
|
670
|
-
unsigned maxCount = 0;
|
|
671
|
-
for (i = 0; i < inputSize; ++i) {
|
|
672
|
-
unsigned prng = (48271 * (i + seed)) % symRange + symLow;
|
|
673
|
-
source[i] = (unsigned char)prng;
|
|
674
|
-
++expected[prng];
|
|
675
|
-
}
|
|
676
|
-
/* for basic buffer overwrite checks */
|
|
677
|
-
for (i = maxSym + 1; i < COUNTOF(count); ++i) expected[i] = count[i] = ~0u;
|
|
678
|
-
for (i = 0; i <= maxSym; ++i) maxCount = MAX(maxCount, expected[i]);
|
|
679
|
-
for (i = realMaxSym; i > 0; --i) {
|
|
680
|
-
if (expected[i]) break;
|
|
681
|
-
--realMaxSym;
|
|
682
|
-
}
|
|
683
|
-
res = HIST_count_wksp(count, &maxSym, source, inputSize, workspace, sizeof(workspace));
|
|
684
|
-
CHECK_EQ(res, maxCount);
|
|
685
|
-
CHECK_EQ(maxSym, realMaxSym);
|
|
686
|
-
for (i = 0; i < COUNTOF(expected); ++i) CHECK_EQ(count[i], expected[i]);
|
|
687
|
-
}
|
|
688
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
return testNb;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
570
|
static void test_setCParams(unsigned tnb)
|
|
696
571
|
{
|
|
697
572
|
ZSTD_CCtx* const cctx = ZSTD_createCCtx();
|
|
@@ -770,210 +645,6 @@ static void test_blockSplitter_incompressibleExpansionProtection(unsigned testNb
|
|
|
770
645
|
DISPLAYLEVEL(3, "OK \n");
|
|
771
646
|
}
|
|
772
647
|
|
|
773
|
-
size_t convertSequences_noRepcodes(SeqDef* dstSeqs, const ZSTD_Sequence* inSeqs,
|
|
774
|
-
size_t nbSequences);
|
|
775
|
-
|
|
776
|
-
static size_t convertSequences_noRepcodes_ref(
|
|
777
|
-
SeqDef* dstSeqs,
|
|
778
|
-
const ZSTD_Sequence* inSeqs,
|
|
779
|
-
size_t nbSequences)
|
|
780
|
-
{
|
|
781
|
-
size_t longLen = 0;
|
|
782
|
-
size_t n;
|
|
783
|
-
for (n=0; n<nbSequences; n++) {
|
|
784
|
-
dstSeqs[n].offBase = OFFSET_TO_OFFBASE(inSeqs[n].offset);
|
|
785
|
-
dstSeqs[n].litLength = (U16)inSeqs[n].litLength;
|
|
786
|
-
dstSeqs[n].mlBase = (U16)(inSeqs[n].matchLength - MINMATCH);
|
|
787
|
-
/* Check for long length > 65535. */
|
|
788
|
-
if (UNLIKELY(inSeqs[n].matchLength > 65535+MINMATCH)) {
|
|
789
|
-
assert(longLen == 0);
|
|
790
|
-
longLen = n + 1;
|
|
791
|
-
}
|
|
792
|
-
if (UNLIKELY(inSeqs[n].litLength > 65535)) {
|
|
793
|
-
assert(longLen == 0);
|
|
794
|
-
longLen = n + nbSequences + 1;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
return longLen;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
static unsigned test_convertSequences_noRepcodes(unsigned seed, unsigned testNb)
|
|
801
|
-
{
|
|
802
|
-
ZSTD_Sequence nsrc[12];
|
|
803
|
-
SeqDef ndst[12], rdst[12];
|
|
804
|
-
size_t ref, ret, i, j;
|
|
805
|
-
|
|
806
|
-
seed += 0xDEADBEEF;
|
|
807
|
-
for (i = 0; i < COUNTOF(nsrc); ++i) {
|
|
808
|
-
seed = 48271 * ((unsigned)i + seed);
|
|
809
|
-
nsrc[i].offset = (seed & 0xFFFF) | 1; /* Offset shall not be zero. */
|
|
810
|
-
seed = 48271 * ((unsigned)i + seed);
|
|
811
|
-
nsrc[i].litLength = seed & 0xFFFF;
|
|
812
|
-
seed = 48271 * ((unsigned)i + seed);
|
|
813
|
-
nsrc[i].matchLength = (seed & 0xFFFFFF) % (65536 + MINMATCH);
|
|
814
|
-
seed = 48271 * ((unsigned)i + seed);
|
|
815
|
-
nsrc[i].rep = seed & 0xFF;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/* For near overflow and proper negative value handling. */
|
|
819
|
-
nsrc[5].matchLength = 65535 + MINMATCH;
|
|
820
|
-
nsrc[6].litLength = 65535;
|
|
821
|
-
nsrc[6].matchLength = 0;
|
|
822
|
-
nsrc[7].litLength = 0;
|
|
823
|
-
nsrc[7].matchLength = MINMATCH;
|
|
824
|
-
|
|
825
|
-
for (i = 0; i <= COUNTOF(nsrc); ++i) {
|
|
826
|
-
DISPLAYLEVEL(3, "test%3u : convertSequences_noRepcodes with %u inputs : ",
|
|
827
|
-
testNb++, (unsigned)i);
|
|
828
|
-
memset(ndst, 0, sizeof(ndst));
|
|
829
|
-
memset(rdst, 0, sizeof(rdst));
|
|
830
|
-
ref = convertSequences_noRepcodes_ref(rdst, nsrc, i);
|
|
831
|
-
ret = convertSequences_noRepcodes(ndst, nsrc, i);
|
|
832
|
-
CHECK_EQ(ret, ref);
|
|
833
|
-
CHECK_EQ(memcmp(rdst, ndst, sizeof(ndst)), 0);
|
|
834
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
nsrc[7].matchLength = 65536 + MINMATCH;
|
|
838
|
-
for (i = 8; i <= COUNTOF(nsrc); ++i) {
|
|
839
|
-
DISPLAYLEVEL(3, "test%3u : convertSequences_noRepcodes with %u inputs and "
|
|
840
|
-
"matchLength overflow : ",
|
|
841
|
-
testNb++, (unsigned)i);
|
|
842
|
-
memset(ndst, 0, sizeof(ndst));
|
|
843
|
-
memset(rdst, 0, sizeof(rdst));
|
|
844
|
-
ref = convertSequences_noRepcodes_ref(rdst, nsrc, i);
|
|
845
|
-
ret = convertSequences_noRepcodes(ndst, nsrc, i);
|
|
846
|
-
CHECK_EQ(ret, ref);
|
|
847
|
-
CHECK_EQ(memcmp(rdst, ndst, sizeof(ndst)), 0);
|
|
848
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
849
|
-
|
|
850
|
-
assert(COUNTOF(nsrc) > 8);
|
|
851
|
-
for (j = 4; j < 8; ++j) {
|
|
852
|
-
DISPLAYLEVEL(3, "test%3u : convertSequences_noRepcodes with %u inputs and "
|
|
853
|
-
"matchLength overflow #%u : ",
|
|
854
|
-
testNb++, (unsigned)i, (unsigned)(i - j));
|
|
855
|
-
memset(ndst, 0, sizeof(ndst));
|
|
856
|
-
memset(rdst, 0, sizeof(rdst));
|
|
857
|
-
ref = convertSequences_noRepcodes_ref(rdst, nsrc + j, i - j);
|
|
858
|
-
ret = convertSequences_noRepcodes(ndst, nsrc + j, i - j);
|
|
859
|
-
CHECK_EQ(ret, ref);
|
|
860
|
-
CHECK_EQ(memcmp(rdst, ndst, sizeof(ndst)), 0);
|
|
861
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
nsrc[7].matchLength = 1;
|
|
865
|
-
|
|
866
|
-
nsrc[7].litLength = 65536;
|
|
867
|
-
for (i = 8; i <= COUNTOF(nsrc); ++i) {
|
|
868
|
-
DISPLAYLEVEL(3, "test%3u : convertSequences_noRepcodes with %u inputs and "
|
|
869
|
-
"litLength overflow: ",
|
|
870
|
-
testNb++, (unsigned)i);
|
|
871
|
-
memset(ndst, 0, sizeof(ndst));
|
|
872
|
-
memset(rdst, 0, sizeof(rdst));
|
|
873
|
-
ref = convertSequences_noRepcodes_ref(rdst, nsrc, i);
|
|
874
|
-
ret = convertSequences_noRepcodes(ndst, nsrc, i);
|
|
875
|
-
CHECK_EQ(ret, ref);
|
|
876
|
-
CHECK_EQ(memcmp(rdst, ndst, sizeof(ndst)), 0);
|
|
877
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
878
|
-
|
|
879
|
-
assert(COUNTOF(nsrc) > 8);
|
|
880
|
-
for (j = 4; j < 8; ++j) {
|
|
881
|
-
DISPLAYLEVEL(3, "test%3u : convertSequences_noRepcodes with %u inputs and "
|
|
882
|
-
"litLength overflow #%u: ",
|
|
883
|
-
testNb++, (unsigned)i, (unsigned)(i - j));
|
|
884
|
-
memset(ndst, 0, sizeof(ndst));
|
|
885
|
-
memset(rdst, 0, sizeof(rdst));
|
|
886
|
-
ref = convertSequences_noRepcodes_ref(rdst, nsrc + j, i - j);
|
|
887
|
-
ret = convertSequences_noRepcodes(ndst, nsrc + j, i - j);
|
|
888
|
-
CHECK_EQ(ret, ref);
|
|
889
|
-
CHECK_EQ(memcmp(rdst, ndst, sizeof(ndst)), 0);
|
|
890
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
return testNb;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
static unsigned test_get1BlockSummary(unsigned testNb)
|
|
898
|
-
{
|
|
899
|
-
static const ZSTD_Sequence nseqs[] = {
|
|
900
|
-
{ 10, 2, 4, 1 },
|
|
901
|
-
{ 20, 3, 5, 2 },
|
|
902
|
-
{ 30, 6, 8, 3 },
|
|
903
|
-
{ 40, 7, 9, 4 },
|
|
904
|
-
{ 50, 10, 12, 5 },
|
|
905
|
-
{ 60, 11, 13, 6 },
|
|
906
|
-
{ 0, 14, 0, 7 },
|
|
907
|
-
{ 70, 15, 17, 8 },
|
|
908
|
-
{ 80, 16, 18, 9 },
|
|
909
|
-
{ 90, 19, 21, 1 },
|
|
910
|
-
{ 99, 20, 22, 2 },
|
|
911
|
-
};
|
|
912
|
-
static const BlockSummary blocks[] = {
|
|
913
|
-
{ 7, 104, 53 },
|
|
914
|
-
{ 6, 98, 51 },
|
|
915
|
-
{ 5, 90, 48 },
|
|
916
|
-
{ 4, 76, 42 },
|
|
917
|
-
{ 3, 60, 35 },
|
|
918
|
-
{ 2, 38, 25 },
|
|
919
|
-
{ 1, 14, 14 },
|
|
920
|
-
};
|
|
921
|
-
size_t i;
|
|
922
|
-
|
|
923
|
-
DISPLAYLEVEL(3, "test%3u : ZSTD_get1BlockSummary with empty array : ", testNb++);
|
|
924
|
-
{
|
|
925
|
-
BlockSummary bs = ZSTD_get1BlockSummary(nseqs, 0);
|
|
926
|
-
CHECK_EQ(bs.nbSequences, ERROR(externalSequences_invalid));
|
|
927
|
-
}
|
|
928
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
929
|
-
|
|
930
|
-
DISPLAYLEVEL(3, "test%3u : ZSTD_get1BlockSummary with 1 literal only : ", testNb++);
|
|
931
|
-
{
|
|
932
|
-
static const ZSTD_Sequence seqs[] = { { 0, 5, 0, 0 } };
|
|
933
|
-
BlockSummary bs = ZSTD_get1BlockSummary(seqs, 1);
|
|
934
|
-
CHECK_EQ(bs.nbSequences, 1);
|
|
935
|
-
CHECK_EQ(bs.litSize, 5);
|
|
936
|
-
CHECK_EQ(bs.blockSize, 5);
|
|
937
|
-
}
|
|
938
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
939
|
-
|
|
940
|
-
DISPLAYLEVEL(3, "test%3u : ZSTD_get1BlockSummary with no terminator : ", testNb++);
|
|
941
|
-
{
|
|
942
|
-
static const ZSTD_Sequence seqs[] = { { 10, 2, 4, 0 }, { 20, 3, 5, 0 } };
|
|
943
|
-
BlockSummary bs = ZSTD_get1BlockSummary(seqs, 2);
|
|
944
|
-
CHECK_EQ(bs.nbSequences, ERROR(externalSequences_invalid));
|
|
945
|
-
}
|
|
946
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
947
|
-
|
|
948
|
-
DISPLAYLEVEL(3, "test%3u : ZSTD_get1BlockSummary with rep ignored : ", testNb++);
|
|
949
|
-
{
|
|
950
|
-
static const ZSTD_Sequence seqs[] = {
|
|
951
|
-
{ 10, 2, 4, 2 },
|
|
952
|
-
{ 10, 3, 5, 2 },
|
|
953
|
-
{ 0, 7, 0, 3 },
|
|
954
|
-
};
|
|
955
|
-
BlockSummary bs = ZSTD_get1BlockSummary(seqs, 3);
|
|
956
|
-
CHECK_EQ(bs.nbSequences, 3);
|
|
957
|
-
CHECK_EQ(bs.litSize, 2 + 3 + 7);
|
|
958
|
-
CHECK_EQ(bs.blockSize, (4 + 5) + (2 + 3 + 7));
|
|
959
|
-
}
|
|
960
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
961
|
-
|
|
962
|
-
assert(COUNTOF(nseqs) > COUNTOF(blocks));
|
|
963
|
-
for (i = 0; i < COUNTOF(blocks); ++i) {
|
|
964
|
-
BlockSummary bs;
|
|
965
|
-
DISPLAYLEVEL(3, "test%3u : ZSTD_get1BlockSummary with %u inputs : ",
|
|
966
|
-
testNb++, (unsigned)(COUNTOF(nseqs) - i));
|
|
967
|
-
bs = ZSTD_get1BlockSummary(nseqs + i, COUNTOF(nseqs) - i);
|
|
968
|
-
CHECK_EQ(bs.nbSequences, blocks[i].nbSequences);
|
|
969
|
-
CHECK_EQ(bs.litSize, blocks[i].litSize);
|
|
970
|
-
CHECK_EQ(bs.blockSize, blocks[i].blockSize);
|
|
971
|
-
DISPLAYLEVEL(3, "OK \n");
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
return testNb;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
648
|
/* ============================================================= */
|
|
978
649
|
|
|
979
650
|
static int basicUnitTests(U32 const seed, double compressibility)
|
|
@@ -1041,8 +712,6 @@ static int basicUnitTests(U32 const seed, double compressibility)
|
|
|
1041
712
|
}
|
|
1042
713
|
DISPLAYLEVEL(3, "OK \n");
|
|
1043
714
|
|
|
1044
|
-
testNb = test_histCountWksp(seed, testNb);
|
|
1045
|
-
|
|
1046
715
|
DISPLAYLEVEL(3, "test%3u : compress %u bytes : ", testNb++, (unsigned)CNBuffSize);
|
|
1047
716
|
{ ZSTD_CCtx* const cctx = ZSTD_createCCtx();
|
|
1048
717
|
if (cctx==NULL) goto _output_error;
|
|
@@ -4209,10 +3878,6 @@ static int basicUnitTests(U32 const seed, double compressibility)
|
|
|
4209
3878
|
}
|
|
4210
3879
|
DISPLAYLEVEL(3, "OK \n");
|
|
4211
3880
|
|
|
4212
|
-
testNb = test_convertSequences_noRepcodes(seed, testNb);
|
|
4213
|
-
|
|
4214
|
-
testNb = test_get1BlockSummary(testNb);
|
|
4215
|
-
|
|
4216
3881
|
DISPLAYLEVEL(3, "test%3i : ZSTD_compressSequencesAndLiterals : ", testNb++);
|
|
4217
3882
|
{
|
|
4218
3883
|
const size_t srcSize = 497000;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under both the BSD-style license (found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
7
|
+
* in the COPYING file in the root directory of this source tree).
|
|
8
|
+
* You may select, at your option, one of the above-listed licenses.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include <assert.h>
|
|
12
|
+
#include <stdio.h>
|
|
13
|
+
#include <stddef.h>
|
|
14
|
+
#include <stdlib.h>
|
|
15
|
+
#include <stdint.h>
|
|
16
|
+
#include "datagen.h"
|
|
17
|
+
#include "mem.h"
|
|
18
|
+
#define ZSTD_STATIC_LINKING_ONLY
|
|
19
|
+
#include "zstd.h"
|
|
20
|
+
|
|
21
|
+
static int
|
|
22
|
+
compress(ZSTD_CCtx* cctx, ZSTD_DCtx* dctx,
|
|
23
|
+
void* dst, size_t dstCapacity,
|
|
24
|
+
void const* src, size_t srcSize,
|
|
25
|
+
void* roundtrip, ZSTD_EndDirective end)
|
|
26
|
+
{
|
|
27
|
+
ZSTD_inBuffer in = {src, srcSize, 0};
|
|
28
|
+
ZSTD_outBuffer out = {dst, dstCapacity, 0};
|
|
29
|
+
int ended = 0;
|
|
30
|
+
|
|
31
|
+
while (!ended && (in.pos < in.size || out.pos > 0)) {
|
|
32
|
+
size_t rc;
|
|
33
|
+
out.pos = 0;
|
|
34
|
+
rc = ZSTD_compressStream2(cctx, &out, &in, end);
|
|
35
|
+
if (ZSTD_isError(rc))
|
|
36
|
+
return 1;
|
|
37
|
+
if (end == ZSTD_e_end && rc == 0)
|
|
38
|
+
ended = 1;
|
|
39
|
+
{
|
|
40
|
+
ZSTD_inBuffer rtIn = {dst, out.pos, 0};
|
|
41
|
+
ZSTD_outBuffer rtOut = {roundtrip, srcSize, 0};
|
|
42
|
+
rc = 1;
|
|
43
|
+
while (rtIn.pos < rtIn.size || rtOut.pos > 0) {
|
|
44
|
+
rtOut.pos = 0;
|
|
45
|
+
rc = ZSTD_decompressStream(dctx, &rtOut, &rtIn);
|
|
46
|
+
if (ZSTD_isError(rc)) {
|
|
47
|
+
fprintf(stderr, "Decompression error: %s\n", ZSTD_getErrorName(rc));
|
|
48
|
+
return 1;
|
|
49
|
+
}
|
|
50
|
+
if (rc == 0)
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
if (ended && rc != 0) {
|
|
54
|
+
fprintf(stderr, "Frame not finished!\n");
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
int main(int argc, const char** argv)
|
|
64
|
+
{
|
|
65
|
+
ZSTD_CCtx* cctx = ZSTD_createCCtx();
|
|
66
|
+
ZSTD_DCtx* dctx = ZSTD_createDCtx();
|
|
67
|
+
const size_t dataSize = (size_t)1 << 30;
|
|
68
|
+
const size_t outSize = ZSTD_compressBound(dataSize);
|
|
69
|
+
const size_t bufferSize = (size_t)1 << 31;
|
|
70
|
+
char* buffer = (char*)malloc(bufferSize);
|
|
71
|
+
void* out = malloc(outSize);
|
|
72
|
+
void* roundtrip = malloc(dataSize);
|
|
73
|
+
(void)argc;
|
|
74
|
+
(void)argv;
|
|
75
|
+
|
|
76
|
+
if (!buffer || !out || !roundtrip || !cctx || !dctx) {
|
|
77
|
+
fprintf(stderr, "Allocation failure\n");
|
|
78
|
+
return 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_windowLog, 31)))
|
|
82
|
+
return 1;
|
|
83
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 1)))
|
|
84
|
+
return 1;
|
|
85
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_overlapLog, 9)))
|
|
86
|
+
return 1;
|
|
87
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1)))
|
|
88
|
+
return 1;
|
|
89
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_strategy, ZSTD_btopt)))
|
|
90
|
+
return 1;
|
|
91
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_targetLength, 7)))
|
|
92
|
+
return 1;
|
|
93
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_minMatch, 7)))
|
|
94
|
+
return 1;
|
|
95
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_searchLog, 1)))
|
|
96
|
+
return 1;
|
|
97
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_hashLog, 10)))
|
|
98
|
+
return 1;
|
|
99
|
+
if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_chainLog, 10)))
|
|
100
|
+
return 1;
|
|
101
|
+
|
|
102
|
+
if (ZSTD_isError(ZSTD_DCtx_setParameter(dctx, ZSTD_d_windowLogMax, 31)))
|
|
103
|
+
return 1;
|
|
104
|
+
|
|
105
|
+
RDG_genBuffer(buffer, bufferSize, 1.0, 0.0, 0xbeefcafe);
|
|
106
|
+
|
|
107
|
+
/* Compress 30 GB */
|
|
108
|
+
{
|
|
109
|
+
int i;
|
|
110
|
+
for (i = 0; i < 10; ++i) {
|
|
111
|
+
fprintf(stderr, "Compressing 1 GB\n");
|
|
112
|
+
if (compress(cctx, dctx, out, outSize, buffer, dataSize, roundtrip, ZSTD_e_continue))
|
|
113
|
+
return 1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
fprintf(stderr, "Compressing 1 GB\n");
|
|
117
|
+
if (compress(cctx, dctx, out, outSize, buffer, dataSize, roundtrip, ZSTD_e_end))
|
|
118
|
+
return 1;
|
|
119
|
+
|
|
120
|
+
fprintf(stderr, "Success!\n");
|
|
121
|
+
|
|
122
|
+
free(roundtrip);
|
|
123
|
+
free(out);
|
|
124
|
+
free(buffer);
|
|
125
|
+
ZSTD_freeDCtx(dctx);
|
|
126
|
+
ZSTD_freeCCtx(cctx);
|
|
127
|
+
return 0;
|
|
128
|
+
}
|
|
@@ -56,7 +56,6 @@ static int testSimpleAPI(void)
|
|
|
56
56
|
} else {
|
|
57
57
|
DISPLAY("ERROR: %s\n", ZSTD_getErrorName(ret));
|
|
58
58
|
}
|
|
59
|
-
free(output);
|
|
60
59
|
return 1;
|
|
61
60
|
}
|
|
62
61
|
if (ret != size) {
|
|
@@ -65,7 +64,6 @@ static int testSimpleAPI(void)
|
|
|
65
64
|
}
|
|
66
65
|
if (memcmp(EXPECTED, output, size) != 0) {
|
|
67
66
|
DISPLAY("ERROR: Wrong decoded output produced\n");
|
|
68
|
-
free(output);
|
|
69
67
|
return 1;
|
|
70
68
|
}
|
|
71
69
|
|