document hash collision resolutions
authorZack Rusin <zack@tungstengraphics.com>
Thu, 13 Mar 2008 01:42:33 +0000 (21:42 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Thu, 13 Mar 2008 01:49:06 +0000 (21:49 -0400)
src/gallium/auxiliary/cso_cache/cso_hash.h

index d5bca9d..84b45a5 100644 (file)
  *
  **************************************************************************/
 
+/**
+ This file provides a hash implementation that is capable of dealing
+ with collisions. It stores colliding entries in linked list. All
+ functions operating on the hash return an iterator. The iterator
+ itself points to the collision list. If there wasn't any collision
+ the list will have just one entry, otherwise client code should
+ iterate over the entries to find the exact entry among ones that
+ had the same key (e.g. memcmp could be used on the data to check
+ that)
+*/
  /*
   * Authors:
   *   Zack Rusin <zack@tungstengraphics.com>