]> git.videolan.org Git - x264.git/commitdiff
x86: add Jaguar CPU detection
authorJason Garrett-Glaser <jason@x264.com>
Mon, 13 May 2013 23:52:18 +0000 (16:52 -0700)
committerJason Garrett-Glaser <jason@x264.com>
Fri, 17 May 2013 16:26:49 +0000 (09:26 -0700)
common/cpu.c

index 42a1b0ee0f1b3211586adcd65815ce3822fd0338..dc3044e048633a8b2cf375c1d8dc57174c3ad210 100644 (file)
@@ -202,6 +202,12 @@ uint32_t x264_cpu_detect( void )
                 cpu |= X264_CPU_SSE2_IS_SLOW;  /* Bobcat has 64-bit SIMD units */
                 cpu |= X264_CPU_SLOW_PALIGNR;  /* palignr is insanely slow on Bobcat */
             }
+            if( family == 0x16 )
+            {
+                cpu |= X264_CPU_SLOW_PSHUFB;   /* Jaguar's pshufb isn't that slow, but it's slow enough
+                                                * compared to alternate instruction sequences that this
+                                                * is equal or faster on almost all such functions. */
+            }
         }
 
         if( ecx&0x00000080 ) /* Misalign SSE */