| 393 | |
| 394 | #ifdef _WIN32 |
| 395 | unsigned long long String_hashFnv1a(const char* str) { |
| 396 | unsigned long long hash = 1469598103934665603ULL; |
| 397 | while (str && *str) { |
| 398 | hash ^= (unsigned char)*str++; |
| 399 | hash *= 1099511628211ULL; |
| 400 | } |
| 401 | return hash; |
| 402 | } |
| 403 | |
| 404 | unsigned long long String_hashCombine(unsigned long long hash, const char* str) { |
| 405 | while (str && *str) { |
| 406 | hash ^= (unsigned char)*str++; |
| 407 | hash *= 1099511628211ULL; |
| 408 | } |
no outgoing calls
no test coverage detected