mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 23:53:18 +00:00
2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* ChangeLog, Makefile.am, configure.ac, preinstall.am, shared/cache/cache.c, shared/cache/cache_.h, shared/misc/memcpy.c: New files.
This commit is contained in:
23
c/src/lib/libcpu/lm32/shared/misc/memcpy.c
Normal file
23
c/src/lib/libcpu/lm32/shared/misc/memcpy.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* C library memcpy routine
|
||||
*
|
||||
* This routine shall get code to optimize performance on NIOS II
|
||||
*
|
||||
* The routine is placed in this source directory to ensure that it
|
||||
* is picked up by all applications.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
void *
|
||||
memcpy(void *s1, const void *s2, size_t n)
|
||||
{
|
||||
char *p1 = s1;
|
||||
const char *p2 = s2;
|
||||
size_t left = n;
|
||||
|
||||
while(left > 0) *(p1++) = *(p2++);
|
||||
return s1;
|
||||
}
|
||||
Reference in New Issue
Block a user