[x265] [PATCH] Avoid VS2008 X64 compiler bug

Min Chen chenm003 at 163.com
Wed Sep 25 15:14:29 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1380114858 -28800
# Node ID 5985cee516f39171863f638e6939fb5ead7a733d
# Parent  2d1646a4fc2a7aee4fba79c5c587ca396c50cbe0
Avoid VS2008 X64 compiler bug

diff -r 2d1646a4fc2a -r 5985cee516f3 source/common/vec/ipfilter8.inc
--- a/source/common/vec/ipfilter8.inc	Wed Sep 25 14:20:01 2013 +0800
+++ b/source/common/vec/ipfilter8.inc	Wed Sep 25 21:14:18 2013 +0800
@@ -959,8 +959,12 @@
             val = _mm_packus_epi16(val, val);
 
             // TODO: optimize me: in here the really encode's size always be equal to 4
+#if (defined(_MSC_VER) && (_MSC_VER == 1500)) && (X86_64)
+            _mm_maskmoveu_si128(val, leftmask, (char*)&dst[col]);
+#else
             __m128i oldval = _mm_loadl_epi64((__m128i*)&dst[col]);
             _mm_storel_epi64((__m128i*)&dst[col], _mm_blendv_epi8(oldval, val, leftmask));
+#endif
         }
 
         src += srcStride;



More information about the x265-devel mailing list