[priority-queue] Inline insert()

This commit is contained in:
Behdad Esfahbod 2023-07-14 12:19:10 -06:00
parent d00b88737e
commit d9cf9b5f07

View file

@ -54,6 +54,9 @@ struct hb_priority_queue_t
bool in_error () const { return heap.in_error (); }
#ifndef HB_OPTIMIZE_SIZE
HB_ALWAYS_INLINE
#endif
void insert (int64_t priority, unsigned value)
{
heap.push (item_t (priority, value));
@ -139,6 +142,7 @@ struct hb_priority_queue_t
goto repeat;
}
HB_ALWAYS_INLINE
void bubble_up (unsigned index)
{
repeat: