# HG changeset patch # User reimar # Date 1162406485 0 # Node ID 6289755ce7c73a64ef47a3cf62f0b201d0d0ef29 # Parent 9e7c80f126d69fb0b406b47c8981287e345f546d ARCH_X86 simplifications diff -r 9e7c80f126d6 -r 6289755ce7c7 Gui/win32/gui.c --- 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, diff -r 9e7c80f126d6 -r 6289755ce7c7 cpudetect.c --- 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 -#if defined(ARCH_X86) || defined(ARCH_X86_64) +#ifdef ARCH_X86 #include #include @@ -493,7 +493,7 @@ gCpuCaps.hasSSE=0; #endif /* __linux__ */ } -#else /* ARCH_X86 || ARCH_X86_64 */ +#else /* ARCH_X86 */ #ifdef SYS_DARWIN #include diff -r 9e7c80f126d6 -r 6289755ce7c7 libvo/aclib.c --- 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 diff -r 9e7c80f126d6 -r 6289755ce7c7 libvo/osd.c --- 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"); diff -r 9e7c80f126d6 -r 6289755ce7c7 libvo/osd_template.c --- 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