| 93 | } |
| 94 | |
| 95 | static void DetectIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference |
| 96 | const auto values = GetIntSequence(0x12345, -0x1234); |
| 97 | const auto valid_bytes = GetValidBytes(0x12345); |
| 98 | |
| 99 | while (state.KeepRunning()) { |
| 100 | auto result = DetectIntWidth(values.data(), valid_bytes.data(), |
| 101 | static_cast<int64_t>(values.size())); |
| 102 | benchmark::DoNotOptimize(result); |
| 103 | } |
| 104 | state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t)); |
| 105 | state.SetItemsProcessed(state.iterations() * values.size()); |
| 106 | } |
| 107 | |
| 108 | static void CheckIndexBoundsInt32( |
| 109 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected