util: add BITSET_LAST_BIT() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 29 Apr 2020 04:15:12 +0000 (14:15 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 10:34:22 +0000 (10:34 +0000)
commitd6d78f9b7ff02354af3ac8a918bb5cec6c4718e8
treed49b0c5de5b345f3373c96f7117c056df7a3e1ef
parentf518508a817aa5af1eee988439f73ecf6279e9c5
util: add BITSET_LAST_BIT() helper

This is the reverse of BITSET_FFS()

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4910>
src/util/bitset.h