OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_68/] [or1ksim/] [testbench/] [uos/] [uos.c] - Diff between revs 222 and 343

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;

powered by: WebSVN 2.1.0

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