diff options
author | mi <mi@FreeBSD.org> | 2016-07-15 13:11:30 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2016-07-15 13:11:30 +0800 |
commit | 87159795197ed13a47f1b30aa1eb2ddfbba5d5b8 (patch) | |
tree | 3c5a9a7038ab22d1256ad951fbb647b68ec5bf20 /graphics | |
parent | 54fbed0d02648a887c0f13ab5262c4c1e488b0e1 (diff) | |
download | freebsd-ports-gnome-87159795197ed13a47f1b30aa1eb2ddfbba5d5b8.tar.gz freebsd-ports-gnome-87159795197ed13a47f1b30aa1eb2ddfbba5d5b8.tar.zst freebsd-ports-gnome-87159795197ed13a47f1b30aa1eb2ddfbba5d5b8.zip |
Use a different work-around for SSE4-only _mm_insert_epi32().
Functionally equivalent, it may be a little bit faster.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/lepton/files/patch-cpu | 2 |
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 { |