From: Pavel P Date: Tue, 20 Jan 2026 19:50:58 +0000 (+0200) Subject: Move cleanup undefs to insert_string_tpl.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6729ae20cf2299a01a71946fdd37038eaee1735c;p=thirdparty%2Fzlib-ng.git Move cleanup undefs to insert_string_tpl.h --- diff --git a/insert_string_p.h b/insert_string_p.h index cd0223440..e768b3eab 100644 --- a/insert_string_p.h +++ b/insert_string_p.h @@ -24,19 +24,6 @@ #include "insert_string_tpl.h" -// Cleanup -#undef HASH_SLIDE -#undef HASH_CALC -#undef HASH_CALC_READ -#undef HASH_CALC_MASK -#undef HASH_CALC_OFFSET -#undef HASH_CALC_VAR -#undef HASH_CALC_VAR_INIT -#undef UPDATE_HASH -#undef INSERT_STRING -#undef QUICK_INSERT_STRING -#undef QUICK_INSERT_VALUE - // Rolling insert_string, level 9 #define HASH_SLIDE 5 diff --git a/insert_string_tpl.h b/insert_string_tpl.h index 808405486..a5c3abf38 100644 --- a/insert_string_tpl.h +++ b/insert_string_tpl.h @@ -117,3 +117,16 @@ Z_FORCEINLINE static void INSERT_STRING(deflate_state *const s, uint32_t str, ui } } } + +// Cleanup +#undef HASH_SLIDE +#undef HASH_CALC +#undef HASH_CALC_READ +#undef HASH_CALC_MASK +#undef HASH_CALC_OFFSET +#undef HASH_CALC_VAR +#undef HASH_CALC_VAR_INIT +#undef UPDATE_HASH +#undef INSERT_STRING +#undef QUICK_INSERT_STRING +#undef QUICK_INSERT_VALUE