source: rtems/c/src/lib/libcpu/lm32/shared/misc/memcpy.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 404 bytes
Line 
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
10#include <string.h>
11
12void *
13memcpy(void *s1, const void *s2, size_t n)
14{
15  char *p1 = s1;
16  const char *p2 = s2;
17  size_t left = n;
18
19  while(left > 0) *(p1++) = *(p2++);
20    return s1;
21}
Note: See TracBrowser for help on using the repository browser.