util/sparse_array: Add a node_size_log2 temporary
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 18 Mar 2020 16:32:15 +0000 (11:32 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 20 Mar 2020 20:26:07 +0000 (15:26 -0500)
commit9fcd8bdbfcb556b72378ca6432ddf681b78f5a53
tree1e41e54eb91037ab202763b2b105879ee71adb08
parent7893872a6c46a65d2f12bc0ae6bc4bd61fd3f8a1
util/sparse_array: Add a node_size_log2 temporary

We use this value several times.  It's probably best to encourage the
compiler to only read it once.  I have no proof that this actually makes
any performance improvement whatsoever.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4228>
src/util/sparse_array.c