URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -g" } */
|
/* { dg-options "-O1 -g" } */
|
extern int atoi (const char *);
|
extern int atoi (const char *);
|
extern int sprintf (char *, const char *, ...);
|
extern int sprintf (char *, const char *, ...);
|
void malloc_init() {
|
void malloc_init() {
|
char *cptr;
|
char *cptr;
|
char buf[1];
|
char buf[1];
|
int tmbd = atoi(cptr);
|
int tmbd = atoi(cptr);
|
if (tmbd > 0)
|
if (tmbd > 0)
|
tmbd = (tmbd <= 124) ? tmbd : 124;
|
tmbd = (tmbd <= 124) ? tmbd : 124;
|
else
|
else
|
tmbd = 0;
|
tmbd = 0;
|
sprintf(buf, "%d\n", tmbd);
|
sprintf(buf, "%d\n", tmbd);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.