summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel P <pavlov.pavel@gmail.com>2026-01-20 21:50:58 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2026-01-21 23:03:44 +0100
commit6729ae20cf2299a01a71946fdd37038eaee1735c (patch)
tree52710ad842d61a3127f0a5b60763d7b1c02e26f8
parent51ec71d98523794b61381bae4cb53a0f09d06437 (diff)
downloadProject-Tick-6729ae20cf2299a01a71946fdd37038eaee1735c.tar.gz
Project-Tick-6729ae20cf2299a01a71946fdd37038eaee1735c.zip
Move cleanup undefs to insert_string_tpl.h
-rw-r--r--insert_string_p.h13
-rw-r--r--insert_string_tpl.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/insert_string_p.h b/insert_string_p.h
index cd02234407..e768b3eab1 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 8084054864..a5c3abf384 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