diff options
author | 2016-06-25 00:20:17 +0200 | |
---|---|---|
committer | 2016-06-25 00:20:17 +0200 | |
commit | af750f143cd6d36f377fb22f214970553f278a09 (patch) | |
tree | 4e867df3d7f0af42fcc340a696081cd6de50c646 /src/lib/netlist/plib/pstring.h | |
parent | 798bb7956756fcb8f356dcaeeaf7fe1e31dab8da (diff) |
Srcclean on netlist files. Avoid the merge massacre. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstring.h')
-rw-r--r-- | src/lib/netlist/plib/pstring.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/netlist/plib/pstring.h b/src/lib/netlist/plib/pstring.h index 2356acec3d0..ba5527d184e 100644 --- a/src/lib/netlist/plib/pstring.h +++ b/src/lib/netlist/plib/pstring.h @@ -380,19 +380,19 @@ private: // custom specialization of std::hash can be injected in namespace std namespace std { - template<> struct hash<pstring> - { - typedef pstring argument_type; - typedef std::size_t result_type; - result_type operator()(argument_type const& s) const - { - const pstring::mem_t *string = s.cstr(); - result_type result = 5381; - for (pstring::mem_t c = *string; c != 0; c = *string++) - result = ((result << 5) + result ) ^ (result >> (32 - 5)) ^ c; - return result; - } - }; + template<> struct hash<pstring> + { + typedef pstring argument_type; + typedef std::size_t result_type; + result_type operator()(argument_type const& s) const + { + const pstring::mem_t *string = s.cstr(); + result_type result = 5381; + for (pstring::mem_t c = *string; c != 0; c = *string++) + result = ((result << 5) + result ) ^ (result >> (32 - 5)) ^ c; + return result; + } + }; } #endif /* PSTRING_H_ */ |