(i int)
| 34 | } |
| 35 | |
| 36 | func (bset *Bitset) Set(i int) *Bitset { |
| 37 | if bset.IsSet(i) { |
| 38 | return bset |
| 39 | } |
| 40 | |
| 41 | bset.bits[i/64] |= 1 << (i % 64) |
| 42 | bset.setCount++ |
| 43 | |
| 44 | return bset |
| 45 | } |
| 46 | |
| 47 | func (bset *Bitset) Unset(i int) *Bitset { |
| 48 | if !bset.IsSet(i) { |