Simplify swap()

This commit is contained in:
Behdad Esfahbod 2021-11-01 22:50:54 -06:00
parent 94158316d9
commit a28ea8d7f3
2 changed files with 0 additions and 2 deletions

View File

@ -46,7 +46,6 @@ struct hb_bit_set_t
{ {
if (likely (!a.successful || !b.successful)) if (likely (!a.successful || !b.successful))
return; return;
hb_swap (a.successful, b.successful);
hb_swap (a.population, b.population); hb_swap (a.population, b.population);
hb_swap (a.last_page_lookup, b.last_page_lookup); hb_swap (a.last_page_lookup, b.last_page_lookup);
hb_swap (a.page_map, b.page_map); hb_swap (a.page_map, b.page_map);

View File

@ -90,7 +90,6 @@ struct hb_hashmap_t
{ {
if (unlikely (!a.successful || !b.successful)) if (unlikely (!a.successful || !b.successful))
return; return;
hb_swap (a.successful, b.successful);
hb_swap (a.population, b.population); hb_swap (a.population, b.population);
hb_swap (a.occupancy, b.occupancy); hb_swap (a.occupancy, b.occupancy);
hb_swap (a.mask, b.mask); hb_swap (a.mask, b.mask);