diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a9ad99ebdab..364211a00bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -330,7 +330,7 @@ Instruments. * You will want a benchmark that runs for at least a few seconds (5 seconds will usually be long enough). This way the profiler will have something to work with and you will have ample time to attach your profiler to this process:) - * I will just use benchzstd as my benchmarmking script for this example: + * I will just use benchzstd as my benchmarking script for this example: ``` $ zstd -b1 -i5 # this will run for 5 seconds ``` diff --git a/lib/README.md b/lib/README.md index aa92bd659da..b77aa654688 100644 --- a/lib/README.md +++ b/lib/README.md @@ -201,7 +201,7 @@ The file structure is designed to make this selection manually achievable for an `ZSTDLIB_STATIC_API` and `ZDICTLIB_STATIC_API` can be overridden to control the visibility of zstd's static API. Specifically, it can be set to `ZSTDLIB_HIDDEN` to hide the symbols from the shared library. These macros default to `ZSTDLIB_VISIBILITY`, - `ZSTDERRORLIB_VSIBILITY`, and `ZDICTLIB_VISIBILITY` if unset, for backwards compatibility + `ZSTDERRORLIB_VISIBILITY`, and `ZDICTLIB_VISIBILITY` if unset, for backwards compatibility with the old macro names. - The C compiler macro `HUF_DISABLE_FAST_DECODE` disables the newer Huffman fast C diff --git a/lib/common/compiler.h b/lib/common/compiler.h index 5e70570ec7a..71deccacbf7 100644 --- a/lib/common/compiler.h +++ b/lib/common/compiler.h @@ -344,7 +344,7 @@ MEM_STATIC int ZSTD_isPower2(size_t u) { #ifndef ZSTD_ALLOW_POINTER_OVERFLOW_ATTR # if __has_attribute(no_sanitize) # if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 8 - /* gcc < 8 only has signed-integer-overlow which triggers on pointer overflow */ + /* gcc < 8 only has signed-integer-overflow which triggers on pointer overflow */ # define ZSTD_ALLOW_POINTER_OVERFLOW_ATTR __attribute__((no_sanitize("signed-integer-overflow"))) # else /* older versions of clang [3.7, 5.0) will warn that pointer-overflow is ignored. */ diff --git a/lib/common/xxhash.h b/lib/common/xxhash.h index b6af402fdf4..4caf494641e 100644 --- a/lib/common/xxhash.h +++ b/lib/common/xxhash.h @@ -5760,7 +5760,7 @@ XXH3_initCustomSecret_scalar(void* XXH_RESTRICT customSecret, xxh_u64 seed64) * SUB STR * STR * - * See XXH3_NEON_LANES for details on the pipsline. + * See XXH3_NEON_LANES for details on the pipeline. * * XXH3_64bits_withSeed, len == 256, Snapdragon 835 * without hack: 2654.4 MB/s diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index c06f2e1bb98..1fb65f89cb9 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -7150,7 +7150,7 @@ size_t ZSTD_compressSequences(ZSTD_CCtx* cctx, * we use _mm256_permute4x64_epi64(..., 0xE8) to move lane2 into lane1, * then store the lower 16 bytes in one go. * - * @returns 0 on succes, with no long length detected + * @returns 0 on success, with no long length detected * @returns > 0 if there is one long length (> 65535), * indicating the position, and type. */ @@ -7310,7 +7310,7 @@ size_t convertSequences_noRepcodes( * - rep is ignored * Store only 8 bytes per SeqDef (offBase[4], litLength[2], mlBase[2]). * - * @returns 0 on succes, with no long length detected + * @returns 0 on success, with no long length detected * @returns > 0 if there is one long length (> 65535), * indicating the position, and type. */ diff --git a/lib/legacy/zstd_v04.c b/lib/legacy/zstd_v04.c index 31c2052583d..bd328f6e727 100644 --- a/lib/legacy/zstd_v04.c +++ b/lib/legacy/zstd_v04.c @@ -2342,7 +2342,7 @@ static size_t HUF_decompress (void* dst, size_t dstSize, const void* cSrc, size_ /* - zstd - decompression module fo v0.4 legacy format + zstd - decompression module for v0.4 legacy format Copyright (C) 2015-2016, Yann Collet. BSD 2-Clause License (https://opensource.org/licenses/bsd-license.php) diff --git a/programs/BUCK b/programs/BUCK index d2aa6373ff4..de77ab470c3 100644 --- a/programs/BUCK +++ b/programs/BUCK @@ -14,9 +14,9 @@ cxx_binary( '-DZSTD_GZCOMPRESS', '-DZSTD_GZDECOMPRESS', '-DZSTD_LZMACOMPRESS', - '-DZSTD_LZMADECOMPRES', + '-DZSTD_LZMADECOMPRESS', '-DZSTD_LZ4COMPRESS', - '-DZSTD_LZ4DECOMPRES', + '-DZSTD_LZ4DECOMPRESS', ], linker_flags=[ '-lz', diff --git a/tests/DEPRECATED-test-zstd-speed.py b/tests/DEPRECATED-test-zstd-speed.py index 71d75b8ccce..59c1dce0e5d 100755 --- a/tests/DEPRECATED-test-zstd-speed.py +++ b/tests/DEPRECATED-test-zstd-speed.py @@ -1,5 +1,5 @@ #! /usr/bin/env python3 -# THIS BENCHMARK IS BEING REPLACED BY automated-bencmarking.py +# THIS BENCHMARK IS BEING REPLACED BY automated-benchmarking.py # ################################################################ # Copyright (c) Meta Platforms, Inc. and affiliates.