]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Inline pqdownheap
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 18 Aug 2025 20:05:20 +0000 (22:05 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 20 Aug 2025 11:51:48 +0000 (13:51 +0200)
trees.c

diff --git a/trees.c b/trees.c
index e90488b6471408130268a5f5b27a04a9e6cb878c..8debd63f3c19d0f4014218b34ec5f8e716754d88 100644 (file)
--- a/trees.c
+++ b/trees.c
@@ -66,7 +66,7 @@ static const static_tree_desc  static_bl_desc =
  */
 
 static void init_block       (deflate_state *s);
-static void pqdownheap       (unsigned char *depth, int *heap, const int heap_len, ct_data *tree, int k);
+static inline void pqdownheap       (unsigned char *depth, int *heap, const int heap_len, ct_data *tree, int k);
 static void build_tree       (deflate_state *s, tree_desc *desc);
 static void gen_bitlen       (deflate_state *s, tree_desc *desc);
 static void scan_tree        (deflate_state *s, ct_data *tree, int max_code);
@@ -147,7 +147,7 @@ static void init_block(deflate_state *s) {
  * when the heap property is re-established (each father smaller than its
  * two sons). Used by build_tree().
  */
-static void pqdownheap(unsigned char *depth, int *heap, const int heap_len, ct_data *tree, int k) {
+static inline void pqdownheap(unsigned char *depth, int *heap, const int heap_len, ct_data *tree, int k) {
     /* tree: the tree to restore */
     /* k: node to move down */
     int j = k << 1;  /* left son of k */