Date: Fri, 15 Jul 2016 05:11:30 +0000 (UTC) From: Mikhail Teterin <mi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r418570 - head/graphics/lepton/files Message-ID: <201607150511.u6F5BUCd069897@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607150511.u6F5BUCd069897>