| 20 | } |
| 21 | |
| 22 | void NodeInfoEntry::setNumericFlag(NumFlagLoc loc, int value) |
| 23 | { |
| 24 | uint32_t mask = (1 << loc.len) - 1; |
| 25 | uint32_t clearmask = ~(mask << loc.pos); |
| 26 | m_bitset &= std::bitset<4>(clearmask); |
| 27 | m_bitset |= (value & mask) << loc.pos; |
| 28 | } |
| 29 | |
| 30 | int NodeInfoEntry::getNumericFlag(NumFlagLoc loc) const |
| 31 | { |