[vlc-devel] commit: Remove unused 486 and 586 capabilities ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 20 15:47:10 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 20 16:07:54 2009 +0300| [5712ce24d804db615650a837318802ca84db189a] | committer: Rémi Denis-Courmont
Remove unused 486 and 586 capabilities
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5712ce24d804db615650a837318802ca84db189a
---
include/vlc_common.h | 2 --
src/libvlc.c | 2 --
src/misc/cpu.c | 5 -----
3 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 6d9ba10..a8afe16 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -789,8 +789,6 @@ VLC_EXPORT(int, vlc_wclosedir, ( void *_p_dir ));
* CPU capabilities
*****************************************************************************/
#define CPU_CAPABILITY_NONE 0
-#define CPU_CAPABILITY_486 (1<<0)
-#define CPU_CAPABILITY_586 (1<<1)
#define CPU_CAPABILITY_MMX (1<<3)
#define CPU_CAPABILITY_3DNOW (1<<4)
#define CPU_CAPABILITY_MMXEXT (1<<5)
diff --git a/src/libvlc.c b/src/libvlc.c
index 3eb5abd..d216bb7 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -766,8 +766,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
p_capabilities[0] = '\0';
- PRINT_CAPABILITY( CPU_CAPABILITY_486, "486" );
- PRINT_CAPABILITY( CPU_CAPABILITY_586, "586" );
PRINT_CAPABILITY( CPU_CAPABILITY_MMX, "MMX" );
PRINT_CAPABILITY( CPU_CAPABILITY_3DNOW, "3DNow!" );
PRINT_CAPABILITY( CPU_CAPABILITY_MMXEXT, "MMXEXT" );
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 5a6a5e4..2bbff24 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -138,8 +138,6 @@ uint32_t CPUCapabilities( void )
goto out;
# endif
- i_capabilities |= CPU_CAPABILITY_486;
-
/* the CPU supports the CPUID instruction - get its level */
cpuid( 0x00000000 );
@@ -150,9 +148,6 @@ uint32_t CPUCapabilities( void )
goto out;
#endif
- /* FIXME: this isn't correct, since some 486s have cpuid */
- i_capabilities |= CPU_CAPABILITY_586;
-
/* borrowed from mpeg2dec */
b_amd = ( i_ebx == 0x68747541 ) && ( i_ecx == 0x444d4163 )
&& ( i_edx == 0x69746e65 );
More information about the vlc-devel
mailing list