Browse Source

We didn't need WIDTH static members after all

Ian Goldberg 2 years ago
parent
commit
3c7d696275
2 changed files with 0 additions and 9 deletions
  1. 0 3
      cell.cpp
  2. 0 6
      types.hpp

+ 0 - 3
cell.cpp

@@ -9,9 +9,6 @@ struct Cell {
     RegXS pointers;
     RegXS value;
 
-    // The width (the number of RegAS and RegXS entries) of this type
-    static const size_t WIDTH = 3;
-
     void dump() const {
         printf("[%016lx %016lx %016lx]", key.share(), pointers.share(),
             value.share());

+ 0 - 6
types.hpp

@@ -48,9 +48,6 @@ using nbits_t = uint8_t;
 struct RegAS {
     value_t ashare;
 
-    // The basic types just have one value
-    static const size_t WIDTH = 1;
-
     RegAS() : ashare(0) {}
 
     inline value_t share() const { return ashare; }
@@ -182,9 +179,6 @@ struct RegBS {
 struct RegXS {
     value_t xshare;
 
-    // The basic types just have one value
-    static const size_t WIDTH = 1;
-
     RegXS() : xshare(0) {}
     RegXS(const RegBS &b) { xshare = b.bshare ? ~0 : 0; }