mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[cff] Add a likely()
This commit is contained in:
1 parent
191025cc96
commit
38efd1862f
1 file changed
+1
-1
@@ -112,7 +112,7 @@ struct str_encoder_t
|
||||
{
|
||||
unsigned int offset = buff.length;
|
||||
/* Manually resize buffer since faster. */
|
||||
if ((signed) (buff.length + str.length) <= buff.allocated)
|
||||
if (likely ((signed) (buff.length + str.length) <= buff.allocated))
|
||||
buff.length += str.length;
|
||||
else if (unlikely (!buff.resize (offset + str.length)))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user