URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 222 |
Rev 343 |
Line 40... |
Line 40... |
asm("l.sys 201");
|
asm("l.sys 201");
|
return cycles;
|
return cycles;
|
}
|
}
|
|
|
/* Standard function for filling memory with a constant byte. */
|
/* Standard function for filling memory with a constant byte. */
|
void *memset(void *dst, int c, int size)
|
void *memset(void *dst, int c, size_t size)
|
{
|
{
|
char *tmp = dst;
|
char *tmp = dst;
|
|
|
for(;tmp && (tmp < (char *)dst + size); tmp++)
|
for(;tmp && (tmp < (char *)dst + size); tmp++)
|
*(char *)tmp = (char)c;
|
*(char *)tmp = (char)c;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.