summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-06-04 12:24:58 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2018-06-04 12:24:58 -0700
commitb9975845fffc087c138df4934831f9ef40e61ad6 (patch)
tree40af34a6383d3a8d91797c8964f7ce041b2b4f52 /node
parent91a22a686a17f8cedc58690592a84f5d4a3ab5e0 (diff)
parentb22405b64b0b26fa1d5d8932cf212e4ae7760632 (diff)
downloadinfinitytier-b9975845fffc087c138df4934831f9ef40e61ad6.tar.gz
infinitytier-b9975845fffc087c138df4934831f9ef40e61ad6.zip
Merge branch 'rtnetlink' into edge
Diffstat (limited to 'node')
-rw-r--r--node/Hashtable.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Hashtable.hpp b/node/Hashtable.hpp
index 777e88dc..46d5c007 100644
--- a/node/Hashtable.hpp
+++ b/node/Hashtable.hpp
@@ -399,6 +399,10 @@ private:
{
return ((unsigned long)i * (unsigned long)0x9e3779b1);
}
+ static inline unsigned long _hc(const int i)
+ {
+ return ((unsigned long)i * (unsigned long)0x9e3379b1);
+ }
inline void _grow()
{