Optimized memset() can be configured to do 64-bit stores

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5243 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-10-21 01:31:56 +00:00
parent f16ae329fd
commit d24bf91574
6 changed files with 100 additions and 21 deletions
+9 -4
View File
@@ -56,17 +56,22 @@ void *memmove(void *dest, const void *src, size_t count)
if (dest <= src)
{
tmp = (char*) dest;
s = (char*) src;
s = (char*) src;
while (count--)
*tmp++ = *s++;
{
*tmp++ = *s++;
}
}
else
{
tmp = (char*) dest + count;
s = (char*) src + count;
s = (char*) src + count;
while (count--)
*--tmp = *--s;
{
*--tmp = *--s;
}
}
return dest;
}
#endif