| 45 | } |
| 46 | |
| 47 | bool TSIntegerSet::testAll(S32 upto) const |
| 48 | { |
| 49 | AssertFatal(upto<=MAX_TS_SET_SIZE,"TSIntegerSet::testAll: out of range"); |
| 50 | S32 i; |
| 51 | for (i=0; i<(upto>>5); i++) |
| 52 | if (bits[i]) |
| 53 | return true; |
| 54 | if (upto&31) |
| 55 | return (bits[upto>>5] & SETUPTO(upto)) != 0; |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | S32 TSIntegerSet::count(S32 upto) const |
| 60 | { |
no outgoing calls
no test coverage detected