Mercurial > mplayer.hg
changeset 20577:6289755ce7c7
ARCH_X86 simplifications
author | reimar |
---|---|
date | Wed, 01 Nov 2006 18:41:25 +0000 |
parents | 9e7c80f126d6 |
children | 235b6df49b0d |
files | Gui/win32/gui.c cpudetect.c libvo/aclib.c libvo/osd.c libvo/osd_template.c mencoder.c mplayer.c |
diffstat | 7 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/win32/gui.c Wed Nov 01 18:36:20 2006 +0000 +++ b/Gui/win32/gui.c Wed Nov 01 18:41:25 2006 +0000 @@ -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,
--- a/cpudetect.c Wed Nov 01 18:36:20 2006 +0000 +++ b/cpudetect.c Wed Nov 01 18:41:25 2006 +0000 @@ -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>
--- a/libvo/aclib.c Wed Nov 01 18:36:20 2006 +0000 +++ b/libvo/aclib.c Wed Nov 01 18:41:25 2006 +0000 @@ -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
--- a/libvo/osd.c Wed Nov 01 18:36:20 2006 +0000 +++ b/libvo/osd.c Wed Nov 01 18:41:25 2006 +0000 @@ -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");
--- a/libvo/osd_template.c Wed Nov 01 18:36:20 2006 +0000 +++ b/libvo/osd_template.c Wed Nov 01 18:41:25 2006 +0000 @@ -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(
--- a/mencoder.c Wed Nov 01 18:36:20 2006 +0000 +++ b/mencoder.c Wed Nov 01 18:41:25 2006 +0000 @@ -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,
--- a/mplayer.c Wed Nov 01 18:36:20 2006 +0000 +++ b/mplayer.c Wed Nov 01 18:41:25 2006 +0000 @@ -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();