| 366 | } |
| 367 | |
| 368 | std::vector<uint16_t> GetNextCounterUids(uint16_t firstUid, uint16_t cores) |
| 369 | { |
| 370 | // Check that it is possible to generate the next counter UID without causing an overflow (throws in case of error) |
| 371 | ThrowIfCantGenerateNextUid(firstUid, cores); |
| 372 | |
| 373 | // Get the next counter UIDs |
| 374 | size_t counterUidsSize = cores == 0 ? 1 : cores; |
| 375 | std::vector<uint16_t> counterUids(counterUidsSize, 0); |
| 376 | for (size_t i = 0; i < counterUidsSize; i++) |
| 377 | { |
| 378 | counterUids[i] = firstUid++; |
| 379 | } |
| 380 | return counterUids; |
| 381 | } |
| 382 | |
| 383 | } // namespace pipe |
| 384 | } // namespace arm |