[set] Whitespace

This commit is contained in:
Behdad Esfahbod 2021-05-26 14:19:27 -06:00
parent 2000f47ae5
commit e47e44a858
1 changed files with 2 additions and 13 deletions

View File

@ -507,9 +507,7 @@ struct hb_set_t
bool is_subset (const hb_set_t *larger_set) const bool is_subset (const hb_set_t *larger_set) const
{ {
if (unlikely(larger_set->is_empty ())) if (unlikely(larger_set->is_empty ()))
{
return is_empty (); return is_empty ();
}
uint32_t spi = 0; uint32_t spi = 0;
for (uint32_t lpi = 0; spi < page_map.length && lpi < larger_set->page_map.length; lpi++) for (uint32_t lpi = 0; spi < page_map.length && lpi < larger_set->page_map.length; lpi++)
@ -520,30 +518,21 @@ struct hb_set_t
auto lp = larger_set->page_at (lpi); auto lp = larger_set->page_at (lpi);
if (spm < lpm && !sp.is_empty ()) if (spm < lpm && !sp.is_empty ())
{
return false; return false;
}
if (lpm < spm) if (lpm < spm)
{
continue; continue;
}
for (int j = 0; j < ARRAY_LENGTH_CONST (sp.v); j++) for (int j = 0; j < ARRAY_LENGTH_CONST (sp.v); j++)
{ if (~lp.v[j] & sp.v[j])
if ((~lp.v[j] & sp.v[j]) != 0) { return false; } return false;
}
spi++; spi++;
} }
while (spi < page_map.length) while (spi < page_map.length)
{
if (!page_at (spi++).is_empty ()) if (!page_at (spi++).is_empty ())
{
return false; return false;
}
}
return true; return true;
} }