diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 20:56:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 21:10:13 +0200 |
commit | d4d799cac8080d4066394f338c31611ae655d5f6 (patch) | |
tree | ff37ab02c0bc8aaf30f44ad4c217527df74a774f /filter-accela | |
parent | cecd3f8a89693c5722b5e52baebb58edaef1a91c (diff) |
compat: use std::clamp, remove own version
Diffstat (limited to 'filter-accela')
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index b70f08cf..0f31f6a6 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -37,7 +37,7 @@ static void do_deltas(const double* deltas, double* output, F&& fun) for (unsigned k = 0; k < N; k++) { - const double c = dist > 1e-6 ? clamp((fabs(deltas[k]) / dist), 0., 1.) : 0; + const double c = dist > 1e-6 ? std::clamp((fabs(deltas[k]) / dist), 0., 1.) : 0; norm[k] = c; } |