diff --git a/src/metric.cpp b/src/metric.cpp index 3a870c9..39ce1e8 100644 --- a/src/metric.cpp +++ b/src/metric.cpp @@ -1446,10 +1446,9 @@ update_histogram_buckets_simd(std::span thresholds, } } #elif defined(__aarch64__) -static void -update_histogram_buckets_simd(std::span thresholds, - std::span counts, double x, - size_t start_idx) { +static void update_histogram_buckets_simd(std::span thresholds, + std::span 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 thresholds, static void update_histogram_buckets(std::span thresholds, std::span 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++; }