mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[subset/cff1] Micro-optimize
This commit is contained in:
1 parent
7b97262b03
commit
cdfbd7b6c6
1 file changed
+1
-1
@@ -395,7 +395,6 @@ struct Charset1_2 {
|
||||
code_pair_t *cache = nullptr) const
|
||||
{
|
||||
if (unlikely (glyph >= num_glyphs)) return 0;
|
||||
if (unlikely (glyph == 0)) return 0;
|
||||
unsigned i;
|
||||
hb_codepoint_t start_glyph;
|
||||
if (cache && likely (cache->glyph <= glyph))
|
||||
@@ -405,6 +404,7 @@ struct Charset1_2 {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (unlikely (glyph == 0)) return 0;
|
||||
i = 0;
|
||||
start_glyph = 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user