Add macro M_HASH_FINAL

This commit is contained in:
Patrick Pelissier committed 2017-08-17 20:22:01 +02:00
1 parent 23d29aa981
commit ffc383884d
7 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -668,7 +668,8 @@
#endif
#define M_HASH_DECL(hash) size_t hash = M_HASH_INIT ^ M_HASH_SEED
#define M_HASH_UP(hash,h) hash = M_HASH_CALC(hash, (h))
#define M_HASH_UP(hash,h) do { hash = M_HASH_CALC(hash, (h)); } while (0)
#define M_HASH_FINAL(hash) (hash)
/* Safe, efficient, and portable Rotate:
It should be recognized by any compiler and generate a single roll instruction */