inline void MemMoveBYTEHelp( char * pDest, char * pSrc, unsigned int iCount )
{
__asm{
mov edi, pDest;
mov esi, pSrc;
mov ecx, iCount;
rep movsb;
}
}
云风的《游戏编程感悟》一书曾提到这个,里面说,64KB的内存拷贝是快不过 memcpy 的,因为VC中,memcpy 并是当做一个函数来编译的, 也就是说编程器会特别照顾 memcpy
June 07, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment