From: Jason Garrett-Glaser Date: Mon, 13 May 2013 23:52:18 +0000 (-0700) Subject: x86: add Jaguar CPU detection X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=42f2f78a05985a49fea0fb1bff050c95257810bb;p=x264.git x86: add Jaguar CPU detection --- diff --git a/common/cpu.c b/common/cpu.c index 42a1b0ee..dc3044e0 100644 --- a/common/cpu.c +++ b/common/cpu.c @@ -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 */