From b2d93a84e3a9c84e8c591c9f55355b5834c03d4b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 17 Apr 2019 18:28:15 +0200 Subject: 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). --- residual_calc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'residual_calc.h') 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 -- cgit v1.2.3