mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[priority-queue] Inline insert()
This commit is contained in:
parent
d00b88737e
commit
d9cf9b5f07
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue