URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1375 |
Rev 1382 |
Line 575... |
Line 575... |
while (!(x & 1))
|
while (!(x & 1))
|
x >>= 1;
|
x >>= 1;
|
return x == 1;
|
return x == 1;
|
}
|
}
|
|
|
|
int log2 (int x) {
|
|
int log=-1;
|
|
while (x)
|
|
{
|
|
x >>= 1;
|
|
log++;
|
|
}
|
|
return log;
|
|
}
|
|
|
void reg_config_secs(void)
|
void reg_config_secs(void)
|
{
|
{
|
reg_config_param(reg_config_sec("base", NULL, NULL), "include", paramt_str,
|
reg_config_param(reg_config_sec("base", NULL, NULL), "include", paramt_str,
|
base_include);
|
base_include);
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.