mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[subset-cff] Micro-optimize collect_subr_refs_in_str
This commit is contained in:
1 parent
d2a2f5bf4e
commit
00a9df3a43
1 file changed
+4
-4
@@ -842,19 +842,19 @@ struct subr_subsetter_t
|
||||
{
|
||||
for (unsigned int pos = 0; pos < str.values.length; pos++)
|
||||
{
|
||||
if (!str.values[pos].for_drop ())
|
||||
if (!str.values.arrayZ[pos].for_drop ())
|
||||
{
|
||||
switch (str.values[pos].op)
|
||||
switch (str.values.arrayZ[pos].op)
|
||||
{
|
||||
case OpCode_callsubr:
|
||||
collect_subr_refs_in_subr (str, pos,
|
||||
str.values[pos].subr_num, *param.parsed_local_subrs,
|
||||
str.values.arrayZ[pos].subr_num, *param.parsed_local_subrs,
|
||||
param.local_closure, param);
|
||||
break;
|
||||
|
||||
case OpCode_callgsubr:
|
||||
collect_subr_refs_in_subr (str, pos,
|
||||
str.values[pos].subr_num, *param.parsed_global_subrs,
|
||||
str.values.arrayZ[pos].subr_num, *param.parsed_global_subrs,
|
||||
param.global_closure, param);
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user