Merge pull request #280 from ramapcsx2/memcpy

Use generic memcpy from now on. Tests show generics are good enough now. It should be a speedup even on modern CPUs.
This commit is contained in:
ramapcsx2 2014-08-26 23:13:13 +02:00
commit 9102e40f9c
1 changed files with 6 additions and 9 deletions

View File

@ -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)