source: rtems/c/src/lib/libcpu/lm32/shared/misc/memcpy.c @ 74c6f36

4.104.115
Last change on this file since 74c6f36 was 74c6f36, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/08 at 22:55:42

2008-12-04 Jukka Pietarinen <jukka.pietarinen@…>

  • ChangeLog?, Makefile.am, configure.ac, preinstall.am, shared/cache/cache.c, shared/cache/cache_.h, shared/misc/memcpy.c: New files.
  • Property mode set to 100644
File size: 416 bytes
RevLine 
[74c6f36]1/*
2 *  C library memcpy routine
3 *
4 *  This routine shall get code to optimize performance on NIOS II
5 *
6 *  The routine is placed in this source directory to ensure that it
7 *  is picked up by all applications.
8 *
9 *  $Id$
10 */
11
12#include <string.h>
13
14void *
15memcpy(void *s1, const void *s2, size_t n)
16{
17  char *p1 = s1;
18  const char *p2 = s2;
19  size_t left = n;
20
21  while(left > 0) *(p1++) = *(p2++);
22    return s1;
23}
Note: See TracBrowser for help on using the repository browser.