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 338 |
void foo(void *);
|
void foo(void *);
|
void bar(void *);
|
void bar(void *);
|
void ndisc_fill_addr_option(unsigned char *opt, int data_len,
|
void ndisc_fill_addr_option(unsigned char *opt, int data_len,
|
unsigned short addr_type)
|
unsigned short addr_type)
|
{
|
{
|
int pad;
|
int pad;
|
if (addr_type == 32)
|
if (addr_type == 32)
|
pad = 2;
|
pad = 2;
|
else
|
else
|
pad = 0;
|
pad = 0;
|
__builtin_memset(opt + 2, 0, pad);
|
__builtin_memset(opt + 2, 0, pad);
|
opt += pad;
|
opt += pad;
|
__builtin_constant_p(data_len) ? foo (opt+2) : bar (opt+2);
|
__builtin_constant_p(data_len) ? foo (opt+2) : bar (opt+2);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.