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

View File

@ -2490,7 +2490,7 @@ g_int64_equal (gconstpointer v1,
guint
g_int64_hash (gconstpointer v)
{
return (guint) *(const gint64*) v;
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
}
/**