Deleted Added
sdiff udiff text old ( 12334:e0ab29a34764 ) new ( 14037:a1e12c851596 )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34
35#include <bitset>
36#include <cassert>
37#include <iostream>
38
39#include "base/logging.hh"
40#include "mem/ruby/common/TypeDefines.hh"
41
42// Change for systems with more than 64 controllers of a particular type.
43const int NUMBER_BITS_PER_SET = 64;
44
45class Set
46{
47 private:
48 // Number of bits in use in this set.
49 int m_nSize;
50 std::bitset<NUMBER_BITS_PER_SET> bits;
51
52 public:
53 Set() : m_nSize(0) {}
54
55 Set(int size) : m_nSize(size)
56 {

--- 175 unchanged lines hidden ---