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:
2026-06-26 11:12:10 -04:00
parent c71bdf13c4
commit 14f8552906
+5 -7
View File
@@ -1446,10 +1446,9 @@ update_histogram_buckets_simd(std::span<const double> thresholds,
}
}
#elif defined(__aarch64__)
static void
update_histogram_buckets_simd(std::span<const double> thresholds,
std::span<uint64_t> counts, double x,
size_t start_idx) {
static void update_histogram_buckets_simd(std::span<const double> thresholds,
std::span<uint64_t> counts, double x,
size_t start_idx) {
const size_t size = thresholds.size();
size_t i = start_idx;
@@ -1483,7 +1482,7 @@ update_histogram_buckets_simd(std::span<const double> thresholds,
static void update_histogram_buckets(std::span<const double> thresholds,
std::span<uint64_t> counts, double x,
size_t start_idx) {
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_X64) || \
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_X64) || \
defined(__aarch64__)
update_histogram_buckets_simd(thresholds, counts, x, start_idx);
#else
@@ -1522,8 +1521,7 @@ void Histogram::observe(double x) {
p->mutex.unlock();
} else {
// Slow path: accumulate in pending (lock-free)
update_histogram_buckets(p->thresholds, p->pending.bucket_counts, x,
0);
update_histogram_buckets(p->thresholds, p->pending.bucket_counts, x, 0);
p->pending.sum += x;
p->pending.observations++;
}