blob: 590046c0ae7249c16f84f66120eee45ac72fdba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "d/flag/bitwise_flag_helper.h"
#include "common.h"
bool BitwiseFlagHelper::checkFlag(u16 slot, u16 shift, const u16 *pData, u16 flagCount) const {
return (pData[slot] >> shift) & 1;
}
void BitwiseFlagHelper::setFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount) {
pData[slot] |= (1 << shift);
}
void BitwiseFlagHelper::unsetFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount) {
pData[slot] &= ~(1 << shift);
}
|