OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [sim-config.c] - Diff between revs 1375 and 1382

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);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.