projects
/
platform
/
upstream
/
libsolv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.6.10
[platform/upstream/libsolv.git]
/
src
/
hash.h
diff --git
a/src/hash.h
b/src/hash.h
index
b3cfbde
..
1290afa
100644
(file)
--- a/
src/hash.h
+++ b/
src/hash.h
@@
-21,9
+21,6
@@
extern "C" {
/* value of a hash */
typedef unsigned int Hashval;
/* 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;
/* 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
/* compute bitmask for value
* returns smallest (2^n-1) > 2 * num
- *
+ *
* used for Hashtable 'modulo' operation
* used for Hashtable 'modulo' operation
- */
-static inline Hash
mask
+ */
+static inline Hash
val
mkmask(unsigned int num)
{
num *= 2;
mkmask(unsigned int num)
{
num *= 2;