Merge pull request #2752 from facebook/hashLog3max
make ZSTD_HASHLOG3_MAX private
This commit is contained in:
commit
18a20b3ad7
@ -42,6 +42,18 @@
|
|||||||
# define ZSTD_COMPRESS_HEAPMODE 0
|
# define ZSTD_COMPRESS_HEAPMODE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* ZSTD_HASHLOG3_MAX :
|
||||||
|
* Maximum size of the hash table dedicated to find 3-bytes matches,
|
||||||
|
* in log format, aka 17 => 1 << 17 == 128Ki positions.
|
||||||
|
* This structure is only used in zstd_opt.
|
||||||
|
* Since allocation is centralized for all strategies, it has to be known here.
|
||||||
|
* The actual (selected) size of the hash table is then stored in ZSTD_matchState_t.hashLog3,
|
||||||
|
* so that zstd_opt.c doesn't need to know about this constant.
|
||||||
|
*/
|
||||||
|
#ifndef ZSTD_HASHLOG3_MAX
|
||||||
|
# define ZSTD_HASHLOG3_MAX 17
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-*************************************
|
/*-*************************************
|
||||||
* Helper functions
|
* Helper functions
|
||||||
|
@ -1157,9 +1157,6 @@ ZSTDLIB_API size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict);
|
|||||||
#define ZSTD_SRCSIZEHINT_MIN 0
|
#define ZSTD_SRCSIZEHINT_MIN 0
|
||||||
#define ZSTD_SRCSIZEHINT_MAX INT_MAX
|
#define ZSTD_SRCSIZEHINT_MAX INT_MAX
|
||||||
|
|
||||||
/* internal */
|
|
||||||
#define ZSTD_HASHLOG3_MAX 17
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Advanced types --- */
|
/* --- Advanced types --- */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user