Home
last modified time | relevance | path

Searched refs:mHashCapacity (Results 1 – 1 of 1) sorted by relevance

/aosp12/frameworks/base/media/jni/soundpool/
H A DStreamManager.h213 : mHashCapacity(hashCapacity) in PerfectHash()
233 ((atPosition ^ oldKey) & (mHashCapacity - 1)) != 0) { // stale key entry
242 for (; tries < mHashCapacity; ++tries) {
250 ((atPosition ^ mNextKey) & (mHashCapacity - 1)) != 0) { // stale key entry
254 LOG_ALWAYS_FATAL_IF(tries == mHashCapacity, "hash table overflow!");
260 std::atomic<V> &getValue(K key) { return mK2V[key & (mHashCapacity - 1)]; } in getValue()
261 const std::atomic_int32_t &getValue(K key) const { return mK2V[key & (mHashCapacity - 1)]; } in getValue()
265 const size_t mHashCapacity; // size of mK2V no lock needed. variable