mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
util: update hash type comments
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
531feec9dc
commit
b3721cd230
1 changed files with 5 additions and 5 deletions
|
|
@ -385,12 +385,12 @@ _mesa_hash_table_random_entry(struct hash_table *ht,
|
|||
|
||||
|
||||
/**
|
||||
* Quick FNV-1 hash implementation based on:
|
||||
* Quick FNV-1a hash implementation based on:
|
||||
* http://www.isthe.com/chongo/tech/comp/fnv/
|
||||
*
|
||||
* FNV-1 is not be the best hash out there -- Jenkins's lookup3 is supposed to
|
||||
* be quite good, and it probably beats FNV. But FNV has the advantage that
|
||||
* it involves almost no code. For an improvement on both, see Paul
|
||||
* FNV-1a is not be the best hash out there -- Jenkins's lookup3 is supposed
|
||||
* to be quite good, and it probably beats FNV. But FNV has the advantage
|
||||
* that it involves almost no code. For an improvement on both, see Paul
|
||||
* Hsieh's http://www.azillionmonkeys.com/qed/hash.html
|
||||
*/
|
||||
uint32_t
|
||||
|
|
@ -408,7 +408,7 @@ _mesa_hash_data(const void *data, size_t size)
|
|||
return hash;
|
||||
}
|
||||
|
||||
/** FNV-1 string hash implementation */
|
||||
/** FNV-1a string hash implementation */
|
||||
uint32_t
|
||||
_mesa_hash_string(const char *key)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue