1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00

Use igc_hash for face cache

This commit is contained in:
Gerd Möllmann 2024-04-28 07:03:08 +02:00
parent 6309751ddd
commit b96b680523

View file

@ -4489,14 +4489,20 @@ hash_string_case_insensitive (Lisp_Object string)
static uintptr_t
lface_hash (Lisp_Object *v)
{
#ifdef HAVE_MPS
#define xhash(x) igc_hash (x)
#else
#define xhash(x) XHASH (x)
#endif
return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX])
^ hash_string_case_insensitive (v[LFACE_FOUNDRY_INDEX])
^ hash_string_case_insensitive (v[LFACE_FOREGROUND_INDEX])
^ hash_string_case_insensitive (v[LFACE_BACKGROUND_INDEX])
^ XHASH (v[LFACE_WEIGHT_INDEX])
^ XHASH (v[LFACE_SLANT_INDEX])
^ XHASH (v[LFACE_SWIDTH_INDEX])
^ XHASH (v[LFACE_HEIGHT_INDEX]));
^ xhash (v[LFACE_WEIGHT_INDEX])
^ xhash (v[LFACE_SLANT_INDEX])
^ xhash (v[LFACE_SWIDTH_INDEX])
^ xhash (v[LFACE_HEIGHT_INDEX]));
#undef xhash
}
#ifdef HAVE_WINDOW_SYSTEM