| 1577 | } |
| 1578 | |
| 1579 | std::vector<Path> PathsBitfieldAsVector(Path paths_bitfield) { |
| 1580 | std::vector<Path> result; |
| 1581 | std::uint32_t remaining_paths = static_cast<std::uint32_t>(paths_bitfield); |
| 1582 | std::uint32_t test_bit = 1; |
| 1583 | while (remaining_paths) { |
| 1584 | if (remaining_paths & test_bit) { |
| 1585 | result.push_back(static_cast<Path>(test_bit)); |
| 1586 | } |
| 1587 | remaining_paths &= ~test_bit; |
| 1588 | test_bit <<= 1; |
| 1589 | } |
| 1590 | return result; |
| 1591 | } |
| 1592 | |
| 1593 | std::vector<Tuning> EnumerateTuningsForPath(Path path, bool benchmark) { |
| 1594 | if (benchmark) { |
no test coverage detected