-
-
Notifications
You must be signed in to change notification settings - Fork 702
reduce{h,v}: simplify coefficients handling #3553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduce{h,v}: simplify coefficients handling #3553
Conversation
Does this mean we will build on C++ before C++11? Maybe the "C++ version required" declration in meson.build should change too. |
8fe33ce
to
963dede
Compare
This will indeed restore compatibility with C++98. Commit 963dede lowers the minimum required C++ version to C++98. We could also remove that line, but that would not allow us to detect regressions (since most compilers use C++17 as the default nowadays). |
963dede
to
9c10d2e
Compare
I just rebased this PR to resolve the merge conflicts. |
dcc63c9
to
91828ae
Compare
Friendly ping, the diff is probably best viewable with the |
05a5155
to
9fba8ff
Compare
9fba8ff
to
2ebefa4
Compare
And move `vips_reduce_make_mask()` to templates.h.
2ebefa4
to
1dc076d
Compare
Split into multiple commits to make reviewing easier. |
Godbolt link to verify the inlining behaviour: https://godbolt.org/z/cYbKWTW6T (i.e. there is only a call made to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done some testing with this, everything appears to work as before. Much simpler, thanks Kleis.
n_points
calculations.calculate_coefficients*
functions into a single one.reduce_sum()
.Split from: #3532.