summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index 15e2edfb..9484fafe 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -41,21 +41,19 @@ static void do_deltas(const double* deltas, double* output, F&& fun)
norm[k] = c;
}
- progn(
- double n = 0;
- for (unsigned k = 0; k < N; k++)
- n += norm[k];
+ double n = 0;
+ for (unsigned k = 0; k < N; k++)
+ n += norm[k];
- if (n > 1e-6)
- {
- const double ret = 1./n;
- for (unsigned k = 0; k < N; k++)
- norm[k] *= ret;
- }
- else
- for (unsigned k = 0; k < N; k++)
- norm[k] = 0;
- );
+ if (n > 1e-6)
+ {
+ const double ret = 1./n;
+ for (unsigned k = 0; k < N; k++)
+ norm[k] *= ret;
+ }
+ else
+ for (unsigned k = 0; k < N; k++)
+ norm[k] = 0;
for (unsigned k = 0; k < N; k++)
{