[varc] Micro-optimize

This commit is contained in:
Behdad Esfahbod committed 2024-04-16 17:10:46 -06:00
1 parent 88eab447db
commit c13fc5579b
1 file changed
+2 -6
+2 -6
View File
@@ -3136,7 +3136,7 @@ struct MultiVarData
{
auto &deltaSets = StructAfter<decltype (deltaSetsX)> (regionIndices);
hb_vector_t<int> values_vector = deltaSets[inner];
hb_vector_t<int> values_vector {deltaSets[inner]};
int *values = values_vector.arrayZ;
unsigned regionCount = regionIndices.len;
@@ -3148,12 +3148,8 @@ struct MultiVarData
coords, coord_count,
cache);
if (scalar)
{
for (unsigned i = 0; i < count; i++)
{
out[i] += values[i] * scalar;
}
}
out.arrayZ[i] += values[i] * scalar;
values += tupleLength;
}
}