# really we need anything that defines __GNUC__ as that is what ZSTD_ASM_SUPPORTED is gated on
# but these are the two compilers that are supported in tree and actually handle this correctly
-# Otherwise, explicitly disable assmebly.
+# Otherwise, explicitly disable assembly.
if [compiler_gcc, compiler_clang].contains(cc_id)
libzstd_sources += join_paths(zstd_rootdir, 'lib/decompress/huf_decompress_amd64.S')
else
# Set of file Path objects previously inlined (and to ignore if reencountering).
found: Set[Path] = set()
-# Compiled regex Patern to handle "#pragma once" in various formats:
+# Compiled regex Pattern to handle "#pragma once" in various formats:
#
# #pragma once
# #pragma once
#
pragma_regex: Pattern = re.compile(r'^\s*#\s*pragma\s*once\s*')
-# Compiled regex Patern to handle the following type of file includes:
+# Compiled regex Pattern to handle the following type of file includes:
#
# #include "file"
# #include "file"
#define ZSTD_PORTABILITY_MACROS_H
/**
- * This header file contains macro defintions to support portability.
+ * This header file contains macro definitions to support portability.
* This header is shared between C and ASM code, so it MUST only
* contain macro definitions. It MUST not contain any C code.
*
#endif
/**
- * Only enable assembly for GNUC comptabile compilers,
+ * Only enable assembly for GNUC compatible compilers,
* because other platforms may not support GAS assembly syntax.
*
* Only enable assembly for Linux / MacOS, other platforms may
println "test : override ZSTD_CLEVEL with command line option"
ZSTD_CLEVEL=12 zstd --fast=3 -f tmp # overridden by command line option
-# temporary envvar chnages in the above tests would actually persist in macos /bin/sh
+# temporary envvar changes in the above tests would actually persist in macos /bin/sh
unset ZSTD_CLEVEL
ZSTD_NBTHREADS=50000000000 zstd -f mt_tmp # numeric value too large, warn and revert to default setting=
ZSTD_NBTHREADS=2 zstd -f mt_tmp # correct usage
ZSTD_NBTHREADS=1 zstd -f mt_tmp # correct usage: single thread
- # temporary envvar chnages in the above tests would actually persist in macos /bin/sh
+ # temporary envvar changes in the above tests would actually persist in macos /bin/sh
unset ZSTD_NBTHREADS
rm -f mt_tmp*