[set] Add page_t::set_range()

This commit is contained in:
Behdad Esfahbod 2021-08-15 11:11:10 -06:00
parent cb273fd17c
commit 0dcd9b15d9
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,6 @@ struct hb_set_t
*lb |= ((mask (b) << 1) - 1);
}
}
void del_range (hb_codepoint_t a, hb_codepoint_t b)
{
elt_t *la = &elt (a);
@ -111,6 +110,8 @@ struct hb_set_t
*lb &= ~((mask (b) << 1) - 1);
}
}
void set_range (hb_codepoint_t a, hb_codepoint_t b, bool v)
{ if (v) add_range (a, b); else del_range (a, b); }
bool is_equal (const page_t &other) const
{