]> git.videolan.org Git - x264.git/commitdiff
x86: XOP pixel_sad_{x3, x4} high bit-depth master
authorJames Almer <jamrial@gmail.com>
Wed, 9 Apr 2014 06:33:06 +0000 (03:33 -0300)
committerJason Garrett-Glaser <jason@x264.com>
Tue, 22 Apr 2014 22:37:52 +0000 (15:37 -0700)
common/pixel.c
common/x86/pixel.h
common/x86/sad16-a.asm

index 63e3f65d61866ee79d04b12e13c83fc7e4c90423..6ce49f847e3d6395997ee0840c3a13a0686f8b78 100644 (file)
@@ -1021,6 +1021,8 @@ void x264_pixel_init( int cpu, x264_pixel_function_t *pixf )
     }
     if( cpu&X264_CPU_XOP )
     {
+        INIT5( sad_x3, _xop );
+        INIT5( sad_x4, _xop );
         pixf->ssd_nv12_core    = x264_pixel_ssd_nv12_core_xop;
         pixf->var[PIXEL_16x16] = x264_pixel_var_16x16_xop;
         pixf->var[PIXEL_8x8]   = x264_pixel_var_8x8_xop;
index 4568da69dfd8943c2f3d28e98e7cf2399396b0eb..27c7a54944452c0a222abd6b60fa6090cfd70408 100644 (file)
@@ -56,6 +56,7 @@ DECL_X4( sad, mmx2 )
 DECL_X4( sad, sse2 )
 DECL_X4( sad, sse3 )
 DECL_X4( sad, ssse3 )
+DECL_X4( sad, xop )
 DECL_X4( sad, avx )
 DECL_X4( sad, avx2 )
 DECL_X1( ssd, mmx )
index ebfe9b5cf39243b2fa0552f30e0efc17f36395e2..5b5e9c8ae8104a873d5241c7a79247d86266a28a 100644 (file)
@@ -519,6 +519,19 @@ SAD_X 4, 16,  8
 SAD_X 4,  8, 16
 SAD_X 4,  8,  8
 SAD_X 4,  8,  4
+INIT_XMM xop
+%define XMM_REGS 7
+SAD_X 3, 16, 16
+SAD_X 3, 16,  8
+SAD_X 3,  8, 16
+SAD_X 3,  8,  8
+SAD_X 3,  8,  4
+%define XMM_REGS 9
+SAD_X 4, 16, 16
+SAD_X 4, 16,  8
+SAD_X 4,  8, 16
+SAD_X 4,  8,  8
+SAD_X 4,  8,  4
 INIT_YMM avx2
 %define XMM_REGS 7
 SAD_X 3, 16, 16