URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
|
|
/* Prevent spurious test failures on 16-bit targets. */
|
/* Prevent spurious test failures on 16-bit targets. */
|
#if __INT_MAX__ >= 2147483647L
|
#if __INT_MAX__ >= 2147483647L
|
|
|
extern int f (char *, int);
|
extern int f (char *, int);
|
|
|
void test (void)
|
void test (void)
|
{
|
{
|
char buffer[65536];
|
char buffer[65536];
|
char *bufptr;
|
char *bufptr;
|
char *bufend;
|
char *bufend;
|
int bytes;
|
int bytes;
|
|
|
bufptr = buffer;
|
bufptr = buffer;
|
bufend = buffer + sizeof(buffer) - 1;
|
bufend = buffer + sizeof(buffer) - 1;
|
|
|
while ((bytes = f (bufptr, bufend - bufptr)) > 0)
|
while ((bytes = f (bufptr, bufend - bufptr)) > 0)
|
bufptr += bytes;
|
bufptr += bytes;
|
}
|
}
|
|
|
#endif
|
#endif
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.