From: Maximilian Bergbauer Date: Mon, 22 May 2023 12:37:05 +0000 (+0200) Subject: Remove ctors and assign data directly X-Git-Tag: v9.5.0-rc1~196^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=736f6519c7995a7c7dd2e461b67ff33d4d1a79f2;p=dealii.git Remove ctors and assign data directly --- diff --git a/include/deal.II/base/vectorization.h b/include/deal.II/base/vectorization.h index ee71f12383..06a29e0d96 100644 --- a/include/deal.II/base/vectorization.h +++ b/include/deal.II/base/vectorization.h @@ -2314,14 +2314,6 @@ public: : VectorizedArrayBase, 4>(list) {} - /** - * Construct an array with the data field. - */ - VectorizedArray(__m256d const &x) - { - data = x; - } - /** * This function can be used to set all data fields to a given scalar. */ @@ -2894,14 +2886,6 @@ public: : VectorizedArrayBase, 8>(list) {} - /** - * Construct an array with the data field. - */ - VectorizedArray(__m256 const &x) - { - data = x; - } - /** * This function can be used to set all data fields to a given scalar. */ @@ -3494,14 +3478,6 @@ public: : VectorizedArrayBase, 2>(list) {} - /** - * Construct an array with the data field. - */ - VectorizedArray(__m128d const &x) - { - data = x; - } - /** * This function can be used to set all data fields to a given scalar. */ @@ -3993,14 +3969,6 @@ public: return *this; } - /** - * Construct an array with the data field. - */ - VectorizedArray(__m128 const &x) - { - data = x; - } - /** * Assign a scalar to the current object. This overload is used for * rvalue references; because it does not make sense to assign @@ -5002,7 +4970,8 @@ VectorizedArray::horizontal_add() inline double VectorizedArray::horizontal_add() { - VectorizedArray t1(this->get_low() + this->get_high()); + VectorizedArray t1; + t1.data = this->get_low() + this->get_high(); return t1.horizontal_add(); } @@ -5011,7 +4980,8 @@ VectorizedArray::horizontal_add() inline float VectorizedArray::horizontal_add() { - VectorizedArray t1(this->get_low() + this->get_high()); + VectorizedArray t1; + t1.data = this->get_low() + this->get_high(); return t1.horizontal_add(); } #endif @@ -5022,7 +4992,8 @@ VectorizedArray::horizontal_add() inline double VectorizedArray::horizontal_add() { - VectorizedArray t1(this->get_low() + this->get_high()); + VectorizedArray t1; + t1.data = this->get_low() + this->get_high(); return t1.horizontal_add(); } @@ -5031,7 +5002,8 @@ VectorizedArray::horizontal_add() inline float VectorizedArray::horizontal_add() { - VectorizedArray t1(this->get_low() + this->get_high()); + VectorizedArray t1; + t1.data = this->get_low() + this->get_high(); return t1.horizontal_add(); } #endif