]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix some typos 3117/head
authorcuishuang <imcusg@gmail.com>
Tue, 26 Apr 2022 09:40:23 +0000 (17:40 +0800)
committercuishuang <imcusg@gmail.com>
Tue, 26 Apr 2022 09:40:23 +0000 (17:40 +0800)
Signed-off-by: cuishuang <imcusg@gmail.com>
contrib/freestanding_lib/freestanding.py
doc/decompressor_errata.md
lib/common/xxhash.h

index cd9d6377498ebf9d83fbd8b736e50a6aac52e24a..4a02dea147be4c5b6335236c13f0a6d14ffb9af4 100755 (executable)
@@ -340,7 +340,7 @@ class PartialPreprocessor(object):
 
                 if macro2 is not None and not resolved:
                     assert ifdef and defined and op == '&&' and cmp is not None
-                    # If the statment is true, but we have a single value check, then
+                    # If the statement is true, but we have a single value check, then
                     # check the value.
                     defined_value = self._defs[macro]
                     are_ints = True
@@ -690,7 +690,7 @@ def main(name, args):
     parser.add_argument("--rewrite-include", default=[], dest="rewritten_includes", action="append", help="Rewrite an include REGEX=NEW (e.g. '<stddef\\.h>=<linux/types.h>')")
     parser.add_argument("--sed", default=[], dest="seds", action="append", help="Apply a sed replacement. Format: `s/REGEX/FORMAT/[g]`. REGEX is a Python regex. FORMAT is a Python format string formatted by the regex dict.")
     parser.add_argument("-D", "--define", default=[], dest="defs", action="append", help="Pre-define this macro (can be passed multiple times)")
-    parser.add_argument("-U", "--undefine", default=[], dest="undefs", action="append", help="Pre-undefine this macro (can be passed mutliple times)")
+    parser.add_argument("-U", "--undefine", default=[], dest="undefs", action="append", help="Pre-undefine this macro (can be passed multiple times)")
     parser.add_argument("-R", "--replace", default=[], dest="replaces", action="append", help="Pre-define this macro and replace the first ifndef block with its definition")
     parser.add_argument("-E", "--exclude", default=[], dest="excludes", action="append", help="Exclude all lines between 'BEGIN <EXCLUDE>' and 'END <EXCLUDE>'")
     args = parser.parse_args(args)
index 9c11264018d71ebc3221ad75a173069e9df644b3..b162e7fd6e7aa59dd014382b23e4f4cbc63bf774 100644 (file)
@@ -27,7 +27,7 @@ The zstd decoder incorrectly rejected blocks of type `Compressed_Block` that enc
 
 This type of block was never generated by the reference compressor.
 
-Additionally, these blocks were disallowed by the spec up until spec version 0.3.2 when the restriciton was lifted by [PR#1689](https://github.com/facebook/zstd/pull/1689).
+Additionally, these blocks were disallowed by the spec up until spec version 0.3.2 when the restriction was lifted by [PR#1689](https://github.com/facebook/zstd/pull/1689).
 
 > A Compressed_Block has the extra restriction that Block_Size is always strictly less than the decompressed size. If this condition cannot be respected, the block must be sent uncompressed instead (Raw_Block).
 
index acac7ad62ed7a9bdc74df1b2d2fe38c9a2d7ed54..f87102a1d4992aab0b1cd851cc6b01786170514d 100644 (file)
@@ -3026,7 +3026,7 @@ enum XXH_VECTOR_TYPE /* fake enum */ {
  * have more than 2 NEON (F0/F1) micro-ops. If you are only using NEON instructions,
  * you are only using 2/3 of the CPU bandwidth.
  *
- * This is even more noticable on the more advanced cores like the A76 which
+ * This is even more noticeable on the more advanced cores like the A76 which
  * can dispatch 8 micro-ops per cycle, but still only 2 NEON micro-ops at once.
  *
  * Therefore, @ref XXH3_NEON_LANES lanes will be processed using NEON, and the