- // We store a cluster of 4 TTEntry for each position and newSize is
- // the maximum number of storable positions
- while ((2 * newSize) * 4 * (sizeof(TTEntry)) <= (mbSize << 20))
+ // We store a cluster of ClusterSize number of TTEntry for each position
+ // and newSize is the maximum number of storable positions.
+ while ((2 * newSize) * ClusterSize * (sizeof(TTEntry)) <= (mbSize << 20))