mirror of
https://github.com/reactos/ccache.git
synced 2024-11-27 13:40:32 +00:00
Add hash_from_int function
This commit is contained in:
parent
d4f478176e
commit
c45bf6090d
@ -30,6 +30,12 @@ hash_from_string(void *str)
|
||||
return murmurhashneutral2(str, strlen((const char *)str), 0);
|
||||
}
|
||||
|
||||
unsigned
|
||||
hash_from_int(int i)
|
||||
{
|
||||
return murmurhashneutral2(&i, sizeof(int), 0);
|
||||
}
|
||||
|
||||
int
|
||||
strings_equal(void *str1, void *str2)
|
||||
{
|
||||
|
@ -11,6 +11,7 @@ struct file_hash
|
||||
};
|
||||
|
||||
unsigned hash_from_string(void *str);
|
||||
unsigned hash_from_int(int i);
|
||||
int strings_equal(void *str1, void *str2);
|
||||
int file_hashes_equal(struct file_hash *fh1, struct file_hash *fh2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user