| 56 | } |
| 57 | |
| 58 | static void DetectUIntWidthNoNulls( |
| 59 | benchmark::State& state) { // NOLINT non-const reference |
| 60 | const auto values = GetUIntSequence(0x12345); |
| 61 | |
| 62 | while (state.KeepRunning()) { |
| 63 | auto result = DetectUIntWidth(values.data(), static_cast<int64_t>(values.size())); |
| 64 | benchmark::DoNotOptimize(result); |
| 65 | } |
| 66 | state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t)); |
| 67 | state.SetItemsProcessed(state.iterations() * values.size()); |
| 68 | } |
| 69 | |
| 70 | static void DetectUIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference |
| 71 | const auto values = GetUIntSequence(0x12345); |
nothing calls this directly
no test coverage detected