| 5 | #include <types.h> |
| 6 | |
| 7 | U32 xStrHash(const char* str) |
| 8 | { |
| 9 | U32 hash = 0; |
| 10 | U32 i; |
| 11 | |
| 12 | while (i = *str, i != NULL) |
| 13 | { |
| 14 | hash = (i - (i & (S32)i >> 1 & 0x20) & 0xff) + hash * 0x83; |
| 15 | str++; |
| 16 | } |
| 17 | |
| 18 | return hash; |
| 19 | } |
| 20 | |
| 21 | U32 xStrHash(const char* str, size_t size) |
| 22 | { |
no outgoing calls