diff options
author | 2015-07-29 08:34:21 +0200 | |
---|---|---|
committer | 2015-07-29 08:34:21 +0200 | |
commit | 1b452e3bfb48e9c77e705a60ab285c382d457e8a (patch) | |
tree | ec86ee0e176d53492a6f034a473c728cc6896ad7 /src/emu/netlist/plib/plists.h | |
parent | b038bdab5ba511f2af2c23e24b3508062a42b3b3 (diff) |
Cleanups and version bumpmame0164
Diffstat (limited to 'src/emu/netlist/plib/plists.h')
-rw-r--r-- | src/emu/netlist/plib/plists.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/emu/netlist/plib/plists.h b/src/emu/netlist/plib/plists.h index 8f4914145b5..bbb553eb12a 100644 --- a/src/emu/netlist/plib/plists.h +++ b/src/emu/netlist/plib/plists.h @@ -657,7 +657,7 @@ private: #if 0 unsigned hash(const pstring &v) const { - /* Fowler–Noll–Vo hash - FNV-1 */ + /* Fowler???Noll???Vo hash - FNV-1 */ const char *string = v.cstr(); unsigned result = 2166136261; for (UINT8 c = *string++; c != 0; c = *string++) @@ -671,17 +671,17 @@ private: /* jenkins one at a time algo */ unsigned result = 0; const char *string = v.cstr(); - while (*string) - { - result += *string; - string++; - result += (result << 10); - result ^= (result >> 6); - } - result += (result << 3); - result ^= (result >> 11); - result += (result << 15); - return result; + while (*string) + { + result += *string; + string++; + result += (result << 10); + result ^= (result >> 6); + } + result += (result << 3); + result ^= (result >> 11); + result += (result << 15); + return result; } #endif #endif |