This commit is contained in:
hyung-hwan 2007-12-27 02:50:15 +00:00
parent 82c15f2d93
commit 7e2a6e40e0

View File

@ -41,7 +41,15 @@ void* ase_memcpy (void* dst, const void* src, ase_size_t n)
/* if both src and dst are aligned, /* if both src and dst are aligned,
* blockcopy sizeof(void*) bytes. */ * blockcopy sizeof(void*) bytes. */
#if (ASE_SIZEOF_VOID_P==2)
ase_size_t count = n >> 1;
#elif (ASE_SIZEOF_VOID_P==4)
ase_size_t count = n >> 2;
#elif (ASE_SIZEOF_VOID_P==8)
ase_size_t count = n >> 3;
#else
ase_size_t count = n / sizeof(dst); ase_size_t count = n / sizeof(dst);
#endif
while (count >= 4) while (count >= 4)
{ {