OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [lib/] [lib-utils.c] - Diff between revs 393 and 489

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 393 Rev 489
Line 4... Line 4...
 
 
/* memcpy */
/* memcpy */
 
 
void* memcpy( void* s1, void* s2, size_t n)
void* memcpy( void* s1, void* s2, size_t n)
{
{
  char* r1 = s1;
  char* r1 = (char *) s1;
  const char* r2 = s2;
  const char* r2 =  (const char*) s2;
#ifdef __BCC__
#ifdef __BCC__
  while (n--) {
  while (n--) {
    *r1++ = *r2++;
    *r1++ = *r2++;
  }
  }
#else
#else

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.