mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
[cache] Mark get/set as hot
This commit is contained in:
1 parent
4214bfef55
commit
56f888cea1
1 file changed
+2
@@ -83,6 +83,7 @@ struct hb_cache_t
|
||||
v = -1;
|
||||
}
|
||||
|
||||
HB_HOT
|
||||
bool get (unsigned int key, unsigned int *value) const
|
||||
{
|
||||
unsigned int k = key & ((1u<<cache_bits)-1);
|
||||
@@ -94,6 +95,7 @@ struct hb_cache_t
|
||||
return true;
|
||||
}
|
||||
|
||||
HB_HOT
|
||||
void set (unsigned int key, unsigned int value)
|
||||
{
|
||||
if (unlikely ((key >> key_bits) || (value >> value_bits)))
|
||||
|
||||
Reference in new issue
Block a user