From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: style: add vertical compression rules to clang-format - Enabled AllowShortFunctionsOnASingleLine: All - Enabled AllowShortBlocksOnASingleLine: Always - Enabled AllowShortIfStatementsOnASingleLine: Always - Enabled AllowShortLoopsOnASingleLine: true - Set MaxEmptyLinesToKeep: 1 - Applied formatting to all source files. --- tools/specview.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tools/specview.cc') diff --git a/tools/specview.cc b/tools/specview.cc index d2f5489..59b6d70 100644 --- a/tools/specview.cc +++ b/tools/specview.cc @@ -64,11 +64,8 @@ int main(int argc, char **argv) { // Find max magnitude for normalization float max_mag = 0.0f; - for (float val : spec_data) { - max_mag = std::max(max_mag, fabsf(val)); - } - if (max_mag == 0.0f) - max_mag = 1.0f; // Avoid division by zero + for (float val : spec_data) { max_mag = std::max(max_mag, fabsf(val)); } + if (max_mag == 0.0f) max_mag = 1.0f; // Avoid division by zero // ASCII visualization const char *gradient = " .:-=+*#%@"; -- cgit v1.2.3