#include "structs.h"
#include "decomposeorderresolver.h"
-#define HASHNEXT(hash, newval) {hash+=newval; hash += hash << 10; hash ^= hash >>6;}
-#define HASHFINAL(hash) {hash += hash <<3; hash ^= hash >> 11; hash += hash << 15;}
+#define HASHNEXT(hash, newval) {hash += newval; hash += hash << 10; hash ^= hash >> 6;}
+#define HASHFINAL(hash) {hash += hash << 3; hash ^= hash >> 11; hash += hash << 15;}
unsigned int table_entry_hash_function(TableEntry *This) {
unsigned int h = 0;
}
unsigned int order_edge_hash_function(OrderEdge *This) {
- uint hash=0;
+ uint hash = 0;
HASHNEXT(hash, (uint)(uintptr_t) This->sink);
HASHNEXT(hash, (uint)(uintptr_t) This->source);
HASHFINAL(hash);
}
unsigned int order_pair_hash_function(OrderPair *This) {
- uint hash=0;
+ uint hash = 0;
HASHNEXT(hash, This->first);
HASHNEXT(hash, This->second);
HASHFINAL(hash);
}
unsigned int doredge_hash_function(DOREdge *key) {
- uint hash=0;
+ uint hash = 0;
HASHNEXT(hash, (uint) key->newfirst);
HASHNEXT(hash, (uint) key->newsecond);
HASHFINAL(hash);