]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Reorder config table to avoid double negation, and to use the same
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 26 Mar 2021 16:06:28 +0000 (17:06 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 12 Jun 2021 18:35:34 +0000 (20:35 +0200)
logical ordering as the other ifdef.

deflate.c

index 076b05f199bdf460b75b13f95f291ec605df0739..dd1f120c4dd85f2e0b4a6a50ee68727045bbca4e 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -143,12 +143,12 @@ static const config configuration_table[10] = {
 /*      good lazy nice chain */
 /* 0 */ {0,    0,  0,    0, deflate_stored},  /* store only */
 
-#ifndef NO_QUICK_STRATEGY
-/* 1 */ {0,    0,  0,    0, deflate_quick},
-/* 2 */ {4,    4,  8,    4, deflate_fast}, /* max speed, no lazy matches */
-#else
+#ifdef NO_QUICK_STRATEGY
 /* 1 */ {4,    4,  8,    4, deflate_fast}, /* max speed, no lazy matches */
 /* 2 */ {4,    5, 16,    8, deflate_fast},
+#else
+/* 1 */ {0,    0,  0,    0, deflate_quick},
+/* 2 */ {4,    4,  8,    4, deflate_fast}, /* max speed, no lazy matches */
 #endif
 
 #ifdef NO_MEDIUM_STRATEGY