aboutsummaryrefslogtreecommitdiff
path: root/graphics/lepton
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2016-07-15 05:11:30 +0000
committerMikhail Teterin <mi@FreeBSD.org>2016-07-15 05:11:30 +0000
commitcff6a920d75823acca7ed3098066633f631cc781 (patch)
tree3c5a9a7038ab22d1256ad951fbb647b68ec5bf20 /graphics/lepton
parent4eaa4a9dbe4b3e055055257dedd3153ad8088add (diff)
downloadports-cff6a920d75823acca7ed3098066633f631cc781.tar.gz
ports-cff6a920d75823acca7ed3098066633f631cc781.zip
Use a different work-around for SSE4-only _mm_insert_epi32().
Functionally equivalent, it may be a little bit faster.
Notes
Notes: svn path=/head/; revision=418570
Diffstat (limited to 'graphics/lepton')
-rw-r--r--graphics/lepton/files/patch-cpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/lepton/files/patch-cpu b/graphics/lepton/files/patch-cpu
index 0a6b8d5fcddf..4ee98d914194 100644
--- a/graphics/lepton/files/patch-cpu
+++ b/graphics/lepton/files/patch-cpu
@@ -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 {