mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-06 05:55:06 +00:00
[ot-shape] Micro-optimize ::equal
For two integers, it's faster to compare them directly.
This commit is contained in:
parent
6d8035a99c
commit
9ba286de08
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ struct hb_ot_shape_plan_key_t
|
|||
|
||||
bool equal (const hb_ot_shape_plan_key_t *other)
|
||||
{
|
||||
return 0 == hb_memcmp (this, other, sizeof (*this));
|
||||
return variations_index[0] == other->variations_index[0] &&
|
||||
variations_index[1] == other->variations_index[1];
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue