[MPlayer-cvslog] r20593 - in trunk: Gui/win32/gui.c cpudetect.c libvo/aclib.c libvo/osd.c libvo/osd_template.c mencoder.c mplayer.c

reimar subversion at mplayerhq.hu
Wed Nov 1 19:41:26 CET 2006


Author: reimar
Date: Wed Nov  1 19:41:25 2006
New Revision: 20593

Modified:
   trunk/Gui/win32/gui.c
   trunk/cpudetect.c
   trunk/libvo/aclib.c
   trunk/libvo/osd.c
   trunk/libvo/osd_template.c
   trunk/mencoder.c
   trunk/mplayer.c

Log:
ARCH_X86 simplifications


Modified: trunk/Gui/win32/gui.c
==============================================================================
--- trunk/Gui/win32/gui.c	(original)
+++ trunk/Gui/win32/gui.c	Wed Nov  1 19:41:25 2006
@@ -107,7 +107,7 @@
         setvbuf(stderr, NULL, _IONBF, 0);
         mp_msg(MSGT_CPLAYER, MSGL_INFO, "%s\n", MP_TITLE);
         GetCpuCaps(&gCpuCaps);
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
         mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags:  MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
                gCpuCaps.hasMMX, gCpuCaps.hasMMX2,
                gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,

Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	(original)
+++ trunk/cpudetect.c	Wed Nov  1 19:41:25 2006
@@ -9,7 +9,7 @@
 #endif
 #include <stdlib.h>
 
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
 
 #include <stdio.h>
 #include <string.h>
@@ -493,7 +493,7 @@
    gCpuCaps.hasSSE=0;
 #endif /* __linux__ */
 }
-#else /* ARCH_X86 || ARCH_X86_64 */
+#else /* ARCH_X86 */
 
 #ifdef SYS_DARWIN
 #include <sys/sysctl.h>

Modified: trunk/libvo/aclib.c
==============================================================================
--- trunk/libvo/aclib.c	(original)
+++ trunk/libvo/aclib.c	Wed Nov  1 19:41:25 2006
@@ -17,7 +17,7 @@
 //Feel free to fine-tune the above 2, it might be possible to get some speedup with them :)
 
 //#define STATISTICS
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
 #define CAN_COMPILE_X86_ASM
 #endif
 

Modified: trunk/libvo/osd.c
==============================================================================
--- trunk/libvo/osd.c	(original)
+++ trunk/libvo/osd.c	Wed Nov  1 19:41:25 2006
@@ -12,7 +12,7 @@
 #include "cpudetect.h"
 #include "mangle.h"
 
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
 #define CAN_COMPILE_X86_ASM
 #endif
 
@@ -123,7 +123,7 @@
 		vo_draw_alpha_yv12_3DNow(w, h, src, srca, srcstride, dstbase, dststride);
 #elif defined (HAVE_MMX)
 		vo_draw_alpha_yv12_MMX(w, h, src, srca, srcstride, dstbase, dststride);
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 		vo_draw_alpha_yv12_X86(w, h, src, srca, srcstride, dstbase, dststride);
 #else
 		vo_draw_alpha_yv12_C(w, h, src, srca, srcstride, dstbase, dststride);
@@ -153,7 +153,7 @@
 		vo_draw_alpha_yuy2_3DNow(w, h, src, srca, srcstride, dstbase, dststride);
 #elif defined (HAVE_MMX)
 		vo_draw_alpha_yuy2_MMX(w, h, src, srca, srcstride, dstbase, dststride);
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 		vo_draw_alpha_yuy2_X86(w, h, src, srca, srcstride, dstbase, dststride);
 #else
 		vo_draw_alpha_yuy2_C(w, h, src, srca, srcstride, dstbase, dststride);
@@ -183,7 +183,7 @@
 		vo_draw_alpha_uyvy_3DNow(w, h, src, srca, srcstride, dstbase, dststride);
 #elif defined (HAVE_MMX)
 		vo_draw_alpha_uyvy_MMX(w, h, src, srca, srcstride, dstbase, dststride);
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 		vo_draw_alpha_uyvy_X86(w, h, src, srca, srcstride, dstbase, dststride);
 #else
 		vo_draw_alpha_uyvy_C(w, h, src, srca, srcstride, dstbase, dststride);
@@ -213,7 +213,7 @@
 		vo_draw_alpha_rgb24_3DNow(w, h, src, srca, srcstride, dstbase, dststride);
 #elif defined (HAVE_MMX)
 		vo_draw_alpha_rgb24_MMX(w, h, src, srca, srcstride, dstbase, dststride);
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 		vo_draw_alpha_rgb24_X86(w, h, src, srca, srcstride, dstbase, dststride);
 #else
 		vo_draw_alpha_rgb24_C(w, h, src, srca, srcstride, dstbase, dststride);
@@ -243,7 +243,7 @@
 		vo_draw_alpha_rgb32_3DNow(w, h, src, srca, srcstride, dstbase, dststride);
 #elif defined (HAVE_MMX)
 		vo_draw_alpha_rgb32_MMX(w, h, src, srca, srcstride, dstbase, dststride);
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 		vo_draw_alpha_rgb32_X86(w, h, src, srca, srcstride, dstbase, dststride);
 #else
 		vo_draw_alpha_rgb32_C(w, h, src, srca, srcstride, dstbase, dststride);
@@ -288,7 +288,7 @@
 			mp_msg(MSGT_OSD,MSGL_INFO,"Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay\n");
 #elif defined (HAVE_MMX)
 			mp_msg(MSGT_OSD,MSGL_INFO,"Using MMX Optimized OnScreenDisplay\n");
-#elif defined(ARCH_X86) || defined(ARCH_X86_64)
+#elif defined(ARCH_X86)
 			mp_msg(MSGT_OSD,MSGL_INFO,"Using X86 Optimized OnScreenDisplay\n");
 #else
 			mp_msg(MSGT_OSD,MSGL_INFO,"Using Unoptimized OnScreenDisplay\n");

Modified: trunk/libvo/osd_template.c
==============================================================================
--- trunk/libvo/osd_template.c	(original)
+++ trunk/libvo/osd_template.c	Wed Nov  1 19:41:25 2006
@@ -204,7 +204,7 @@
     for(y=0;y<h;y++){
         register unsigned char *dst = dstbase;
         register int x;
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
 #ifdef HAVE_MMX
     asm volatile(
 	PREFETCHW" %0\n\t"
@@ -324,7 +324,7 @@
 #endif /* HAVE_MMX */
     for(y=0;y<h;y++){
         register int x;
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
 #ifdef HAVE_MMX
 #ifdef HAVE_3DNOW
     asm volatile(

Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	(original)
+++ trunk/mencoder.c	Wed Nov  1 19:41:25 2006
@@ -416,7 +416,7 @@
 
   /* Test for cpu capabilities (and corresponding OS support) for optimizing */
   GetCpuCaps(&gCpuCaps);
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: Type: %d MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
       gCpuCaps.cpuType,gCpuCaps.hasMMX,gCpuCaps.hasMMX2,
       gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Wed Nov  1 19:41:25 2006
@@ -2838,7 +2838,7 @@
   mp_msg(MSGT_CPLAYER,MSGL_INFO, "MPlayer " VERSION " (C) 2000-2006 MPlayer Team\n");
   /* Test for CPU capabilities (and corresponding OS support) for optimizing */
   GetCpuCaps(&gCpuCaps);
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#ifdef ARCH_X86
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags:  MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
       gCpuCaps.hasMMX,gCpuCaps.hasMMX2,
       gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,
@@ -2867,7 +2867,7 @@
 #endif
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");
 #endif /* RUNTIME_CPUDETECT */
-#endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */
+#endif /* ARCH_X86 */
 
 #if defined(WIN32) && defined(USE_WIN32DLL)
   set_path_env();



More information about the MPlayer-cvslog mailing list