Lines Matching refs:mtf
287 bool Insert(uint64_t mtf, uint32_t value) { in Insert() argument
288 if (GetMtf(mtf).Insert(value)) { in Insert()
289 val_to_mtfs_[value].insert(mtf); in Insert()
297 bool Remove(uint64_t mtf, uint32_t value) { in Remove() argument
298 if (GetMtf(mtf).Remove(value)) { in Remove()
299 val_to_mtfs_[value].erase(mtf); in Remove()
302 assert(val_to_mtfs_[value].count(mtf) == 0); in Remove()
312 for (uint64_t mtf : mtfs_containing_value) { in RemoveFromAll() local
313 GetMtf(mtf).Remove(value); in RemoveFromAll()
321 bool RankFromValue(uint64_t mtf, uint32_t value, uint32_t* rank) { in RankFromValue() argument
322 return GetMtf(mtf).RankFromValue(value, rank); in RankFromValue()
327 bool ValueFromRank(uint64_t mtf, uint32_t rank, uint32_t* value) { in ValueFromRank() argument
328 return GetMtf(mtf).ValueFromRank(rank, value); in ValueFromRank()
332 uint32_t GetSize(uint64_t mtf) { return GetMtf(mtf).GetSize(); } in GetSize() argument
340 for (uint64_t mtf : mtfs_containing_value) { in Promote() local
341 GetMtf(mtf).Promote(value); in Promote()
346 void InsertOrPromote(uint64_t mtf, uint32_t value) { in InsertOrPromote() argument
347 if (!Insert(mtf, value)) { in InsertOrPromote()
348 GetMtf(mtf).Promote(value); in InsertOrPromote()
353 bool HasValue(uint64_t mtf, uint32_t value) { in HasValue() argument
354 return GetMtf(mtf).HasValue(value); in HasValue()