util/hash_table: Pull out loop-invariant computations
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 21 May 2019 10:21:53 +0000 (12:21 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 31 May 2019 17:14:09 +0000 (19:14 +0200)
commit451211741c894e7aea33f92a75fe9870fc5f1478
tree3c05b61d1348e2224d51c95b91f34b43bc7d3c4e
parentf7ff6856492e8437ad78bb6a853a681afd3fc98c
util/hash_table: Pull out loop-invariant computations

To keep the set and hash table in sync. Note that some of this had
already been done for hash tables, in particular pulling out the
hash % ht->size computation.

Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/hash_table.c