Skip to content

Commit 4fe0ba0

Browse files
authored
Merge pull request #4068 from DimitriPapadopoulos/codespell
Fix new typos found by codespell
2 parents 17b5315 + 44e83e9 commit 4fe0ba0

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

CHANGELOG

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ api: Promote `ZSTD_c_targetCBlockSize` to Stable API by @felixhandte
33
api: new `ZSTD_d_maxBlockSize` experimental parameter, to reduce streaming decompression memory, by @terrelln
44
perf: improve performance of param `ZSTD_c_targetCBlockSize`, by @Cyan4973
55
perf: improved compression of arrays of integers at high compression, by @Cyan4973
6-
lib: reduce binary size with selective built-time exclusion, by @felixhandte
6+
lib: reduce binary size with selective build-time exclusion, by @felixhandte
77
lib: improved huffman speed on small data and linux kernel, by @terrelln
88
lib: accept dictionaries with partial literal tables, by @terrelln
99
lib: fix CCtx size estimation with external sequence producer, by @embg
@@ -489,7 +489,7 @@ misc: added /contrib/docker script by @gyscos
489489

490490
v1.3.3 (Dec 21, 2017)
491491
perf: faster zstd_opt strategy (levels 16-19)
492-
fix : bug #944 : multithreading with shared ditionary and large data, reported by @gsliepen
492+
fix : bug #944 : multithreading with shared dictionary and large data, reported by @gsliepen
493493
cli : fix : content size written in header by default
494494
cli : fix : improved LZ4 format support, by @felixhandte
495495
cli : new : hidden command `-S`, to benchmark multiple files while generating one result per file

build/cmake/CMakeModules/AddZstdCompilationFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ macro(ADD_ZSTD_COMPILATION_FLAGS)
5757
# Note that zstd source code is compatible with both C++98 and above
5858
# and C-gnu90 (c90 + long long + variadic macros ) and above
5959
# EnableCompilerFlag("-std=c++11" false true) # Set C++ compilation to c++11 standard
60-
# EnableCompilerFlag("-std=c99" true false) # Set C compiation to c99 standard
60+
# EnableCompilerFlag("-std=c99" true false) # Set C compilation to c99 standard
6161
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND MSVC)
6262
# clang-cl normally maps -Wall to -Weverything.
6363
EnableCompilerFlag("/clang:-Wall" true true false)

doc/zstd_manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ <h3>Decompression context</h3><pre> When decompressing many times,
298298
* Special: value 0 means "use default strategy". */
299299

300300
ZSTD_c_targetCBlockSize=130, </b>/* v1.5.6+<b>
301-
* Attempts to fit compressed block size into approximatively targetCBlockSize.
301+
* Attempts to fit compressed block size into approximately targetCBlockSize.
302302
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
303303
* Note that it's not a guarantee, just a convergence target (default:0).
304304
* No target when targetCBlockSize == 0.

lib/common/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
#endif
327327

328328
/**
329-
* Helper function to perform a wrapped pointer difference without trigging
329+
* Helper function to perform a wrapped pointer difference without triggering
330330
* UBSAN.
331331
*
332332
* @returns lhs - rhs with wrapping

lib/common/portability_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
#endif
9191

9292
/**
93-
* Only enable assembly for GNUC compatible compilers,
93+
* Only enable assembly for GNU C compatible compilers,
9494
* because other platforms may not support GAS assembly syntax.
9595
*
9696
* Only enable assembly for Linux / MacOS, other platforms may

lib/compress/zstd_compress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ ZSTD_reduceTable_internal (U32* const table, U32 const size, U32 const reducerVa
26062606
/* Protect special index values < ZSTD_WINDOW_START_INDEX. */
26072607
U32 const reducerThreshold = reducerValue + ZSTD_WINDOW_START_INDEX;
26082608
assert((size & (ZSTD_ROWSIZE-1)) == 0); /* multiple of ZSTD_ROWSIZE */
2609-
assert(size < (1U<<31)); /* can be casted to int */
2609+
assert(size < (1U<<31)); /* can be cast to int */
26102610

26112611
#if ZSTD_MEMORY_SANITIZER && !defined (ZSTD_MSAN_DONT_POISON_WORKSPACE)
26122612
/* 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)
56225622
* workspaceSize: Use ZSTD_estimateCDictSize()
56235623
* to determine how large workspace must be.
56245624
* cParams : use ZSTD_getCParams() to transform a compression level
5625-
* into its relevants cParams.
5625+
* into its relevant cParams.
56265626
* @return : pointer to ZSTD_CDict*, or NULL if error (size too small)
56275627
* Note : there is no corresponding "free" function.
56285628
* Since workspace was allocated externally, it must be freed externally.

lib/compress/zstd_lazy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,9 @@ ZSTD_row_getMatchMask(const BYTE* const tagRow, const BYTE tag, const U32 headGr
11231123

11241124
/* The high-level approach of the SIMD row based match finder is as follows:
11251125
* - Figure out where to insert the new entry:
1126-
* - Generate a hash for current input posistion and split it into a one byte of tag and `rowHashLog` bits of index.
1127-
* - The hash is salted by a value that changes on every contex reset, so when the same table is used
1128-
* we will avoid collisions that would otherwise slow us down by intorducing phantom matches.
1126+
* - Generate a hash for current input position and split it into a one byte of tag and `rowHashLog` bits of index.
1127+
* - The hash is salted by a value that changes on every context reset, so when the same table is used
1128+
* we will avoid collisions that would otherwise slow us down by introducing phantom matches.
11291129
* - The hashTable is effectively split into groups or "rows" of 15 or 31 entries of U32, and the index determines
11301130
* which row to insert into.
11311131
* - Determine the correct position within the row to insert the entry into. Each row of 15 or 31 can

lib/decompress/zstd_decompress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ size_t ZSTD_findFrameCompressedSize(const void *src, size_t srcSize)
811811

812812
/** ZSTD_decompressBound() :
813813
* compatible with legacy mode
814-
* `src` must point to the start of a ZSTD frame or a skippeable frame
814+
* `src` must point to the start of a ZSTD frame or a skippable frame
815815
* `srcSize` must be at least as large as the frame contained
816816
* @return : the maximum decompressed size of the compressed source
817817
*/

lib/decompress/zstd_decompress_block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ size_t ZSTD_decodeLiteralsBlock_wrapper(ZSTD_DCtx* dctx,
358358
* - start from default distributions, present in /lib/common/zstd_internal.h
359359
* - generate tables normally, using ZSTD_buildFSETable()
360360
* - printout the content of tables
361-
* - pretify output, report below, test with fuzzer to ensure it's correct */
361+
* - prettify output, report below, test with fuzzer to ensure it's correct */
362362

363363
/* Default FSE distribution table for Literal Lengths */
364364
static const ZSTD_seqSymbol LL_defaultDTable[(1<<LL_DEFAULTNORMLOG)+1] = {

lib/zstd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ typedef enum {
395395
* Special: value 0 means "use default strategy". */
396396

397397
ZSTD_c_targetCBlockSize=130, /* v1.5.6+
398-
* Attempts to fit compressed block size into approximatively targetCBlockSize.
398+
* Attempts to fit compressed block size into approximately targetCBlockSize.
399399
* Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX.
400400
* Note that it's not a guarantee, just a convergence target (default:0).
401401
* No target when targetCBlockSize == 0.

0 commit comments

Comments
 (0)