forked from weaselab/weaseldb
Apply clang-format to ARM histogram code
Pre-commit's clang-format hook reformatted the AArch64 NEON histogram bucket updates so the project style checks pass. No functional change.
This commit is contained in:
+2
-4
@@ -1446,8 +1446,7 @@ update_histogram_buckets_simd(std::span<const double> thresholds,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
static void
|
static void update_histogram_buckets_simd(std::span<const double> thresholds,
|
||||||
update_histogram_buckets_simd(std::span<const double> thresholds,
|
|
||||||
std::span<uint64_t> counts, double x,
|
std::span<uint64_t> counts, double x,
|
||||||
size_t start_idx) {
|
size_t start_idx) {
|
||||||
const size_t size = thresholds.size();
|
const size_t size = thresholds.size();
|
||||||
@@ -1522,8 +1521,7 @@ void Histogram::observe(double x) {
|
|||||||
p->mutex.unlock();
|
p->mutex.unlock();
|
||||||
} else {
|
} else {
|
||||||
// Slow path: accumulate in pending (lock-free)
|
// Slow path: accumulate in pending (lock-free)
|
||||||
update_histogram_buckets(p->thresholds, p->pending.bucket_counts, x,
|
update_histogram_buckets(p->thresholds, p->pending.bucket_counts, x, 0);
|
||||||
0);
|
|
||||||
p->pending.sum += x;
|
p->pending.sum += x;
|
||||||
p->pending.observations++;
|
p->pending.observations++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user