X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fadt%2Fhashptr.h;h=80cde9580938a9a12a3be764e5249328f3a31f71;hb=eb82a99086ca6379127315bbe25f7c2c89e26297;hp=6826041cb8a01f58a65f2bcf2625b36d2e6d8e16;hpb=aee537d3a7765763d1d5040c9a16faf3396133b9;p=libfirm diff --git a/include/libfirm/adt/hashptr.h b/include/libfirm/adt/hashptr.h index 6826041cb..80cde9580 100644 --- a/include/libfirm/adt/hashptr.h +++ b/include/libfirm/adt/hashptr.h @@ -26,6 +26,8 @@ #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 @@ -83,11 +85,11 @@ static inline unsigned hash_ptr(const void *ptr) 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 @@ -102,4 +104,6 @@ static inline unsigned _hash_combine(unsigned x, unsigned y) */ #define HASH_COMBINE(a,b) _hash_combine(a, b) +#include "../end.h" + #endif