URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
typedef struct
|
typedef struct
|
{
|
{
|
int end;
|
int end;
|
int term;
|
int term;
|
}
|
}
|
jpc_enc_pass_t;
|
jpc_enc_pass_t;
|
void foo(int numpasses, jpc_enc_pass_t *p)
|
void foo(int numpasses, jpc_enc_pass_t *p)
|
{
|
{
|
jpc_enc_pass_t *pass;
|
jpc_enc_pass_t *pass;
|
jpc_enc_pass_t *termpass;
|
jpc_enc_pass_t *termpass;
|
for (pass = p; pass != termpass; ++pass)
|
for (pass = p; pass != termpass; ++pass)
|
if (!pass->term)
|
if (!pass->term)
|
{
|
{
|
termpass = pass;
|
termpass = pass;
|
while (termpass - pass < numpasses && !termpass->term)
|
while (termpass - pass < numpasses && !termpass->term)
|
++termpass;
|
++termpass;
|
pass->end = termpass->end;
|
pass->end = termpass->end;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.