Hash: mem_hash doesn't modify the memory, declared constant
This commit is contained in:
parent
d73c4ac869
commit
0642fb4d45
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ mem_hash_init(u64 *h)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
mem_hash_mix(u64 *h, void *p, uint s)
|
mem_hash_mix(u64 *h, const void *p, uint s)
|
||||||
{
|
{
|
||||||
const u64 multiplier = 0xb38bc09a61202731ULL;
|
const u64 multiplier = 0xb38bc09a61202731ULL;
|
||||||
const char *pp = p;
|
const char *pp = p;
|
||||||
|
@ -222,7 +222,7 @@ mem_hash_value(u64 *h)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint
|
static inline uint
|
||||||
mem_hash(void *p, uint s)
|
mem_hash(const void *p, uint s)
|
||||||
{
|
{
|
||||||
static u64 h;
|
static u64 h;
|
||||||
mem_hash_init(&h);
|
mem_hash_init(&h);
|
||||||
|
|
Loading…
Reference in a new issue