From 1500db751d08b6c4ad6097135fe78259540a2807 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 23 Jan 2024 11:05:40 +0000 Subject: [PATCH] Fix a handful of spelling mistakes and typos There are quite a few spelling mistakes and typos in comments and user facing message literal strings as found using codespell. Fix these. Signed-off-by: Colin Ian King Signed-off-by: Pablo de Lara --- Release_notes.txt | 6 +++--- crc/crc32_iscsi_01.asm | 2 +- examples/ec/ec_piggyback_example.c | 4 ++-- igzip/aarch64/igzip_isal_adler32_neon.S | 2 +- igzip/aarch64/isal_deflate_icf_body_hash_hist.S | 2 +- igzip/adler32_avx2_4.asm | 2 +- igzip/adler32_sse.asm | 2 +- igzip/huff_codes.c | 10 +++++----- igzip/huff_codes.h | 2 +- igzip/igzip.c | 2 +- igzip/igzip_body.asm | 2 +- igzip/igzip_decode_block_stateless.asm | 4 ++-- igzip/igzip_file_perf.c | 2 +- igzip/igzip_icf_body_h1_gr_bt.asm | 2 +- igzip/igzip_inflate.c | 4 ++-- igzip/igzip_rand_test.c | 6 +++--- igzip/igzip_wrapper_hdr_test.c | 2 +- igzip/repeated_char_result.h | 2 +- include/multibinary.asm | 2 +- include/test.h | 16 ++++++++-------- programs/igzip_cli_check.sh | 2 +- raid/xor_check_sse.asm | 2 +- 22 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Release_notes.txt b/Release_notes.txt index c118456..ad2536d 100644 --- a/Release_notes.txt +++ b/Release_notes.txt @@ -139,7 +139,7 @@ v2.31 - Zlib header can be now created on the fly when starting the compression. - Added isal_zlib_hdr_init() function to initialize the zlib header to 0. -* Zero-memory dectection improvements: +* Zero-memory detection improvements: - Optimized AVX implementation. - Added new AVX2 and AVX512 implementations. @@ -209,7 +209,7 @@ v2.25 * Igzip performance improvements and features. - Performance improvements for uncompressable files. Random or uncompressable files can be up to 3x faster in level 1 or 2 compression. - - Additional small file performance improvments. + - Additional small file performance improvements. - New options in igzip cli: use name from header or not, test compressed file. * Multi-arch autoconf script. @@ -331,7 +331,7 @@ v2.14 v2.13 -* Erasure code improvments +* Erasure code improvements - 32-bit port of optimized gf_vect_dot_prod() functions. This makes ec_encode_data() functions much faster on 32-bit processors. - Avoton performance improvements. Performance on Avoton for diff --git a/crc/crc32_iscsi_01.asm b/crc/crc32_iscsi_01.asm index a3d8c70..35786da 100644 --- a/crc/crc32_iscsi_01.asm +++ b/crc/crc32_iscsi_01.asm @@ -185,7 +185,7 @@ full_block: ; ;; branch into array ; jmp CONCAT(crc_,128,) - ; Fall thruogh into top of crc array (crc_128) + ; Fall through into top of crc array (crc_128) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/examples/ec/ec_piggyback_example.c b/examples/ec/ec_piggyback_example.c index e19abc0..6b9c11b 100644 --- a/examples/ec/ec_piggyback_example.c +++ b/examples/ec/ec_piggyback_example.c @@ -61,7 +61,7 @@ void gf_gen_full_pb_cauchy_matrix(u8 * a, int m, int k) { int i, j, p = m - k; - // Identity matrix in top k x k to indicate a symetric code + // Identity matrix in top k x k to indicate a symmetric code memset(a, 0, k * m); for (i = 0; i < k; i++) a[k * i + i] = 1; @@ -99,7 +99,7 @@ void gf_gen_full_pb_vand_matrix(u8 * a, int m, int k) int i, j, p = m - k; unsigned char q, gen = 1; - // Identity matrix in top k x k to indicate a symetric code + // Identity matrix in top k x k to indicate a symmetric code memset(a, 0, k * m); for (i = 0; i < k; i++) a[k * i + i] = 1; diff --git a/igzip/aarch64/igzip_isal_adler32_neon.S b/igzip/aarch64/igzip_isal_adler32_neon.S index 9d67243..6e86821 100644 --- a/igzip/aarch64/igzip_isal_adler32_neon.S +++ b/igzip/aarch64/igzip_isal_adler32_neon.S @@ -54,7 +54,7 @@ Macros uint32_t adler32_neon(uint32_t adler32, uint8_t * start, uint32_t length); */ /* -Arguements list +Arguments list */ adler32 .req w0 start .req x1 diff --git a/igzip/aarch64/isal_deflate_icf_body_hash_hist.S b/igzip/aarch64/isal_deflate_icf_body_hash_hist.S index 178d91c..36d544d 100644 --- a/igzip/aarch64/isal_deflate_icf_body_hash_hist.S +++ b/igzip/aarch64/isal_deflate_icf_body_hash_hist.S @@ -106,7 +106,7 @@ void isal_deflate_icf_body_hash_hist_base(struct isal_zstream *stream); declare_generic_reg param1, 1,x declare_generic_reg param2, 2,x - /* local varibale */ + /* local variable */ declare_generic_reg level_buf, 18,x declare_generic_reg avail_in, 13,w declare_generic_reg end_in, 13,x diff --git a/igzip/adler32_avx2_4.asm b/igzip/adler32_avx2_4.asm index 798310f..dcc7747 100644 --- a/igzip/adler32_avx2_4.asm +++ b/igzip/adler32_avx2_4.asm @@ -91,7 +91,7 @@ default rel save_reg r12, 2*16 + 2*8 save_reg r13, 2*16 + 3*8 end_prolog - mov init_d, ecx ; initalize init_d from arg1 to keep ecx free + mov init_d, ecx ; initialize init_d from arg1 to keep ecx free %endmacro %macro FUNC_RESTORE 0 diff --git a/igzip/adler32_sse.asm b/igzip/adler32_sse.asm index fc986cb..3358b9a 100644 --- a/igzip/adler32_sse.asm +++ b/igzip/adler32_sse.asm @@ -86,7 +86,7 @@ default rel save_reg r12, 2*8 save_reg r13, 3*8 end_prolog - mov init_d, ecx ; initalize init_d from arg1 to keep ecx free + mov init_d, ecx ; initialize init_d from arg1 to keep ecx free %endmacro %macro FUNC_RESTORE 0 diff --git a/igzip/huff_codes.c b/igzip/huff_codes.c index f544f87..06b8abc 100644 --- a/igzip/huff_codes.c +++ b/igzip/huff_codes.c @@ -962,7 +962,7 @@ gen_huff_code_lens(struct heap_tree *heap_space, uint32_t heap_size, uint32_t * * @requires table has been initialized to already contain the code length for each element. * @param table: A lookup table used to store the codes. * @param table_length: The length of table. - * @param count: a histogram representing the number of occurences of codes of a given length + * @param count: a histogram representing the number of occurrences of codes of a given length */ static inline uint32_t set_huff_codes(struct huff_code *huff_code_table, int table_length, uint32_t * count) @@ -1031,7 +1031,7 @@ static inline uint32_t set_dist_huff_codes(struct huff_code *codes, uint32_t * b * 0 corresponds to not end of block and all other inputs correspond to end of block. * @param hclen: Length of huffman code for huffman codes minus 4. * @param hlit: Length of literal/length table minus 257. - * @parm hdist: Length of distance table minus 1. + * @param hdist: Length of distance table minus 1. */ static int create_huffman_header(struct BitBuf2 *header_bitbuf, struct huff_code *lookup_table, @@ -1233,7 +1233,7 @@ static inline uint32_t rl_encode(uint16_t * codes, uint32_t num_codes, uint64_t * @brief Creates a two table representation of huffman codes. * @param code_table: output table containing the code * @param code_size_table: output table containing the code length - * @param length: the lenght of hufftable + * @param length: the length of hufftable * @param hufftable: a huffman lookup table */ static void create_code_tables(uint16_t * code_table, uint8_t * code_length_table, @@ -1262,7 +1262,7 @@ static void create_packed_len_table(uint32_t * packed_table, uint16_t extra_bits_count = 0; /* Gain extra bits is the next place where the number of extra bits in - * lenght codes increases. */ + * length codes increases. */ uint16_t gain_extra_bits = LEN_EXTRA_BITS_START; for (i = 257; i < LIT_LEN - 1; i++) { @@ -1366,7 +1366,7 @@ static int are_hufftables_useable(struct huff_code *lit_len_hufftable, max_code_len = max_lit_code_len + max_len_code_len + max_dist_code_len; - /* Some versions of igzip can write upto one literal, one length and one + /* Some versions of igzip can write up to one literal, one length and one * distance code at the same time. This checks to make sure that is * always writeable in bitbuf*/ return (max_code_len > MAX_BITBUF_BIT_WRITE); diff --git a/igzip/huff_codes.h b/igzip/huff_codes.h index b8dd1da..c4a946a 100644 --- a/igzip/huff_codes.h +++ b/igzip/huff_codes.h @@ -173,7 +173,7 @@ struct hufftables_icf { * * @param bb: bitbuf structure where the header huffman code header is written * @param hufftables: output huffman code representation - * @param hist: histogram used to generat huffman code + * @param hist: histogram used to generate huffman code * @param end_of_block: flag whether this is the final huffman code * * @returns Returns the length in bits of the block with histogram hist encoded diff --git a/igzip/igzip.c b/igzip/igzip.c index b1231d4..49a22f7 100644 --- a/igzip/igzip.c +++ b/igzip/igzip.c @@ -625,7 +625,7 @@ static void write_constant_compressed_stateless(struct isal_zstream *stream, /* Add smaller repeat codes as necessary. Code280 can describe repeat * lengths of 115-130 bits. Code10 can describe repeat lengths of 10 * bits. If more than 230 bits, fill code with two code280s. Else if - * more than 115 repeates, fill with code10s until one code280 can + * more than 115 repeats, fill with code10s until one code280 can * finish the rest of the repeats. Else, fill with code10s and * literals */ if (rep_extra > 115) { diff --git a/igzip/igzip_body.asm b/igzip/igzip_body.asm index b9620d6..6f2310e 100644 --- a/igzip/igzip_body.asm +++ b/igzip/igzip_body.asm @@ -442,7 +442,7 @@ align 16 or code4, code add code_len2, rcx - ;; Setup for updateing hash + ;; Setup for updating hash lea tmp3, [f_i + 2] ; tmp3 <= k add f_i, len diff --git a/igzip/igzip_decode_block_stateless.asm b/igzip/igzip_decode_block_stateless.asm index 22f3bf2..2cda8c1 100644 --- a/igzip/igzip_decode_block_stateless.asm +++ b/igzip/igzip_decode_block_stateless.asm @@ -399,7 +399,7 @@ stack_size equ 4 * 8 + 8 * 8 %define %%state_offset %3 ; Type of huff code, should be either LIT or DIST %define %%read_in %4 ; Bits read in from compressed stream %define %%read_in_length %5 ; Number of valid bits in read_in -%define %%next_sym %6 ; Returned symobl +%define %%next_sym %6 ; Returned symbol %define %%next_extra_bits %7 %define %%next_bits %8 @@ -447,7 +447,7 @@ stack_size equ 4 * 8 + 8 * 8 %define %%state_offset %3 %define %%read_in %4 ; Bits read in from compressed stream %define %%read_in_length %5 ; Number of valid bits in read_in -%define %%next_sym %6 ; Returned symobl +%define %%next_sym %6 ; Returned symbol %define %%next_extra_bits %7 %define %%next_bits %8 diff --git a/igzip/igzip_file_perf.c b/igzip/igzip_file_perf.c index 05c0280..c48eae9 100644 --- a/igzip/igzip_file_perf.c +++ b/igzip/igzip_file_perf.c @@ -99,7 +99,7 @@ int usage(void) " -X use compression level X with 0 <= X <= 1\n" " -b input buffer size, 0 buffers all the input\n" " -i