mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Optional optimization for g_int64_hash
This commit is contained in:
parent
dd1f4f709e
commit
c1af4b2b88
@ -2490,7 +2490,7 @@ g_int64_equal (gconstpointer v1,
|
|||||||
guint
|
guint
|
||||||
g_int64_hash (gconstpointer v)
|
g_int64_hash (gconstpointer v)
|
||||||
{
|
{
|
||||||
return (guint) *(const gint64*) v;
|
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user