util/hash_table: Use fast modulo computation
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 21 May 2019 10:56:31 +0000 (12:56 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 31 May 2019 17:14:35 +0000 (19:14 +0200)
commit8c74772edc62326fb296e62b55d69012cd81cfb0
tree187b577aa03b16643e53cce13261ef09cf032b75
parent83667f7a61c9b540d1f649db67a4bcfdda096a6c
util/hash_table: Use fast modulo computation

While we're here, copy the size table from set.c to get rid of hard tabs
in the hash_table.c version.

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