mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
exec: introduce qemu_xxhash{2,4,5,6,7}
Before moving them all to include/qemu/xxhash.h. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e132fde25f
commit
c971d8fa73
4 changed files with 39 additions and 18 deletions
|
@ -105,7 +105,7 @@ static bool is_equal(const void *ap, const void *bp)
|
|||
|
||||
static uint32_t h(unsigned long v)
|
||||
{
|
||||
return tb_hash_func7(v, 0, 0, 0, 0);
|
||||
return qemu_xxhash2(v);
|
||||
}
|
||||
|
||||
static uint32_t hval(unsigned long v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue