From 5e42f7bb6d025f14955e60c94ea08aca472e08dd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 14 Jul 2023 11:26:38 -0600 Subject: [PATCH] Revert "Revert "[priority-queue] Inline a couple more"" This reverts commit 915410e5267cba5bfc6154548c8856ae077bfefe. Mistake. --- src/hb-priority-queue.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-priority-queue.hh b/src/hb-priority-queue.hh index c006233d1..938c02872 100644 --- a/src/hb-priority-queue.hh +++ b/src/hb-priority-queue.hh @@ -61,7 +61,9 @@ struct hb_priority_queue_t bubble_up (heap.length - 1); } +#ifndef HB_OPTIMIZE_SIZE HB_ALWAYS_INLINE +#endif item_t pop_minimum () { assert (!is_empty ()); @@ -107,6 +109,7 @@ struct hb_priority_queue_t return 2 * index + 2; } + HB_ALWAYS_INLINE void bubble_down (unsigned index) { repeat: