/* 6 */ {8, 16, 128, 128, deflate_slow},
#endif
-/* 7 */ {8, 32, 128, 256, deflate_slow},
+/* 7 */ {8, 32, 128, 256, deflate_slow},
/* 8 */ {32, 128, 258, 1024, deflate_slow},
/* 9 */ {32, 258, 258, 4096, deflate_slow}}; /* max compression */
if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
level_flags = 0;
- else if (s->level < 6)
+ else if (s->level < TRIGGER_LEVEL)
level_flags = 1;
- else if (s->level == 6)
+ else if (s->level == TRIGGER_LEVEL)
level_flags = 2;
else
level_flags = 3;
* input characters, so that a running hash key can be computed from the
* previous key instead of complete recalculation each time.
*/
+
+#ifdef NOT_TWEAK_COMPILER
+#define TRIGGER_LEVEL 6
+#else
+#define TRIGGER_LEVEL 5
+#endif
+
#ifdef X86_SSE4_2_CRC_HASH
#define UPDATE_HASH(s, h, i) \
do {\
- if (s->level < 6) \
+ if (s->level < TRIGGER_LEVEL) \
h = (3483 * (s->window[i]) +\
23081* (s->window[i+1]) +\
6954 * (s->window[i+2]) +\
* is pretty low, so for performance it's best to
* outright stop here for the lower compression levels
*/
- if (s->level < 6)
+ if (s->level < TRIGGER_LEVEL)
break;
}
} while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length);
* is pretty low, so for performance it's best to
* outright stop here for the lower compression levels
*/
- if (s->level < 6)
+ if (s->level < TRIGGER_LEVEL)
break;
}
} while (--chain_length && (cur_match = prev[cur_match & wmask]) > limit);
* is pretty low, so for performance it's best to
* outright stop here for the lower compression levels
*/
- if (s->level < 6)
+ if (s->level < TRIGGER_LEVEL)
break;
}
} while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length != 0);