From 2e4d666eec1a372d4b64c527d6c4945ad98d2b58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 21:19:57 -0400 Subject: Update clang-format configuration --- benchmark/bench_hilbert.cpp | 93 +++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 49 deletions(-) (limited to 'benchmark/bench_hilbert.cpp') diff --git a/benchmark/bench_hilbert.cpp b/benchmark/bench_hilbert.cpp index 52c12dc..5793d29 100644 --- a/benchmark/bench_hilbert.cpp +++ b/benchmark/bench_hilbert.cpp @@ -29,85 +29,80 @@ #include #include -template -struct BenchCoordsToIndex -{ - Duration operator()(Context& ctx) - { - const auto p = make_random_point(ctx); - H ha = make_zero_bitvec(); - - return run_bench([&](auto) { chilbert::coords_to_index(p, M, D, ha); }); - } +template +struct BenchCoordsToIndex { + Duration operator()(Context& ctx) + { + const auto p = make_random_point(ctx); + H ha = make_zero_bitvec(); + + return run_bench([&](auto) { chilbert::coords_to_index(p, M, D, ha); }); + } }; -template -struct BenchIndexToCoords -{ - Duration operator()(Context& ctx) - { - auto p = make_random_point(ctx); - const H ha = make_random_bitvec(ctx); +template +struct BenchIndexToCoords { + Duration operator()(Context& ctx) + { + auto p = make_random_point(ctx); + const H ha = make_random_bitvec(ctx); - return run_bench([&](auto) { chilbert::index_to_coords(p, M, D, ha); }); - } + return run_bench([&](auto) { chilbert::index_to_coords(p, M, D, ha); }); + } }; /// Run benchmark for size N -template