URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 106 |
Rev 579 |
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
/* This function is in the public domain. --Per Bothner. */
|
/* This function is in the public domain. --Per Bothner. */
|
#include <ansidecl.h>
|
#include <ansidecl.h>
|
#ifdef __STDC__
|
#ifdef __STDC__
|
#include <stddef.h>
|
#include <stddef.h>
|
#else
|
#else
|
#define size_t unsigned long
|
#define size_t unsigned long
|
#endif
|
#endif
|
|
|
PTR
|
PTR
|
memmove (s1, s2, n)
|
memmove (s1, s2, n)
|
PTR s1;
|
PTR s1;
|
const PTR s2;
|
const PTR s2;
|
size_t n;
|
size_t n;
|
{
|
{
|
bcopy (s2, s1, n);
|
bcopy (s2, s1, n);
|
return s1;
|
return s1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.