[Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

Eric Anholt eric at anholt.net
Wed Jan 7 15:30:53 PST 2015


Jason Ekstrand <jason at jlekstrand.net> writes:

> This way the basics of the FNV-a1 hash can be reused to easily create other
> hashing functions.

I was slightly worried that the static const int might end up landing
in each .o file, but it apparently doesn't.

I'd rather keep things lower case, like we do with other abbreviations
(_mesa_reference_vao(), _mesa_is_gles()).  But the idea is good, and
with the case changed,

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150107/adaf8953/attachment.sig>


More information about the mesa-dev mailing list