[vlc-devel] [PATCH 01/41] i_ebx can be 0x12fe90 on some AMD CPUs.

KO Myung-Hun komh at chollian.net
Mon Oct 10 13:43:40 CEST 2011


My AMD ThunderBird CPU is the case.
---
 src/misc/cpu.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 15de451..63a4bd2 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -164,7 +164,8 @@ void vlc_CPU_init (void)
 #endif
 
     /* borrowed from mpeg2dec */
-    b_amd = ( i_ebx == 0x68747541 ) && ( i_ecx == 0x444d4163 )
+    b_amd = ( i_ebx == 0x68747541 || i_ebx == 0x12fe90 )
+                    && ( i_ecx == 0x444d4163 )
                     && ( i_edx == 0x69746e65 );
 
     /* test for the MMX flag */
-- 
1.7.3.2



More information about the vlc-devel mailing list