mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 04:45:48 +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
|
guint
|
||||||
g_double_hash (gconstpointer v)
|
g_double_hash (gconstpointer v)
|
||||||
{
|
{
|
||||||
return (guint) *(const gdouble*) v;
|
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user