diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 21:11:11 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 21:11:11 +0100 |
| commit | 25e693cc46324b4ec588530de542bba8af6f47c6 (patch) | |
| tree | 8a959e442f9330dd3f881fe4109e83b831f25a7e /tools/specview.cc | |
| parent | 9379697ccdf6f44ade7933d5635f72f644f6b92e (diff) | |
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.
Diffstat (limited to 'tools/specview.cc')
| -rw-r--r-- | tools/specview.cc | 7 |
1 files changed, 2 insertions, 5 deletions
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 = " .:-=+*#%@"; |
