utilities: Cleanup unused memcpy defines

All refer to memcpy, and only memcpy_fast is used, so there's no point
keeping them.

Also remove the _memset16_unaligned function prototype since there's no
function definition for it.
This commit is contained in:
Jonathan Li 2015-09-11 18:19:00 +01:00
parent 239306e9a2
commit 8312e21f00
3 changed files with 2 additions and 13 deletions

View File

@ -28,13 +28,3 @@ extern u8 memcmp_mmx(const void* src1, const void* src2, int cmpsize);
#else
#define memcmp_mmx memcmp
#endif
// Only used in the Windows version of memzero.h. But it's in Misc.cpp for some reason.
void _memset16_unaligned( void* dest, u16 data, size_t size );
#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)

View File

@ -160,8 +160,7 @@ namespace Threading
// For use in spin/wait loops.
extern void SpinWait();
// Use prior to committing data to another thread (internal memcpy_qwc does not use fencing,
// so that many memcpys can be issued in a row more efficiently)
// Use prior to committing data to another thread
extern void StoreFence();
// Optional implementation to enable hires thread/process scheduler for the operating system.

View File

@ -48,7 +48,7 @@ void* __fastcall pcsx2_aligned_realloc(void* handle, size_t size, size_t align)
if( handle != NULL )
{
memcpy_fast( newbuf, handle, size );
memcpy( newbuf, handle, size );
pcsx2_aligned_free(handle);
}
return newbuf;