Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MISC] IWYU #175

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions src/sketch/hyperloglog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@
// SPDX-FileCopyrightText: 2013 Hideaki Ohno <hide.o.j55{at}gmail.com>
// SPDX-License-Identifier: BSD-3-Clause AND MIT

#include <algorithm> // for max, __count_fn, __fill_fn, count, fill
#include <array> // for array
#include <bit> // for countl_zero
#include <cassert> // for assert
#include <cinttypes> // for uint64_t, uint8_t, uint32_t
#include <cmath> // for log
#include <cstddef> // for size_t
#include <functional> // for identity
#include <iostream> // for basic_ostream, basic_istream, basic_istream::read, basic_ostre...
#include <stdexcept> // for runtime_error, invalid_argument
#include <utility> // for addressof, swap
#include <vector> // for vector
#include <algorithm> // for max, __fill_fn, fill
#include <array> // for array
#include <bit> // for countl_zero
#include <cassert> // for assert
#include <cinttypes> // for uint64_t, uint8_t, uint32_t
#include <cmath> // for log
#include <cstddef> // for size_t
#include <iostream> // for basic_ostream, basic_istream, basic_istream::read, basic_ostre...
#include <stdexcept> // for runtime_error, invalid_argument
#include <utility> // for addressof, swap
#include <vector> // for vector

#include <hibf/contrib/aligned_allocator.hpp> // for aligned_allocator
#include <hibf/sketch/hyperloglog.hpp> // for hyperloglog

#include <simde/x86/avx.h> // for simde__m256i
#include <simde/x86/avx.h> // for simde__m256i, simde_mm256_add_ps, simde_mm256_set1_ps, simde_m...
#include <simde/x86/avx2.h> // for simde_mm256_max_epu8

namespace seqan::hibf::sketch
Expand Down
7 changes: 4 additions & 3 deletions test/performance/sketch/hyperloglog_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <benchmark/benchmark.h> // for State, Benchmark, Counter, ClobberMemory, BENCHMARK
#include <benchmark/benchmark.h> // for State, DoNotOptimize, Benchmark, BENCHMARK, BENCHMARK_MAIN

#include <random>
#include <cinttypes> // for uint8_t
#include <memory> // for allocator

#include <hibf/sketch/hyperloglog.hpp>
#include <hibf/sketch/hyperloglog.hpp> // for hyperloglog

static void add(benchmark::State & state)
{
Expand Down