| Previous | 15994 Revisions | Next |
| r9762 Sunday 12th December, 2010 at 09:13:50 UTC by Robbbert |
|---|
| [DEBUGGER] Fixed bug: symlist z80 crashes emulator (from 140u1). |
| [src/lib/util] | tagmap.h |
| r9761 | r9762 | |
|---|---|---|
| 167 | 167 | UINT32 hash = (string[0] << 5) + string[1]; |
| 168 | 168 | char c; |
| 169 | 169 | |
| 170 | string += 2; | |
| 171 | while ((c = *string++) != 0) | |
| 172 | hash = ((hash << 5) | (hash >> 27)) + c; | |
| 170 | if (strlen(string) > 2) | |
| 171 | { | |
| 172 | string += 2; | |
| 173 | while ((c = *string++) != 0) | |
| 174 | hash = ((hash << 5) | (hash >> 27)) + c; | |
| 175 | } | |
| 176 | ||
| 173 | 177 | return hash; |
| 174 | 178 | } |
| 175 | 179 |
| Previous | 15994 Revisions | Next |