svn commit: r418570 - head/graphics/lepton/files

Mikhail Teterin mi at FreeBSD.org
Fri Jul 15 05:11:31 UTC 2016


Author: mi
Date: Fri Jul 15 05:11:30 2016
New Revision: 418570
URL: https://svnweb.freebsd.org/changeset/ports/418570

Log:
  Use a different work-around for SSE4-only _mm_insert_epi32().
  Functionally equivalent, it may be a little bit faster.

Modified:
  head/graphics/lepton/files/patch-cpu

Modified: head/graphics/lepton/files/patch-cpu
==============================================================================
--- head/graphics/lepton/files/patch-cpu	Fri Jul 15 04:55:42 2016	(r418569)
+++ head/graphics/lepton/files/patch-cpu	Fri Jul 15 05:11:30 2016	(r418570)
@@ -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 {


More information about the svn-ports-all mailing list