From c1af4b2b886bd77d6d8857cf3f677edbc0d34a61 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Sat, 1 Oct 2022 08:37:31 +0800 Subject: [PATCH] Optional optimization for `g_int64_hash` --- glib/ghash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/ghash.c b/glib/ghash.c index fc15428a8..6c9514207 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -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); } /**