1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Use a different work-around for SSE4-only _mm_insert_epi32().

Functionally equivalent, it may be a little bit faster.
This commit is contained in:
Mikhail Teterin 2016-07-15 05:11:30 +00:00
parent 4eaa4a9dbe
commit cff6a920d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418570

View File

@ -67,7 +67,7 @@ instruction set...
xv0 = _mm_insert_epi32(xv0, 0, 0);
+#else
+// See http://stackoverflow.com/questions/38384520/is-there-a-sse2-equivalent-for-mm-insert-epi32
+ xv0 = _mm_insert_epi16(_mm_insert_epi16(xv0, 0, 0), 0, 1);
+ xv0 = _mm_and_si128(xv0, _mm_set_epi32(-1,-1,-1, 0));
+#endif
}
} else {