# HG changeset patch # User reimar # Date 1236603554 0 # Node ID 5643b5e6bee079abcd14c661e5259340e1be92fa # Parent ff88625be90202aed5202605b2a97d9a447dc3c8 Make fastmemcpybench almost working - only thing missing is a way to override HAVE_MMX etc. from config.h. diff -r ff88625be902 -r 5643b5e6bee0 Makefile --- a/Makefile Mon Mar 09 12:29:42 2009 +0000 +++ b/Makefile Mon Mar 09 12:59:14 2009 +0000 @@ -1029,8 +1029,8 @@ fastmemcpybench: $(addsuffix $(EXESUF),$(addprefix TOOLS/fastmem-,c mmx k6 k7 sse mga-mmx mga-k6 mga-k7 mga-sse)) -TOOLS/fastmem-%$(EXESUF): TOOLS/fastmemcpybench.c - $(CC) $(CFLAGS) -o $@ $< +TOOLS/fastmem-%$(EXESUF): TOOLS/fastmemcpybench.c libvo/aclib.c + $(CC) $(CFLAGS) -o $@ $^ REAL_SRCS = $(wildcard TOOLS/realcodecs/*.c) REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0) diff -r ff88625be902 -r 5643b5e6bee0 TOOLS/fastmemcpybench.c --- a/TOOLS/fastmemcpybench.c Mon Mar 09 12:29:42 2009 +0000 +++ b/TOOLS/fastmemcpybench.c Mon Mar 09 12:59:14 2009 +0000 @@ -18,6 +18,7 @@ #include #include #include +#include "libvo/fastmemcpy.h" //#define ARR_SIZE 100000 #define ARR_SIZE (1024*768*2) @@ -113,7 +114,7 @@ t = GetTimer(); v1 = read_tsc(); for (i = 0; i < 100; i++) - memcpy(marr1, marr2, ARR_SIZE - 16); + fast_memcpy(marr1, marr2, ARR_SIZE - 16); v2 = read_tsc(); t = GetTimer() - t; // ARR_SIZE*100 / (1024*1024) / (t/1000000) = ARR_SIZE*95.36743 / t