From: luzpaz Date: Tue, 31 Jul 2018 21:59:16 +0000 (+0000) Subject: Correct various typos in code comments X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f7ffa1749ad9e5e0c29faf09106609903a63865;p=libjpeg-turbo Correct various typos in code comments Found via `codespell -q 3` Closes #263 --- diff --git a/jdcolor.c b/jdcolor.c index 05cbf4d..cd13100 100644 --- a/jdcolor.c +++ b/jdcolor.c @@ -600,7 +600,7 @@ ycck_cmyk_convert (j_decompress_ptr cinfo, /* Declarations for ordered dithering * * We use a 4x4 ordered dither array packed into 32 bits. This array is - * sufficent for dithering RGB888 to RGB565. + * sufficient for dithering RGB888 to RGB565. */ #define DITHER_MASK 0x3 diff --git a/jdmerge.c b/jdmerge.c index ca6f16c..55b3cbf 100644 --- a/jdmerge.c +++ b/jdmerge.c @@ -452,7 +452,7 @@ h2v2_merged_upsample (j_decompress_ptr cinfo, /* Declarations for ordered dithering * * We use a 4x4 ordered dither array packed into 32 bits. This array is - * sufficent for dithering RGB888 to RGB565. + * sufficient for dithering RGB888 to RGB565. */ #define DITHER_MASK 0x3 diff --git a/jquant1.c b/jquant1.c index e781481..0917ac0 100644 --- a/jquant1.c +++ b/jquant1.c @@ -153,7 +153,7 @@ typedef struct { */ boolean is_padded; /* is the colorindex padded for odither? */ - int Ncolors[MAX_Q_COMPS]; /* # of values alloced to each component */ + int Ncolors[MAX_Q_COMPS]; /* # of values allocated to each component */ /* Variables for ordered dithering */ int row_index; /* cur row's vertical index in dither matrix */ diff --git a/simd/jsimd_arm64_neon.S b/simd/jsimd_arm64_neon.S index 3309858..34f7f7d 100644 --- a/simd/jsimd_arm64_neon.S +++ b/simd/jsimd_arm64_neon.S @@ -62,7 +62,7 @@ _\fname: trn2 \x1\literal, \xi\literal, \x1\literal .endm -/* Transpose elements of 2 differnet registers */ +/* Transpose elements of 2 different registers */ .macro transpose x0, x1, xi, xilen, literal mov \xi\xilen, \x0\xilen trn1 \x0\literal, \x0\literal, \x1\literal diff --git a/wrjpgcom.c b/wrjpgcom.c index 531c152..2d898ab 100644 --- a/wrjpgcom.c +++ b/wrjpgcom.c @@ -581,7 +581,7 @@ main (int argc, char **argv) } } /* Duplicate the remainder of the source file. - * Note that any COM markers occuring after SOF will not be touched. + * Note that any COM markers occurring after SOF will not be touched. */ write_marker(marker); copy_rest_of_file();