| 3652 | } |
| 3653 | |
| 3654 | static void pipeline_cpp11_lambdas(bm::State &state) { |
| 3655 | std::uint64_t sum = 0, count = 0; |
| 3656 | for (auto _ : state) { |
| 3657 | sum = 0, count = 0; |
| 3658 | for (std::uint64_t value = pipe_start; value <= pipe_end; ++value) { |
| 3659 | if (!is_power_of_two(value) && !is_power_of_three(value)) |
| 3660 | prime_factors_lambdas(value, [&](std::uint64_t factor) { sum += factor, count++; }); |
| 3661 | } |
| 3662 | if (count != 84 || sum != 645) state.SkipWithError("Incorrect result"); |
| 3663 | } |
| 3664 | } |
| 3665 | |
| 3666 | BENCHMARK(pipeline_cpp11_lambdas); |
| 3667 |
nothing calls this directly
no test coverage detected