]> granicus.if.org Git - libx264/commitdiff
x86: add Jaguar CPU detection
authorFiona Glaser <fiona@x264.com>
Mon, 13 May 2013 23:52:18 +0000 (16:52 -0700)
committerFiona Glaser <fiona@x264.com>
Fri, 17 May 2013 16:26:49 +0000 (09:26 -0700)
common/cpu.c

index bb707db3f7c35ccfee93b8c7fa381d090fed71d8..9b77c1d7a5610a5b0bd5d06c7929685fee1ebdcd 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 */