| 88 | } |
| 89 | |
| 90 | bool Bitfield::Clear( uint8 _idx ) |
| 91 | { |
| 92 | if (_idx > 0x1F) { |
| 93 | return false; |
| 94 | } |
| 95 | if( IsSet(_idx) ) |
| 96 | { |
| 97 | m_bits[_idx>>5] &= ~(1<<(_idx&0x1f)); |
| 98 | --m_numSetBits; |
| 99 | } |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | bool Bitfield::IsSet( uint8 _idx )const |
| 104 | { |