Skip to content

Commit

Permalink
[priority-queue] Inline a couple more
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jul 11, 2023
1 parent 4c9e8b8 commit 8704d73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hb-priority-queue.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ());
Expand Down Expand Up @@ -107,6 +109,7 @@ struct hb_priority_queue_t
return 2 * index + 2;
}

HB_ALWAYS_INLINE
void bubble_down (unsigned index)
{
repeat:
Expand Down

0 comments on commit 8704d73

Please sign in to comment.