Skip to content

fast_urem_by_const: #ifdef DEBUG an assertion.

Tatsuyuki Ishi requested to merge ishitatsuyuki/mesa:hot-assert into main

util_fast_urem32 is used in the hot path of hashmap lookups and this asserts causes noticeable overhead. The correctness of this code should be well exercised both from testing and mathematical proofs, so gate this assertion behind #ifdef DEBUG.

Edited by Tatsuyuki Ishi

Merge request reports