util/set: Use fast modulo computation
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 20 May 2019 13:14:04 +0000 (15:14 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 31 May 2019 17:14:30 +0000 (19:14 +0200)
commit83667f7a61c9b540d1f649db67a4bcfdda096a6c
treec8439f0f12ecafa7f5dbc9ec76b3ffae87638b2d
parentb87817871b615af960c2d84e35d41b88602c4186
util/set: Use fast modulo computation

Compilation times with my shader-db database:

Difference at 95.0% confidence
-1.22312 +/- 0.726033
-0.283979% +/- 0.168254%
(Student's t, pooled s = 1.02177)

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