| 8 | #define FNV32_PRIME ((unsigned int) 0x01000193) |
| 9 | |
| 10 | unsigned int strhash(const char *str) |
| 11 | { |
| 12 | unsigned int c, hash = FNV32_BASE; |
| 13 | while ((c = (unsigned char) *str++)) |
| 14 | hash = (hash * FNV32_PRIME) ^ c; |
| 15 | return hash; |
| 16 | } |
| 17 | |
| 18 | unsigned int strihash(const char *str) |
| 19 | { |
no outgoing calls