diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-04-17 18:28:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-04-19 17:11:40 +0200 |
commit | b2d93a84e3a9c84e8c591c9f55355b5834c03d4b (patch) | |
tree | 189213565869426d3d161e334908e63168c0bd99 /residual_calc.h | |
parent | 5b94910fc4c6a47856290e9c23f9a905cf63c1eb (diff) |
egs: premultiply diff_coeffs with the denominator in init
Do not do it at every residual calc, which also allows us to get rid of
an extra parameter (and reduce the number of registers used in x86
SIMD).
Diffstat (limited to 'residual_calc.h')
-rw-r--r-- | residual_calc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/residual_calc.h b/residual_calc.h index c466214..31c1909 100644 --- a/residual_calc.h +++ b/residual_calc.h @@ -74,7 +74,6 @@ int mg2di_residual_calc(ResidualCalcContext *ctx, size_t size[2], const double *u, ptrdiff_t u_stride, const double *rhs, ptrdiff_t rhs_stride, const double * const diff_coeffs[MG2D_DIFF_COEFF_NB], - ptrdiff_t diff_coeffs_stride, - const double *fd_factors); + ptrdiff_t diff_coeffs_stride); #endif // MG2D_RESIDUAL_CALC_H |