Merge gblack@m5.eecs.umich.edu:/bk/multiarch
into ewok.(none):/home/gblack/m5/multiarch --HG-- extra : convert_revision : ae574fbee484019d318ef25034bd4a7e18354aab
This commit is contained in:
commit
5102de8321
1 changed files with 3 additions and 1 deletions
|
@ -30,8 +30,10 @@
|
|||
#define SCHED_LIST_HH
|
||||
|
||||
#include <list>
|
||||
#include "base/intmath.hh"
|
||||
#include "base/misc.hh"
|
||||
|
||||
|
||||
// Any types you use this class for must be covered here...
|
||||
namespace {
|
||||
void ClearEntry(int &i) { i = 0; };
|
||||
|
@ -80,7 +82,7 @@ SchedList<T>::SchedList(unsigned _size)
|
|||
size = _size;
|
||||
|
||||
// size must be a power of two
|
||||
if (size & (size-1)) {
|
||||
if (!isPowerOf2(size)) {
|
||||
panic("SchedList: size must be a power of two");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue