Skip to content

Commit

Permalink
Merge pull request #42446 from iarspider/patch-2
Browse files Browse the repository at this point in the history
AVXVec: replace 2*insertf128 with 1*_mm256_set_m128d
  • Loading branch information
cmsbuild authored Aug 4, 2023
2 parents 272329f + c7084d7 commit 18e3ea0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions DataFormats/Math/interface/private/AVXVec.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ namespace mathSSE {
arr[3] = f4;
}

Vec4(Vec2<double> ivec0, Vec2<double> ivec1) {
vec = _mm256_insertf128_pd(vec, ivec0.vec, 0);
vec = _mm256_insertf128_pd(vec, ivec1.vec, 1);
}
Vec4(Vec2<double> ivec0, Vec2<double> ivec1) { vec = _mm256_set_m128d(ivec1.vec, ivec0.vec); }

Vec4(Vec2<double> ivec0, double f3, double f4 = 0) {
vec = _mm256_insertf128_pd(vec, ivec0.vec, 0);
Expand Down

0 comments on commit 18e3ea0

Please sign in to comment.