| 77 | } |
| 78 | |
| 79 | uint32_t hash_string(const char* s) /* AGR 600 */ |
| 80 | { |
| 81 | uint32_t h; |
| 82 | |
| 83 | h = 0; |
| 84 | while (*s != 0) |
| 85 | { |
| 86 | h = ((h << 8) | (h >> 24)) ^ (*s); |
| 87 | s++; |
| 88 | } |
| 89 | return h; |
| 90 | } |
| 91 | |
| 92 | /* ----------------------------------------- |
| 93 | Hashing symbols using their basic info |
no outgoing calls
no test coverage detected