We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cd50c commit 37988e7Copy full SHA for 37988e7
include/xsimd/arch/xsimd_altivec.hpp
@@ -663,7 +663,7 @@ namespace xsimd
663
{
664
auto tmp0 = vec_reve(self.data); // v3, v2, v1, v0
665
auto tmp1 = vec_add(self.data, tmp0); // v0 + v3, v1 + v2, v2 + v1, v3 + v0
666
- auto tmp2 = vec_permi(tmp1, tmp1, 0x3); // v2 + v1, v3 + v0, v2 + v1, v3 + v0
+ auto tmp2 = vec_mergeh(tmp1, tmp1); // v2 + v1, v2 + v1, v3 + v0, v3 + v0
667
auto tmp3 = vec_add(tmp1, tmp2);
668
return vec_extract(tmp3, 0);
669
}
@@ -678,7 +678,7 @@ namespace xsimd
678
// FIXME: find an in-order approach
679
680
681
682
683
684
0 commit comments