shl: misc: add SHL_HAS_BITS() helper
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 10:21:10 +0000 (12:21 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 10:21:10 +0000 (12:21 +0200)
commit54108a2b497eb31ba23ec3ee262407e08ad659c5
treec60abe4390f9eadf117c7f811c8aff24c14f2114
parent79ef4f950575a7e6943dd1a75ccc2e90520cdeee
shl: misc: add SHL_HAS_BITS() helper

This helper checks whether a bitmask has all the given bits set.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/shl_misc.h