#ifndef FIRM_ADT_HASHPTR_H
#define FIRM_ADT_HASHPTR_H
+#include "../begin.h"
+
#define _FIRM_FNV_OFFSET_BASIS 2166136261U
#define _FIRM_FNV_FNV_PRIME 16777619U
static inline unsigned _hash_combine(unsigned x, unsigned y)
{
- unsigned hash = _FIRM_FNV_TIMES_PRIME(_FIRM_FNV_OFFSET_BASIS);
- hash ^= x;
- hash = _FIRM_FNV_TIMES_PRIME(hash);
- hash ^= y;
- return hash;
+ unsigned hash = _FIRM_FNV_TIMES_PRIME(_FIRM_FNV_OFFSET_BASIS);
+ hash ^= x;
+ hash = _FIRM_FNV_TIMES_PRIME(hash);
+ hash ^= y;
+ return hash;
}
#ifdef _MSC_VER
*/
#define HASH_COMBINE(a,b) _hash_combine(a, b)
+#include "../end.h"
+
#endif