mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
* ChangeLog, Makefile.am, configure.ac, preinstall.am, shared/cache/cache.c, shared/cache/cache_.h, shared/misc/memcpy.c: New files.
24 lines
416 B
C
24 lines
416 B
C
/*
|
|
* 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;
|
|
}
|