summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pstring.h')
-rw-r--r--src/lib/netlist/plib/pstring.h26
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_ */