From: Martin Kronbichler Date: Mon, 21 Aug 2023 10:31:21 +0000 (+0200) Subject: Always inline a new function to restore performance X-Git-Tag: relicensing~574^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15900%2Fhead;p=dealii.git Always inline a new function to restore performance --- diff --git a/include/deal.II/matrix_free/tensor_product_kernels.h b/include/deal.II/matrix_free/tensor_product_kernels.h index 5abcf6507e..fc64a6b23e 100644 --- a/include/deal.II/matrix_free/tensor_product_kernels.h +++ b/include/deal.II/matrix_free/tensor_product_kernels.h @@ -678,14 +678,17 @@ namespace internal bool add, typename Number, typename Number2> - std::enable_if_t<(variant == evaluate_evenodd), void> - apply_matrix_vector_product(const Number2 *matrix, - const Number * in, - Number * out, - int n_rows_runtime = 0, - int n_columns_runtime = 0, - int stride_in_runtime = 0, - int stride_out_runtime = 0) +#ifndef DEBUG + inline DEAL_II_ALWAYS_INLINE +#endif + std::enable_if_t<(variant == evaluate_evenodd), void> + apply_matrix_vector_product(const Number2 *matrix, + const Number * in, + Number * out, + int n_rows_runtime = 0, + int n_columns_runtime = 0, + int stride_in_runtime = 0, + int stride_out_runtime = 0) { const int n_rows = n_rows_static == 0 ? n_rows_runtime : n_rows_static; const int n_columns =