summaryrefslogtreecommitdiffstats
path: root/thirdparty/zstd/compress/zstd_compress_sequences.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-22 14:32:14 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-22 14:32:14 +0200
commit6100b4bd33ab27d78f0f5087c770e42b25100eb9 (patch)
tree343157a10df7e3778e1e69725f88325c9b2b7340 /thirdparty/zstd/compress/zstd_compress_sequences.c
parent65fa775ff645e9ba1cb7fdc9cd8cb439bbbaae1a (diff)
downloadredot-engine-6100b4bd33ab27d78f0f5087c770e42b25100eb9.tar.gz
zstd: Update to upstream version 1.5.5
Release notes: - https://github.com/facebook/zstd/releases/tag/v1.5.3 - https://github.com/facebook/zstd/releases/tag/v1.5.4 - https://github.com/facebook/zstd/releases/tag/v1.5.5
Diffstat (limited to 'thirdparty/zstd/compress/zstd_compress_sequences.c')
-rw-r--r--thirdparty/zstd/compress/zstd_compress_sequences.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thirdparty/zstd/compress/zstd_compress_sequences.c b/thirdparty/zstd/compress/zstd_compress_sequences.c
index f1e40af2ea..8872d4d354 100644
--- a/thirdparty/zstd/compress/zstd_compress_sequences.c
+++ b/thirdparty/zstd/compress/zstd_compress_sequences.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) Yann Collet, Facebook, Inc.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
@@ -58,7 +58,7 @@ static unsigned ZSTD_useLowProbCount(size_t const nbSeq)
{
/* Heuristic: This should cover most blocks <= 16K and
* start to fade out after 16K to about 32K depending on
- * comprssibility.
+ * compressibility.
*/
return nbSeq >= 2048;
}
@@ -166,7 +166,7 @@ ZSTD_selectEncodingType(
if (mostFrequent == nbSeq) {
*repeatMode = FSE_repeat_none;
if (isDefaultAllowed && nbSeq <= 2) {
- /* Prefer set_basic over set_rle when there are 2 or less symbols,
+ /* Prefer set_basic over set_rle when there are 2 or fewer symbols,
* since RLE uses 1 byte, but set_basic uses 5-6 bits per symbol.
* If basic encoding isn't possible, always choose RLE.
*/