Skip to content

Commit 6482641

Browse files
poyrazKgithub-actions[bot]
authored andcommitted
style: automated clang-format fixes
1 parent 1c31535 commit 6482641

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

include/common/hll.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ namespace common {
3131
*/
3232
class HyperLogLog {
3333
public:
34-
static constexpr size_t kNumRegisters = 2048; // 2^11 for 11-bit index
35-
static constexpr double kPowBase = 2.0; // base for 2^(-reg) computation
36-
static constexpr int kIndexBits = 11; // bits used for register index
34+
static constexpr size_t kNumRegisters = 2048; // 2^11 for 11-bit index
35+
static constexpr double kPowBase = 2.0; // base for 2^(-reg) computation
36+
static constexpr int kIndexBits = 11; // bits used for register index
3737

3838
/**
3939
* @brief Construct with optional seed for reproducible hashing

tests/hll_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ TEST(HyperLogLogTests, MergeCombinesDistinctSets) {
140140
*/
141141
TEST(HyperLogLogTests, TextValueInsertion) {
142142
HyperLogLog hll;
143-
std::vector<std::string> texts = {
144-
"alpha", "beta", "gamma", "delta", "epsilon",
145-
"zeta", "eta", "theta", "iota", "kappa"};
143+
std::vector<std::string> texts = {"alpha", "beta", "gamma", "delta", "epsilon",
144+
"zeta", "eta", "theta", "iota", "kappa"};
146145
for (const auto& t : texts) {
147146
uint64_t hash = HyperLogLog::hash_bytes(t.data(), t.size());
148147
hll.insert(hash);

0 commit comments

Comments
 (0)