From 9402cd07dba3632fea3273795b3223350742fe5c Mon Sep 17 00:00:00 2001 From: Siggi Langauf Date: Tue, 28 May 2002 12:44:02 +0000 Subject: PowerPC Assembly Patch by Andrew Patrikalakis This seems to be _always_ using xine_fast_memcpy() in yuv2rgb.c, which _may_ be a bad idea. CVS patchset: 1961 CVS date: 2002/05/28 12:44:02 --- src/xine-utils/memcpy.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/xine-utils/memcpy.c') diff --git a/src/xine-utils/memcpy.c b/src/xine-utils/memcpy.c index 564a61cdd..a1e114b70 100644 --- a/src/xine-utils/memcpy.c +++ b/src/xine-utils/memcpy.c @@ -33,6 +33,11 @@ #include "config.h" #endif +#ifdef ARCH_PPC +#include "ppcasm_string.h" +#endif +#include + #include #include #include "xine_internal.h" @@ -368,6 +373,10 @@ static struct { { "MMXEXT optimized memcpy()", mmx2_memcpy, 0, MM_MMXEXT }, { "SSE optimized memcpy()", sse_memcpy, 0, MM_MMXEXT|MM_SSE }, #endif /* ARCH_X86 */ +#ifdef ARCH_PPC + { "ppcasm_memcpy()", ppcasm_memcpy, 0, 0 }, + { "ppcasm_cacheable_memcpy()", ppcasm_cacheable_memcpy, 0, 0 }, +#endif /* ARCH_PPC */ { NULL, NULL, 0, 0 } }; @@ -383,7 +392,8 @@ static unsigned long long int rdtsc() { /* FIXME: implement an equivalent for using optimized memcpy on other architectures */ - return 0; +#warning "Using rdtsc() hack (via times(NULL))" + return times(NULL); } #endif @@ -414,6 +424,9 @@ void xine_probe_fast_memcpy(config_values_t *config) static char *memcpy_methods[] = {"probe", "glibc", #ifdef ARCH_X86 "kernel", "mmx", "mmxext", "sse", +#endif +#ifdef ARCH_PPC + "ppcasm_memcpy", "ppcasm_cacheable_memcpy", #endif NULL}; -- cgit v1.2.3