From 9168c344b11ee16fab7637c121cd980c74728e75 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Tue, 26 Aug 2014 00:15:39 +0200 Subject: [PATCH] Use generic memcpy from now on. Tests show generics are good enough now. It should be a speedup even on modern CPUs. --- common/include/Utilities/MemcpyFast.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/common/include/Utilities/MemcpyFast.h b/common/include/Utilities/MemcpyFast.h index 837554953d..f919766a67 100644 --- a/common/include/Utilities/MemcpyFast.h +++ b/common/include/Utilities/MemcpyFast.h @@ -42,12 +42,9 @@ void _memset16_unaligned( void* dest, u16 data, size_t size ); extern void memcpy_vibes(void * dest, const void * src, int size); extern void gen_memcpy_vibes(); -#define memcpy_fast memcpy_amd_ // Fast memcpy -#define memcpy_aligned(d,s,c) memcpy_amd_(d,s,c) // Memcpy with 16-byte Aligned addresses -#define memcpy_const memcpy_amd_ // Memcpy with constant size -#define memcpy_constA memcpy_amd_ // Memcpy with constant size and 16-byte aligned -#define memcpy_qwc_ memcpy_vibes // Memcpy in aligned qwc increments, with 0x400 qwc or less -#define memcpy_qwc(d,s,c) memcpy_amd_qwc(d,s,c) - -// Useful alternative if we think memcpy_amd_qwc is buggy -//#define memcpy_qwc(d,s,c) memcpy_amd_(d,s,c*16) +#define memcpy_fast memcpy +#define memcpy_aligned(d,s,c) memcpy(d,s,c) +#define memcpy_const memcpy +#define memcpy_constA memcpy +#define memcpy_qwc_ memcpy +#define memcpy_qwc(d,s,c) memcpy(d,s,c*16)