mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Optimize g_double_hash implementation
This commit is contained in:
parent
f0dd96c287
commit
dd1f4f709e
@ -2531,5 +2531,5 @@ g_double_equal (gconstpointer v1,
|
||||
guint
|
||||
g_double_hash (gconstpointer v)
|
||||
{
|
||||
return (guint) *(const gdouble*) v;
|
||||
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user