Merge pull request #4068 from DimitriPapadopoulos/codespell
Fix new typos found by codespell
This commit is contained in:
@@ -3,7 +3,7 @@ api: Promote `ZSTD_c_targetCBlockSize` to Stable API by @felixhandte
|
|||||||
api: new `ZSTD_d_maxBlockSize` experimental parameter, to reduce streaming decompression memory, by @terrelln
|
api: new `ZSTD_d_maxBlockSize` experimental parameter, to reduce streaming decompression memory, by @terrelln
|
||||||
perf: improve performance of param `ZSTD_c_targetCBlockSize`, by @Cyan4973
|
perf: improve performance of param `ZSTD_c_targetCBlockSize`, by @Cyan4973
|
||||||
perf: improved compression of arrays of integers at high compression, by @Cyan4973
|
perf: improved compression of arrays of integers at high compression, by @Cyan4973
|
||||||
lib: reduce binary size with selective built-time exclusion, by @felixhandte
|
lib: reduce binary size with selective build-time exclusion, by @felixhandte
|
||||||
lib: improved huffman speed on small data and linux kernel, by @terrelln
|
lib: improved huffman speed on small data and linux kernel, by @terrelln
|
||||||
lib: accept dictionaries with partial literal tables, by @terrelln
|
lib: accept dictionaries with partial literal tables, by @terrelln
|
||||||
lib: fix CCtx size estimation with external sequence producer, by @embg
|
lib: fix CCtx size estimation with external sequence producer, by @embg
|
||||||
@@ -489,7 +489,7 @@ misc: added /contrib/docker script by @gyscos
|
|||||||
|
|
||||||
v1.3.3 (Dec 21, 2017)
|
v1.3.3 (Dec 21, 2017)
|
||||||
perf: faster zstd_opt strategy (levels 16-19)
|
perf: faster zstd_opt strategy (levels 16-19)
|
||||||
fix : bug #944 : multithreading with shared ditionary and large data, reported by @gsliepen
|
fix : bug #944 : multithreading with shared dictionary and large data, reported by @gsliepen
|
||||||
cli : fix : content size written in header by default
|
cli : fix : content size written in header by default
|
||||||
cli : fix : improved LZ4 format support, by @felixhandte
|
cli : fix : improved LZ4 format support, by @felixhandte
|
||||||
cli : new : hidden command `-S`, to benchmark multiple files while generating one result per file
|
cli : new : hidden command `-S`, to benchmark multiple files while generating one result per file
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ macro(ADD_ZSTD_COMPILATION_FLAGS)
|
|||||||
# Note that zstd source code is compatible with both C++98 and above
|
# Note that zstd source code is compatible with both C++98 and above
|
||||||
# and C-gnu90 (c90 + long long + variadic macros ) and above
|
# and C-gnu90 (c90 + long long + variadic macros ) and above
|
||||||
# EnableCompilerFlag("-std=c++11" false true) # Set C++ compilation to c++11 standard
|
# EnableCompilerFlag("-std=c++11" false true) # Set C++ compilation to c++11 standard
|
||||||
# EnableCompilerFlag("-std=c99" true false) # Set C compiation to c99 standard
|
# EnableCompilerFlag("-std=c99" true false) # Set C compilation to c99 standard
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND MSVC)
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND MSVC)
|
||||||
# clang-cl normally maps -Wall to -Weverything.
|
# clang-cl normally maps -Wall to -Weverything.
|
||||||
EnableCompilerFlag("/clang:-Wall" true true false)
|
EnableCompilerFlag("/clang:-Wall" true true false)
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); </b>/* accept NULL pointer */<b>
|
|||||||
* Special: value 0 means "use default strategy". */
|
* Special: value 0 means "use default strategy". */
|
||||||
|
|
||||||
ZSTD_c_targetCBlockSize=130, </b>/* v1.5.6+<b>
|
ZSTD_c_targetCBlockSize=130, </b>/* v1.5.6+<b>
|
||||||
* Attempts to fit compressed block size into approximatively targetCBlockSize.
|
* Attempts to fit compressed block size into approximately targetCBlockSize.
|
||||||
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
|
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
|
||||||
* Note that it's not a guarantee, just a convergence target (default:0).
|
* Note that it's not a guarantee, just a convergence target (default:0).
|
||||||
* No target when targetCBlockSize == 0.
|
* No target when targetCBlockSize == 0.
|
||||||
|
|||||||
@@ -326,7 +326,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function to perform a wrapped pointer difference without trigging
|
* Helper function to perform a wrapped pointer difference without triggering
|
||||||
* UBSAN.
|
* UBSAN.
|
||||||
*
|
*
|
||||||
* @returns lhs - rhs with wrapping
|
* @returns lhs - rhs with wrapping
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only enable assembly for GNUC compatible compilers,
|
* Only enable assembly for GNU C compatible compilers,
|
||||||
* because other platforms may not support GAS assembly syntax.
|
* because other platforms may not support GAS assembly syntax.
|
||||||
*
|
*
|
||||||
* Only enable assembly for Linux / MacOS, other platforms may
|
* Only enable assembly for Linux / MacOS, other platforms may
|
||||||
|
|||||||
@@ -2606,7 +2606,7 @@ ZSTD_reduceTable_internal (U32* const table, U32 const size, U32 const reducerVa
|
|||||||
/* Protect special index values < ZSTD_WINDOW_START_INDEX. */
|
/* Protect special index values < ZSTD_WINDOW_START_INDEX. */
|
||||||
U32 const reducerThreshold = reducerValue + ZSTD_WINDOW_START_INDEX;
|
U32 const reducerThreshold = reducerValue + ZSTD_WINDOW_START_INDEX;
|
||||||
assert((size & (ZSTD_ROWSIZE-1)) == 0); /* multiple of ZSTD_ROWSIZE */
|
assert((size & (ZSTD_ROWSIZE-1)) == 0); /* multiple of ZSTD_ROWSIZE */
|
||||||
assert(size < (1U<<31)); /* can be casted to int */
|
assert(size < (1U<<31)); /* can be cast to int */
|
||||||
|
|
||||||
#if ZSTD_MEMORY_SANITIZER && !defined (ZSTD_MSAN_DONT_POISON_WORKSPACE)
|
#if ZSTD_MEMORY_SANITIZER && !defined (ZSTD_MSAN_DONT_POISON_WORKSPACE)
|
||||||
/* To validate that the table reuse logic is sound, and that we don't
|
/* To validate that the table reuse logic is sound, and that we don't
|
||||||
@@ -5622,7 +5622,7 @@ size_t ZSTD_freeCDict(ZSTD_CDict* cdict)
|
|||||||
* workspaceSize: Use ZSTD_estimateCDictSize()
|
* workspaceSize: Use ZSTD_estimateCDictSize()
|
||||||
* to determine how large workspace must be.
|
* to determine how large workspace must be.
|
||||||
* cParams : use ZSTD_getCParams() to transform a compression level
|
* cParams : use ZSTD_getCParams() to transform a compression level
|
||||||
* into its relevants cParams.
|
* into its relevant cParams.
|
||||||
* @return : pointer to ZSTD_CDict*, or NULL if error (size too small)
|
* @return : pointer to ZSTD_CDict*, or NULL if error (size too small)
|
||||||
* Note : there is no corresponding "free" function.
|
* Note : there is no corresponding "free" function.
|
||||||
* Since workspace was allocated externally, it must be freed externally.
|
* Since workspace was allocated externally, it must be freed externally.
|
||||||
|
|||||||
@@ -1123,9 +1123,9 @@ ZSTD_row_getMatchMask(const BYTE* const tagRow, const BYTE tag, const U32 headGr
|
|||||||
|
|
||||||
/* The high-level approach of the SIMD row based match finder is as follows:
|
/* The high-level approach of the SIMD row based match finder is as follows:
|
||||||
* - Figure out where to insert the new entry:
|
* - Figure out where to insert the new entry:
|
||||||
* - Generate a hash for current input posistion and split it into a one byte of tag and `rowHashLog` bits of index.
|
* - Generate a hash for current input position and split it into a one byte of tag and `rowHashLog` bits of index.
|
||||||
* - The hash is salted by a value that changes on every contex reset, so when the same table is used
|
* - The hash is salted by a value that changes on every context reset, so when the same table is used
|
||||||
* we will avoid collisions that would otherwise slow us down by intorducing phantom matches.
|
* we will avoid collisions that would otherwise slow us down by introducing phantom matches.
|
||||||
* - The hashTable is effectively split into groups or "rows" of 15 or 31 entries of U32, and the index determines
|
* - The hashTable is effectively split into groups or "rows" of 15 or 31 entries of U32, and the index determines
|
||||||
* which row to insert into.
|
* which row to insert into.
|
||||||
* - Determine the correct position within the row to insert the entry into. Each row of 15 or 31 can
|
* - Determine the correct position within the row to insert the entry into. Each row of 15 or 31 can
|
||||||
|
|||||||
@@ -811,7 +811,7 @@ size_t ZSTD_findFrameCompressedSize(const void *src, size_t srcSize)
|
|||||||
|
|
||||||
/** ZSTD_decompressBound() :
|
/** ZSTD_decompressBound() :
|
||||||
* compatible with legacy mode
|
* compatible with legacy mode
|
||||||
* `src` must point to the start of a ZSTD frame or a skippeable frame
|
* `src` must point to the start of a ZSTD frame or a skippable frame
|
||||||
* `srcSize` must be at least as large as the frame contained
|
* `srcSize` must be at least as large as the frame contained
|
||||||
* @return : the maximum decompressed size of the compressed source
|
* @return : the maximum decompressed size of the compressed source
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ size_t ZSTD_decodeLiteralsBlock_wrapper(ZSTD_DCtx* dctx,
|
|||||||
* - start from default distributions, present in /lib/common/zstd_internal.h
|
* - start from default distributions, present in /lib/common/zstd_internal.h
|
||||||
* - generate tables normally, using ZSTD_buildFSETable()
|
* - generate tables normally, using ZSTD_buildFSETable()
|
||||||
* - printout the content of tables
|
* - printout the content of tables
|
||||||
* - pretify output, report below, test with fuzzer to ensure it's correct */
|
* - prettify output, report below, test with fuzzer to ensure it's correct */
|
||||||
|
|
||||||
/* Default FSE distribution table for Literal Lengths */
|
/* Default FSE distribution table for Literal Lengths */
|
||||||
static const ZSTD_seqSymbol LL_defaultDTable[(1<<LL_DEFAULTNORMLOG)+1] = {
|
static const ZSTD_seqSymbol LL_defaultDTable[(1<<LL_DEFAULTNORMLOG)+1] = {
|
||||||
|
|||||||
+1
-1
@@ -395,7 +395,7 @@ typedef enum {
|
|||||||
* Special: value 0 means "use default strategy". */
|
* Special: value 0 means "use default strategy". */
|
||||||
|
|
||||||
ZSTD_c_targetCBlockSize=130, /* v1.5.6+
|
ZSTD_c_targetCBlockSize=130, /* v1.5.6+
|
||||||
* Attempts to fit compressed block size into approximatively targetCBlockSize.
|
* Attempts to fit compressed block size into approximately targetCBlockSize.
|
||||||
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
|
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
|
||||||
* Note that it's not a guarantee, just a convergence target (default:0).
|
* Note that it's not a guarantee, just a convergence target (default:0).
|
||||||
* No target when targetCBlockSize == 0.
|
* No target when targetCBlockSize == 0.
|
||||||
|
|||||||
+1
-1
@@ -2478,7 +2478,7 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests)
|
|||||||
|
|
||||||
DISPLAYLEVEL(3, "test%3i : Test single-shot fallback for magicless mode: ", testNb++);
|
DISPLAYLEVEL(3, "test%3i : Test single-shot fallback for magicless mode: ", testNb++);
|
||||||
{
|
{
|
||||||
// Aquire resources
|
// Acquire resources
|
||||||
size_t const srcSize = COMPRESSIBLE_NOISE_LENGTH;
|
size_t const srcSize = COMPRESSIBLE_NOISE_LENGTH;
|
||||||
void* src = malloc(srcSize);
|
void* src = malloc(srcSize);
|
||||||
size_t const dstSize = ZSTD_compressBound(srcSize);
|
size_t const dstSize = ZSTD_compressBound(srcSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user