Lines Matching refs:Depth
47 size_t Depth;
51 Scoreboard():Data(NULL), Depth(0), Head(0) { }
56 size_t getDepth() const { return Depth; }
58 // Depth is expected to be a power-of-2.
59 assert(Depth && !(Depth & (Depth - 1)) &&
62 return Data[(Head + idx) & (Depth-1)];
67 Depth = d;
68 Data = new unsigned[Depth];
71 memset(Data, 0, Depth * sizeof(Data[0]));
76 Head = (Head + 1) & (Depth-1);
80 Head = (Head - 1) & (Depth-1);