URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 224 |
Rev 381 |
Line 19... |
Line 19... |
|
|
#define NUM_RUNS (20)
|
#define NUM_RUNS (20)
|
#define DLX_FREQ 200 /* in MHz */
|
#define DLX_FREQ 200 /* in MHz */
|
#define PROC_6 0
|
#define PROC_6 0
|
|
|
|
#ifndef strcpy
|
char *strcpy (char *dst0, char *src0)
|
char *strcpy (char *dst0, char *src0)
|
{
|
{
|
char *s = dst0;
|
char *s = dst0;
|
|
|
while ((*dst0++ = *src0++));
|
while ((*dst0++ = *src0++));
|
|
|
return s;
|
return s;
|
}
|
}
|
|
#endif
|
|
|
|
#ifndef strcmp
|
int strcmp (const char *s1, const char *s2)
|
int strcmp (const char *s1, const char *s2)
|
{
|
{
|
char x;
|
char x;
|
|
|
while ((x = *s1++) && (x == *s2++));
|
while ((x = *s1++) && (x == *s2++));
|
|
|
return (*(unsigned char *) s1) - (*(unsigned char *) s2);
|
return (*(unsigned char *) s1) - (*(unsigned char *) s2);
|
}
|
}
|
|
#endif
|
|
|
#define DETECTNULL(X) (((X) - 0x01010101) & ~(X) & 0x80808080)
|
#define DETECTNULL(X) (((X) - 0x01010101) & ~(X) & 0x80808080)
|
#define UNALIGNED(X, Y) \
|
#define UNALIGNED(X, Y) \
|
(((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
|
(((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.