X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fhash.h;h=1290afa15bc7347819b707f56d229ddb026d272d;hb=8a7ffe4fc2b44b84fb045f80c1a016b3f200aa8b;hp=b3cfbde4a1f262c048aef0a2c0b83f64e52f4808;hpb=3db2728dba488463c5e8c63764a4ff7f2a1f4f1f;p=platform%2Fupstream%2Flibsolv.git diff --git a/src/hash.h b/src/hash.h index b3cfbde..1290afa 100644 --- a/src/hash.h +++ b/src/hash.h @@ -21,9 +21,6 @@ extern "C" { /* value of a hash */ typedef unsigned int Hashval; -/* mask for hash, used as modulo operator to ensure 'wrapping' of hash - values -> hash table */ -typedef unsigned int Hashmask; /* inside the hash table, Ids are stored. Hash maps: string -> hash -> Id */ typedef Id *Hashtable; @@ -77,10 +74,10 @@ relhash(Id name, Id evr, int flags) /* compute bitmask for value * returns smallest (2^n-1) > 2 * num - * + * * used for Hashtable 'modulo' operation - */ -static inline Hashmask + */ +static inline Hashval mkmask(unsigned int num) { num *= 2;