util/bitset: Return an actual bool from test macros
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 1 May 2019 10:31:11 +0000 (05:31 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 2 May 2019 03:12:54 +0000 (03:12 +0000)
commitbf774b56be46d5812868d9f6e7e63437d36754e0
treebff2ebad8e36fb1947c4a4bc907e6afa4f9ab061
parent413e55b5b99d7d135624f461797d450745b3bfbf
util/bitset: Return an actual bool from test macros

I want to be able to do BITSET_TEST() != BITSET_TEST() and this isn't
currently possible because BITSET_TEST() returns a random bit.  Compare
to zero to get an actual Boolean.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/util/bitset.h