Home | History | Annotate | Download | only in src

Lines Matching defs:kValuebits

44 // kKeybits - kHashbits, and the values are bit strings of length kValuebits.
65 // for a cache entry is (kKeybits - kHashbits) + kValuebits. Suppose
66 // kKeybits + kValuebits is 43. Then it probably makes sense to
69 // On the other hand, suppose kKeybits = kValuebits = 64. Then
130 // 2^kKeybits and the values to be less than 2^kValuebits. The size of
146 static const int kValuebits = 7;
147 static const bool kUseWholeKeys = kKeybits + kValuebits <= 8 * sizeof(T);
151 COMPILE_ASSERT(kValuebits <= sizeof(V) * 8, value_size);
153 COMPILE_ASSERT(kKeybits - kHashbits + kValuebits <= kTbits,
198 // part of the key, and kValuebits determines where in the entry to
202 return static_cast<T>(k) << kValuebits;
204 const int shift = kHashbits - kValuebits;
205 // Assume kHashbits >= kValuebits. It'd be easy to lift this assumption.
217 (entry >> kValuebits == key) :
228 static const T kUpperMask = N_ONES_(T, kUpperbits) << kValuebits;
231 static const V kValueMask = N_ONES_(V, kValuebits);