![]() |
|
A class of bitwise operations More...
Static Public Member Functions | |
| static int | SetBit (int setPosition, int bits) |
| set a bit More... | |
| static int | UnsetBit (int unsetPosition, int bits) |
| drop the bit More... | |
| static bool | IsSettingBit (int checkPosition, int bits) |
| whether the bit is set More... | |
| static int | MaskBit (int maskBit, int bit) |
| put on a mask More... | |
A class of bitwise operations
|
static |
whether the bit is set
| checkPosition | |
| bits |
|
static |
put on a mask
| maskBit | bits for masks |
| bit | the bit you want to change |
|
static |
set a bit
| setPosition | standing position |
| bits | the bit you want to change |
|
static |
drop the bit
| unsetPosition | position you want to lower |
| bits | the bit you want to change |