============ Com_HashKey ============ */
| 648 | ============ |
| 649 | */ |
| 650 | int Com_HashKey(char *string, int maxlen) { |
| 651 | int hash, i; |
| 652 | |
| 653 | hash = 0; |
| 654 | for (i = 0; i < maxlen && string[i] != '\0'; i++) { |
| 655 | hash += string[i] * (119 + i); |
| 656 | } |
| 657 | hash = (hash ^ (hash >> 10) ^ (hash >> 20)); |
| 658 | return hash; |
| 659 | } |
| 660 | |
| 661 | /* |
| 662 | ================ |
no outgoing calls
no test coverage detected