Commit 4257ef51 authored by Christian Eichler's avatar Christian Eichler
Browse files

Replace ASM thumb2_memcpy with simple C version

parent fe44d127
......@@ -22,6 +22,16 @@
unrolls the loop to perform 4 of these copies per loop iteration.
*/
void thumb2_memcpy(void* dest, const void* src, size_t length) {
char *csrc = (char *)src;
char *cdest = (char *)dest;
for(int i = 0; i < length; i++) {
cdest[i] = csrc[i];
}
}
/*
__attribute__((naked)) void thumb2_memcpy(void* pDest, const void* pSource, size_t length)
{
__asm (
......@@ -55,6 +65,6 @@ __attribute__((naked)) void thumb2_memcpy(void* pDest, const void* pSource, size
"4$: bx lr\n"
);
}
*/
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment