diff options
author | Connor Abbott <[email protected]> | 2019-03-29 15:08:17 +0100 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-05-31 19:14:27 +0200 |
commit | b87817871b615af960c2d84e35d41b88602c4186 (patch) | |
tree | 519a15d65aada0f193a5bcdbc1adfe2d6b4817df /src/util/u_atomic_test.c | |
parent | 983b001c77c6c9e9aa436c3252fafe34edfe6738 (diff) |
util: Add a helper for faster remainders
This should be at least as fast as using fast_idiv_by_const, and has the
advantage that the precomputation is simple enough to be evaluated at
Mesa-compile time for hash tables and sets which have a fixed table of
possible divisors.
Acked-by: Eric Anholt <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/util/u_atomic_test.c')
0 files changed, 0 insertions, 0 deletions