[x264-devel] x86: add Jaguar CPU detection

Jason Garrett-Glaser git at videolan.org
Mon May 20 23:06:46 CEST 2013


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Mon May 13 16:52:18 2013 -0700| [42f2f78a05985a49fea0fb1bff050c95257810bb] | committer: Jason Garrett-Glaser

x86: add Jaguar CPU detection

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=42f2f78a05985a49fea0fb1bff050c95257810bb
---

 common/cpu.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/common/cpu.c b/common/cpu.c
index 42a1b0e..dc3044e 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 */



More information about the x264-devel mailing list