ruby: added random seed option to config scripts
[gem5.git] / src / mem / ruby / config / util.rb
1
2 def log_int(n)
3 assert(n.is_a?(Fixnum), "log_int takes a number for an argument")
4 counter = 0
5 while n >= 2 do
6 counter += 1
7 n = n >> 1
8 end
9 return counter
10 end