From: Martin Kronbichler Date: Tue, 29 Dec 2015 20:12:40 +0000 (+0100) Subject: Vectorize one loop X-Git-Tag: v8.4.0-rc2~120^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb44c14568090f67bf9cce5bdc2a3d89e38c9539;p=dealii.git Vectorize one loop --- diff --git a/include/deal.II/lac/vector.templates.h b/include/deal.II/lac/vector.templates.h index d5a384ec47..478f64f534 100644 --- a/include/deal.II/lac/vector.templates.h +++ b/include/deal.II/lac/vector.templates.h @@ -795,11 +795,9 @@ namespace internal const dealii::Vector &src, dealii::Vector &dst) { - const T *q = src.begin()+begin; - const T *const end_q = src.begin()+end; - U *p = dst.begin()+begin; - for (; q!=end_q; ++q, ++p) - *p = *q; + DEAL_II_OPENMP_SIMD_PRAGMA + for (unsigned int i=begin; i