| 41 | |
| 42 | |
| 43 | unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { |
| 44 | unsigned int h = seed ^ cast_uint(l); |
| 45 | for (; l > 0; l--) |
| 46 | h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); |
| 47 | return h; |
| 48 | } |
| 49 | |
| 50 | |
| 51 | unsigned int luaS_hashlongstr (TString *ts) { |
no outgoing calls
no test coverage detected