URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 532 |
Rev 715 |
Line 33... |
Line 33... |
#endif
|
#endif
|
|
|
#ifndef strcmp
|
#ifndef strcmp
|
int strcmp (const char *s1, const char *s2)
|
int strcmp (const char *s1, const char *s2)
|
{
|
{
|
char x;
|
while (*s1 && *s2 && *s1 == *s2) {
|
|
s1++;
|
while ((x = *s1++) && (x == *s2++));
|
s2++;
|
|
}
|
return (*(unsigned char *) s1) - (*(unsigned char *) s2);
|
return (*(unsigned char *) s1) - (*(unsigned char *) s2);
|
}
|
}
|
#endif
|
#endif
|
|
|
#define DETECTNULL(X) (((X) - 0x01010101) & ~(X) & 0x80808080)
|
#define DETECTNULL(X) (((X) - 0x01010101) & ~(X) & 0x80808080)
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.