]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add a new function atleast2() to test masks for more than 1 bit
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 07:33:41 +0000 (09:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 11:25:06 +0000 (13:25 +0200)
commit98d334bd945b038b7340af451ed7873143076a4b
treeea370e557ffac518f865bb14502a7e340bf7c633
parentd944344f01d9ea914d94c45f6ac7c224c6143fc9
MINOR: tools: add a new function atleast2() to test masks for more than 1 bit

For threads it's common to have to check if a mask contains more than
one bit set. Let's have this "atleast2()" function report this.
include/common/standard.h