| 122 | } |
| 123 | |
| 124 | static void InsertSimpleSet(PSIMPLE_SET set, int8_t value) { |
| 125 | if (set->CurUniCnt >= set->UniSetSize) |
| 126 | return; |
| 127 | for (uint32_t i = 0; i < set->CurUniCnt; i++) { |
| 128 | if (set->UniSet[i] == value) |
| 129 | return; |
| 130 | } |
| 131 | set->UniSet[set->CurUniCnt++] = value; |
| 132 | // SimpleRank(set->UniSet, set->CurUniCnt, 1); |
| 133 | } |
| 134 | |
| 135 | static void DestorySimpleSet(PSIMPLE_SET set) { |
| 136 | if (set->UniSet != nullptr) |
no outgoing calls
no test coverage detected