]> git.videolan.org Git - x264.git/commitdiff
x86: correctly check stack alignment for Atom hadamard_ac
authorJason Garrett-Glaser <jason@x264.com>
Sat, 2 Mar 2013 09:22:29 +0000 (01:22 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Tue, 23 Apr 2013 18:47:25 +0000 (11:47 -0700)
Regression in r2265 (only affected compilers with broken stack alignment,
like ICL on win32).

common/pixel.c

index 4588a697c62e66bfeb49decac33b4d18998862d5..cc1ad0aeef727b5c70cf5af65fb2ab1880bed296 100644 (file)
@@ -1155,7 +1155,10 @@ void x264_pixel_init( int cpu, x264_pixel_function_t *pixf )
             pixf->satd[PIXEL_4x16]  = x264_pixel_satd_4x16_ssse3_atom;
             INIT6( satd_x3, _ssse3_atom );
             INIT6( satd_x4, _ssse3_atom );
-            INIT4( hadamard_ac, _ssse3_atom );
+            if( !(cpu&X264_CPU_STACK_MOD4) )
+            {
+                INIT4( hadamard_ac, _ssse3_atom );
+            }
 #if ARCH_X86_64
             pixf->sa8d_satd[PIXEL_16x16] = x264_pixel_sa8d_satd_16x16_ssse3_atom;
 #endif