From c3002a4d708e6b638268044e048573263f39190d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 25 Dec 2021 22:47:44 -0500 Subject: [PATCH 1/4] spelling: head Signed-off-by: Josh Soref --- qoibench.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qoibench.c b/qoibench.c index 27f1ec3..c14fcdc 100644 --- a/qoibench.c +++ b/qoibench.c @@ -545,14 +545,14 @@ void benchmark_directory(const char *path, benchmark_result_t *grand_total) { benchmark_result_t dir_total = {0}; - int has_shown_heaad = 0; + int has_shown_head = 0; for (int i = 0; (file = readdir(dir)) != NULL; i++) { if (strcmp(file->d_name + strlen(file->d_name) - 4, ".png") != 0) { continue; } - if (!has_shown_heaad) { - has_shown_heaad = 1; + if (!has_shown_head) { + has_shown_head = 1; printf("## Benchmarking %s/*.png -- %d runs\n\n", path, opt_runs); } From 2fff02391296a916caa9b64604b7db5e41683ce5 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 25 Dec 2021 22:47:45 -0500 Subject: [PATCH 2/4] spelling: ignore Signed-off-by: Josh Soref --- qoibench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qoibench.c b/qoibench.c index c14fcdc..dcee66e 100644 --- a/qoibench.c +++ b/qoibench.c @@ -196,7 +196,7 @@ void png_decode_callback(png_structp png, png_bytep data, png_size_t length) { } void png_warning_callback(png_structp png_ptr, png_const_charp warning_msg) { - // Ingore warnings about sRGB profiles and such. + // Ignore warnings about sRGB profiles and such. } void *libpng_decode(void *data, int size, int *out_w, int *out_h) { From 446d5e700873665aa9453dd079e0cf230e5558c8 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 25 Dec 2021 22:47:45 -0500 Subject: [PATCH 3/4] spelling: measure Signed-off-by: Josh Soref --- qoibench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qoibench.c b/qoibench.c index dcee66e..f5224ea 100644 --- a/qoibench.c +++ b/qoibench.c @@ -388,7 +388,7 @@ void benchmark_print_result(benchmark_result_t res) { printf("\n"); } -// Run __VA_ARGS__ a number of times and meassure the time taken. The first +// Run __VA_ARGS__ a number of times and measure the time taken. The first // run is ignored. #define BENCHMARK_FN(NOWARMUP, RUNS, AVG_TIME, ...) \ do { \ From b3f738a20476af60a2f65c2b7ab56a1a4930176c Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 25 Dec 2021 22:47:46 -0500 Subject: [PATCH 4/4] spelling: mismatch Signed-off-by: Josh Soref --- qoibench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qoibench.c b/qoibench.c index f5224ea..2c3df68 100644 --- a/qoibench.c +++ b/qoibench.c @@ -440,7 +440,7 @@ benchmark_result_t benchmark_image(const char *path) { qoi_desc dc; void *pixels_qoi = qoi_decode(encoded_qoi, encoded_qoi_size, &dc, channels); if (memcmp(pixels, pixels_qoi, w * h * channels) != 0) { - ERROR("QOI roundtrip pixel missmatch for %s", path); + ERROR("QOI roundtrip pixel mismatch for %s", path); } free(pixels_qoi); }