diff options
author | David Robillard <d@drobilla.net> | 2025-02-10 19:32:58 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-02-10 19:32:58 -0500 |
commit | ecd5449f7bcdb5097ed943088084bf71ab45bec6 (patch) | |
tree | 37592f604a18ca5c56d1cc8b9de2d8c0d0befb3f /benchmark | |
parent | b2d6d37af766acb80bfc97f68fc49e9500107235 (diff) | |
download | chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.tar.gz chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.tar.bz2 chilbert-ecd5449f7bcdb5097ed943088084bf71ab45bec6.zip |
Put local utility functions in anonymous namespaces
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/bench_bitvec.cpp | 4 | ||||
-rw-r--r-- | benchmark/bench_hilbert.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/bench_bitvec.cpp b/benchmark/bench_bitvec.cpp index 92bb1d0..2493947 100644 --- a/benchmark/bench_bitvec.cpp +++ b/benchmark/bench_bitvec.cpp @@ -15,6 +15,8 @@ #include <string> #include <vector> +namespace { + template<class T, size_t N> struct BenchAnd { Duration operator()(Context& ctx) @@ -280,6 +282,8 @@ bench(Context& ctx, const std::string& name) bench_rec<Bench, 16, 32, 64, 128, 256, 512>(ctx, out); } +} // namespace + int main() { diff --git a/benchmark/bench_hilbert.cpp b/benchmark/bench_hilbert.cpp index b8cd9d6..2d265c3 100644 --- a/benchmark/bench_hilbert.cpp +++ b/benchmark/bench_hilbert.cpp @@ -15,6 +15,8 @@ #include <fstream> #include <string> +namespace { + template<class H, size_t M, size_t D> struct BenchCoordsToIndex { Duration operator()(Context& ctx) @@ -82,6 +84,8 @@ bench(Context& ctx, const std::string& name) bench_rec<Bench, 8, 2, 4, 8, 16, 32, 64>(ctx, out); } +} // namespace + int main() { |