[cff] Add a likely()
This commit is contained in:
parent
191025cc96
commit
38efd1862f
|
@ -112,7 +112,7 @@ struct str_encoder_t
|
||||||
{
|
{
|
||||||
unsigned int offset = buff.length;
|
unsigned int offset = buff.length;
|
||||||
/* Manually resize buffer since faster. */
|
/* 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;
|
buff.length += str.length;
|
||||||
else if (unlikely (!buff.resize (offset + str.length)))
|
else if (unlikely (!buff.resize (offset + str.length)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue