Fixed the BITMASK_CHECK macro to actually compare to the mask.
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
#define BITMASK_SET(x,y) ((x) |= (y))
|
#define BITMASK_SET(x,y) ((x) |= (y))
|
||||||
#define BITMASK_CLEAR(x,y) ((x) &= (~(y)))
|
#define BITMASK_CLEAR(x,y) ((x) &= (~(y)))
|
||||||
#define BITMASK_FLIP(x,y) ((x) ^= (y))
|
#define BITMASK_FLIP(x,y) ((x) ^= (y))
|
||||||
#define BITMASK_CHECK(x,y) ((x) & (y))
|
#define BITMASK_CHECK(x,y) (((x) & (y)) == (y))
|
||||||
|
|
||||||
#ifndef _BV
|
#ifndef _BV
|
||||||
#define _BV(x) (1<<(x))
|
#define _BV(x) (1<<(x))
|
||||||
|
|||||||
Reference in New Issue
Block a user