mirror of
				https://github.com/facebook/zstd.git
				synced 2025-10-31 08:37:43 +02:00 
			
		
		
		
	[1.5.0] Move zstd_errors.h and zdict.h to lib/ root
				
					
				
			`zstd_errors.h` and `zdict.h` are public headers, so they deserve to be in the root `lib/` directory with `zstd.h`, not mixed in with our private headers.
This commit is contained in:
		| @@ -463,7 +463,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -483,7 +483,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -511,7 +511,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -559,7 +559,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -575,7 +575,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -495,7 +495,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -523,7 +523,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -190,7 +190,7 @@ | ||||
|     <ClInclude Include="..\..\..\lib\zstd.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\fse.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\huf.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_internal.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\pool.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\threading.h" /> | ||||
|   | ||||
| @@ -196,7 +196,7 @@ | ||||
|     <ClInclude Include="..\..\..\lib\common\huf.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\xxhash.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_internal.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstd_compress.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstd_compress_literals.h" /> | ||||
| @@ -211,7 +211,7 @@ | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstdmt_compress.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\decompress\zstd_ddict.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\divsufsort.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\zdict.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zdict.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\cover.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\legacy\zstd_legacy.h" /> | ||||
|     <ClInclude Include="..\..\..\programs\datagen.h" /> | ||||
|   | ||||
| @@ -61,7 +61,7 @@ | ||||
|     <ClInclude Include="..\..\..\lib\common\threading.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\bitstream.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\error_private.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\mem.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\fse.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\huf.h" /> | ||||
|   | ||||
| @@ -61,7 +61,7 @@ | ||||
|     <ClInclude Include="..\..\..\lib\common\threading.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\bitstream.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\error_private.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\mem.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\fse.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\huf.h" /> | ||||
|   | ||||
| @@ -70,14 +70,14 @@ | ||||
|     <ClInclude Include="..\..\..\lib\common\threading.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\xxhash.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstdmt_compress.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\zdict.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zdict.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\cover.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\dictBuilder\divsufsort.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\fse.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\huf.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_internal.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\common\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\zstd_errors.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstd_compress.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstd_compress_literals.h" /> | ||||
|     <ClInclude Include="..\..\..\lib\compress\zstd_compress_sequences.h" /> | ||||
|   | ||||
| @@ -162,8 +162,8 @@ endif () | ||||
| # install target | ||||
| install(FILES | ||||
|     "${LIBRARY_DIR}/zstd.h" | ||||
|     "${LIBRARY_DIR}/dictBuilder/zdict.h" | ||||
|     "${LIBRARY_DIR}/common/zstd_errors.h" | ||||
|     "${LIBRARY_DIR}/zdict.h" | ||||
|     "${LIBRARY_DIR}/zstd_errors.h" | ||||
|     DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") | ||||
|  | ||||
| install(TARGETS ${library_targets} | ||||
|   | ||||
| @@ -124,5 +124,5 @@ pkgconfig.generate(libzstd, | ||||
|   url: 'http://www.zstd.net/') | ||||
|  | ||||
| install_headers(join_paths(zstd_rootdir, 'lib/zstd.h'), | ||||
|   join_paths(zstd_rootdir, 'lib/dictBuilder/zdict.h'), | ||||
|   join_paths(zstd_rootdir, 'lib/common/zstd_errors.h')) | ||||
|   join_paths(zstd_rootdir, 'lib/zdict.h'), | ||||
|   join_paths(zstd_rootdir, 'lib/zstd_errors.h')) | ||||
|   | ||||
| @@ -390,7 +390,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -426,7 +426,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -454,7 +454,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -454,7 +454,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -482,7 +482,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -446,7 +446,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\common\zstd_errors.h" | ||||
| 				RelativePath="..\..\..\lib\zstd_errors.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| @@ -478,7 +478,7 @@ | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
| 				RelativePath="..\..\..\lib\dictBuilder\zdict.h" | ||||
| 				RelativePath="..\..\..\lib\zdict.h" | ||||
| 				> | ||||
| 			</File> | ||||
| 			<File | ||||
|   | ||||
| @@ -481,6 +481,7 @@ class Freestanding(object): | ||||
|         assert os.path.exists(self._src_lib) | ||||
|         os.makedirs(self._dst_lib, exist_ok=True) | ||||
|         self._copy_file("zstd.h") | ||||
|         self._copy_file("zstd_errors.h") | ||||
|         for subdir in INCLUDED_SUBDIRS: | ||||
|             src_dir = os.path.join(self._src_lib, subdir) | ||||
|             dst_dir = os.path.join(self._dst_lib, subdir) | ||||
|   | ||||
| @@ -23,7 +23,7 @@ libzstd: | ||||
| 		--rewrite-include '<limits\.h>=<linux/limits.h>' \ | ||||
| 		--rewrite-include '<stddef\.h>=<linux/types.h>' \ | ||||
| 		--rewrite-include '"\.\./zstd.h"=<linux/zstd.h>' \ | ||||
| 		--rewrite-include '"(\.\./common/)?zstd_errors.h"=<linux/zstd_errors.h>' \ | ||||
| 		--rewrite-include '"(\.\./)?zstd_errors.h"=<linux/zstd_errors.h>' \ | ||||
| 		--sed 's,/\*\*\*,/* *,g' \ | ||||
| 		--sed 's,/\*\*,/*,g' \ | ||||
| 		-DZSTD_NO_INTRINSICS \ | ||||
| @@ -54,7 +54,7 @@ libzstd: | ||||
| 		-DZSTD_TRACE=0 \ | ||||
| 		-DZSTD_NO_TRACE | ||||
| 	mv linux/lib/zstd/zstd.h linux/include/linux/zstd_lib.h | ||||
| 	mv linux/lib/zstd/common/zstd_errors.h linux/include/linux/ | ||||
| 	mv linux/lib/zstd/zstd_errors.h linux/include/linux/ | ||||
| 	cp linux_zstd.h linux/include/linux/zstd.h | ||||
| 	cp zstd_compress_module.c linux/lib/zstd | ||||
| 	cp zstd_decompress_module.c linux/lib/zstd | ||||
| @@ -80,7 +80,7 @@ import-upstream: | ||||
| 	cp -r ../../lib/common $(LINUX)/lib/zstd | ||||
| 	cp -r ../../lib/compress $(LINUX)/lib/zstd | ||||
| 	cp -r ../../lib/decompress $(LINUX)/lib/zstd | ||||
| 	mv $(LINUX)/lib/zstd/common/zstd_errors.h $(LINUX)/include/linux | ||||
| 	mv $(LINUX)/lib/zstd/zstd_errors.h $(LINUX)/include/linux | ||||
| 	rm $(LINUX)/lib/zstd/common/threading.* | ||||
| 	rm $(LINUX)/lib/zstd/common/pool.* | ||||
| 	rm $(LINUX)/lib/zstd/common/xxhash.* | ||||
|   | ||||
							
								
								
									
										12
									
								
								lib/BUCK
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								lib/BUCK
									
									
									
									
									
								
							| @@ -65,9 +65,7 @@ cxx_library( | ||||
|     name='zdict', | ||||
|     header_namespace='', | ||||
|     visibility=['PUBLIC'], | ||||
|     exported_headers=subdir_glob([ | ||||
|         ('dictBuilder', 'zdict.h'), | ||||
|     ]), | ||||
|     exported_headers=['zdict.h'], | ||||
|     headers=subdir_glob([ | ||||
|         ('dictBuilder', 'divsufsort.h'), | ||||
|         ('dictBuilder', 'cover.h'), | ||||
| @@ -131,10 +129,10 @@ cxx_library( | ||||
|     name='errors', | ||||
|     header_namespace='', | ||||
|     visibility=['PUBLIC'], | ||||
|     exported_headers=subdir_glob([ | ||||
|         ('common', 'error_private.h'), | ||||
|         ('common', 'zstd_errors.h'), | ||||
|     ]), | ||||
|     exported_headers=[ | ||||
|         'zstd_errors.h', | ||||
|         'common/error_private.h', | ||||
|     ] | ||||
|     srcs=['common/error_private.c'], | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -435,8 +435,8 @@ install-includes: | ||||
| 	[ -e $(DESTDIR)$(INCLUDEDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR)/ | ||||
| 	@echo Installing includes | ||||
| 	$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR) | ||||
| 	$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR) | ||||
| 	$(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR) | ||||
| 	$(INSTALL_DATA) zstd_errors.h $(DESTDIR)$(INCLUDEDIR) | ||||
| 	$(INSTALL_DATA) zdict.h $(DESTDIR)$(INCLUDEDIR) | ||||
|  | ||||
| .PHONY: uninstall | ||||
| uninstall: | ||||
|   | ||||
| @@ -42,8 +42,8 @@ Zstandard's stable API is exposed within [lib/zstd.h](zstd.h). | ||||
|  | ||||
| Optional advanced features are exposed via : | ||||
|  | ||||
| - `lib/common/zstd_errors.h` : translates `size_t` function results | ||||
|                                into a `ZSTD_ErrorCode`, for accurate error handling. | ||||
| - `lib/zstd_errors.h` : translates `size_t` function results | ||||
|                         into a `ZSTD_ErrorCode`, for accurate error handling. | ||||
|  | ||||
| - `ZSTD_STATIC_LINKING_ONLY` : if this macro is defined _before_ including `zstd.h`, | ||||
|                           it unlocks access to the experimental API, | ||||
|   | ||||
| @@ -21,8 +21,8 @@ extern "C" { | ||||
| /* **************************************** | ||||
| *  Dependencies | ||||
| ******************************************/ | ||||
| #include "zstd_deps.h"    /* size_t */ | ||||
| #include "zstd_errors.h"  /* enum list */ | ||||
| #include "../zstd_errors.h"  /* enum list */ | ||||
| #include "zstd_deps.h"       /* size_t */ | ||||
|  | ||||
|  | ||||
| /* **************************************** | ||||
|   | ||||
| @@ -26,15 +26,16 @@ | ||||
| #include <string.h> /* memset */ | ||||
| #include <time.h>   /* clock */ | ||||
|  | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #  define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
|  | ||||
| #include "../common/mem.h" /* read */ | ||||
| #include "../common/pool.h" | ||||
| #include "../common/threading.h" | ||||
| #include "cover.h" | ||||
| #include "../common/zstd_internal.h" /* includes zstd.h */ | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
| #include "zdict.h" | ||||
| #include "../zdict.h" | ||||
| #include "cover.h" | ||||
|  | ||||
| /*-************************************* | ||||
| *  Constants | ||||
|   | ||||
| @@ -8,6 +8,10 @@ | ||||
|  * You may select, at your option, one of the above-listed licenses. | ||||
|  */ | ||||
|  | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #  define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
|  | ||||
| #include <stdio.h>  /* fprintf */ | ||||
| #include <stdlib.h> /* malloc, free, qsort */ | ||||
| #include <string.h> /* memset */ | ||||
| @@ -16,10 +20,7 @@ | ||||
| #include "../common/pool.h" | ||||
| #include "../common/threading.h" | ||||
| #include "../common/zstd_internal.h" /* includes zstd.h */ | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
| #include "zdict.h" | ||||
| #include "../zdict.h" | ||||
|  | ||||
| /** | ||||
|  * COVER_best_t is used for two purposes: | ||||
|   | ||||
| @@ -16,16 +16,17 @@ | ||||
| #include <string.h> /* memset */ | ||||
| #include <time.h>   /* clock */ | ||||
|  | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #  define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
|  | ||||
| #include "../common/mem.h" /* read */ | ||||
| #include "../common/pool.h" | ||||
| #include "../common/threading.h" | ||||
| #include "cover.h" | ||||
| #include "../common/zstd_internal.h" /* includes zstd.h */ | ||||
| #include "../compress/zstd_compress_internal.h" /* ZSTD_hash*() */ | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
| #include "zdict.h" | ||||
| #include "../zdict.h" | ||||
| #include "cover.h" | ||||
|  | ||||
|  | ||||
| /*-************************************* | ||||
|   | ||||
| @@ -41,18 +41,19 @@ | ||||
| #include <stdio.h>         /* fprintf, fopen, ftello64 */ | ||||
| #include <time.h>          /* clock */ | ||||
|  | ||||
| #include "../common/mem.h"           /* read */ | ||||
| #include "../common/fse.h"           /* FSE_normalizeCount, FSE_writeNCount */ | ||||
| #define HUF_STATIC_LINKING_ONLY | ||||
| #include "../common/huf.h"           /* HUF_buildCTable, HUF_writeCTable */ | ||||
| #include "../common/zstd_internal.h" /* includes zstd.h */ | ||||
| #include "../common/xxhash.h"        /* XXH64 */ | ||||
| #include "divsufsort.h" | ||||
| #ifndef ZDICT_STATIC_LINKING_ONLY | ||||
| #  define ZDICT_STATIC_LINKING_ONLY | ||||
| #endif | ||||
| #include "zdict.h" | ||||
| #define HUF_STATIC_LINKING_ONLY | ||||
|  | ||||
| #include "../common/mem.h"           /* read */ | ||||
| #include "../common/fse.h"           /* FSE_normalizeCount, FSE_writeNCount */ | ||||
| #include "../common/huf.h"           /* HUF_buildCTable, HUF_writeCTable */ | ||||
| #include "../common/zstd_internal.h" /* includes zstd.h */ | ||||
| #include "../common/xxhash.h"        /* XXH64 */ | ||||
| #include "../compress/zstd_compress_internal.h" /* ZSTD_loadCEntropy() */ | ||||
| #include "../zdict.h" | ||||
| #include "divsufsort.h" | ||||
|  | ||||
|  | ||||
| /*-************************************* | ||||
|   | ||||
| @@ -815,7 +815,7 @@ ZSTDLIB_API size_t ZSTD_DStreamOutSize(void);   /*!< recommended size for output | ||||
| /*! ZSTD_compress_usingDict() : | ||||
|  *  Compression at an explicit compression level using a Dictionary. | ||||
|  *  A dictionary can be any arbitrary data segment (also called a prefix), | ||||
|  *  or a buffer with specified information (see dictBuilder/zdict.h). | ||||
|  *  or a buffer with specified information (see zdict.h). | ||||
|  *  Note : This function loads the dictionary, resulting in significant startup delay. | ||||
|  *         It's intended for a dictionary used only once. | ||||
|  *  Note 2 : When `dict == NULL || dictSize < 8` no dictionary is used. */ | ||||
| @@ -1845,7 +1845,7 @@ ZSTDLIB_API size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx* cctx, const void* pre | ||||
|  | ||||
| /* ZSTD_c_splitBlocks | ||||
|  * Default is 0 == disabled. Set to 1 to enable block splitting. | ||||
|  *  | ||||
|  * | ||||
|  * Will attempt to split blocks in order to improve compression ratio at the cost of speed. | ||||
|  */ | ||||
| #define ZSTD_c_splitBlocks ZSTD_c_experimentalParam13 | ||||
| @@ -1853,11 +1853,11 @@ ZSTDLIB_API size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx* cctx, const void* pre | ||||
| /* ZSTD_c_useRowMatchFinder | ||||
|  * Default is ZSTD_urm_auto. | ||||
|  * Controlled with ZSTD_useRowMatchFinderMode_e enum. | ||||
|  *  | ||||
|  * | ||||
|  * By default, in ZSTD_urm_auto, when finalizing the compression parameters, the library | ||||
|  * will decide at runtime whether to use the row-based matchfinder based on support for SIMD | ||||
|  * instructions as well as the windowLog. | ||||
|  *  | ||||
|  * | ||||
|  * Set to ZSTD_urm_disableRowMatchFinder to never use row-based matchfinder. | ||||
|  * Set to ZSTD_urm_enableRowMatchFinder to force usage of row-based matchfinder. | ||||
|  */ | ||||
|   | ||||
| @@ -36,7 +36,7 @@ | ||||
| #include "datagen.h"     /* RDG_genBuffer */ | ||||
| #include "../lib/common/xxhash.h" | ||||
| #include "benchzstd.h" | ||||
| #include "../lib/common/zstd_errors.h" | ||||
| #include "../lib/zstd_errors.h" | ||||
|  | ||||
|  | ||||
| /* ************************************* | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
| *  Dependencies | ||||
| ***************************************/ | ||||
| #define ZDICT_STATIC_LINKING_ONLY | ||||
| #include "../lib/dictBuilder/zdict.h"     /* ZDICT_params_t */ | ||||
| #include "../lib/zdict.h"     /* ZDICT_params_t */ | ||||
|  | ||||
|  | ||||
| /*-************************************* | ||||
|   | ||||
| @@ -44,7 +44,7 @@ | ||||
|  | ||||
| #define ZSTD_STATIC_LINKING_ONLY   /* ZSTD_magicNumber, ZSTD_frameHeaderSize_max */ | ||||
| #include "../lib/zstd.h" | ||||
| #include "../lib/common/zstd_errors.h"  /* ZSTD_error_frameParameter_windowTooLarge */ | ||||
| #include "../lib/zstd_errors.h"  /* ZSTD_error_frameParameter_windowTooLarge */ | ||||
|  | ||||
| #if defined(ZSTD_GZCOMPRESS) || defined(ZSTD_GZDECOMPRESS) | ||||
| #  include <zlib.h> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user