summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_cache.c
AgeCommit message (Collapse)Author
2011-03-09util: add ensure_sanity checks, fix a bugKeith Whitwell
Add ensure_sanity checks. Fix a bug which caused us to misplace entries adding to a full cache.
2011-03-09util: improve cache collision behaviourKeith Whitwell
Add linear probing on collisions. Expand entry array by a fixed scale (currently 2) to help avoid collisions. Use a LRU approach to ensure that the number of entries stored in the cache doesn't exceed the requested size.
2011-03-09util: Add remove to util_cacheAlex Corscadden
I need to be able to remove entries from util_cache caches. This change enables that functionality.
2010-04-21gallium/util: Fix deviation calculation in u_cache.Vinson Lee
The approximate deviation calculation was using the entire cache's total instead of each cache entry's total.
2009-07-06util: fix possible null pointer usageZack Rusin
found by the clang static analyzer
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2008-12-22gallium: const correctness.José Fonseca
2008-12-19gallium: Simple and efficient cache.José Fonseca
Fixed size hash table. Collisions are handled by simply destroying the previous entry. It hasn't received much testing yet.