1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-05-08 06:56:52 +02:00

Optional optimization for g_int64_hash

This commit is contained in:
wszqkzqk 2022-10-01 08:37:31 +08:00 committed by Marco Trevisan (Treviño)
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);
} }
/** /**