filehash/ffdb_hash_func.c
unsigned int
__ffdb_log2 (unsigned int num)
{
  unsigned int i, limit;

  limit = 1;
  for (i = 0; limit < num; limit = limit << 1, i++)
    ;
  return i;
}
/**
 * A simple implementation of log2 on an integer
 */
A simple implementation of log2 on an integer
A simple implementation of log2 on an integer
unsigned int
__ffdb_log2 (unsigned int num)
{
  unsigned int i, limit;
  limit = 1;
  for (i = 0; limit < num; limit = limit << 1, i++)
    ;
  return i;
}
unsigned int __ffdb_log2 ( unsigned int num ) { unsigned int i , limit ; limit = 1 ; for ( i = 0 ; limit < num ; limit = limit << 1 , i ++ ) ; return i ; }
A simple implementation of log2 on an integer
A simple implementation of log2 on an integer