| 27 | #define SETUPTO(upto) ( ((1<<(upto&31))-1)*2+1 ) // careful not to shift more than 31 times |
| 28 | |
| 29 | void TSIntegerSet::clearAll(S32 upto) |
| 30 | { |
| 31 | AssertFatal(upto<=MAX_TS_SET_SIZE,"TSIntegerSet::clearAll: out of range"); |
| 32 | |
| 33 | dMemset(bits,0,(upto>>5)*4); |
| 34 | if (upto&31) |
| 35 | bits[upto>>5] &= ~SETUPTO(upto); |
| 36 | } |
| 37 | |
| 38 | void TSIntegerSet::setAll(S32 upto) |
| 39 | { |
no test coverage detected