aboutsummaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorGerd Möllmann2024-04-23 16:42:35 +0200
committerGerd Möllmann2024-04-23 16:45:00 +0200
commitdb883bf642a1c63f0f7ff138d392d7b7a69bbb1a (patch)
tree36dcc047a7eb92e6f92bec611dce237550a2bdf3 /src/json.c
parent20f0385bc6ec2d202464db7bfbd9996acd37392b (diff)
downloademacs-db883bf642a1c63f0f7ff138d392d7b7a69bbb1a.tar.gz
emacs-db883bf642a1c63f0f7ff138d392d7b7a69bbb1a.zip
Use igc_hash in json.c
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index e8c40c5ca9f..57709f752fb 100644
--- a/src/json.c
+++ b/src/json.c
@@ -197,7 +197,13 @@ cleanup_symset_tables (struct symset_tbl *st)
197static inline uint32_t 197static inline uint32_t
198symset_hash (Lisp_Object sym, int bits) 198symset_hash (Lisp_Object sym, int bits)
199{ 199{
200 return knuth_hash (reduce_emacs_uint_to_hash_hash (XHASH (sym)), bits); 200 EMACS_UINT hash;
201#ifdef HAVE_MPS
202 hash = igc_hash (sym);
203#else
204 hash = XHASH (sym);
205#endif
206 return knuth_hash (reduce_emacs_uint_to_hash_hash (hash), bits);
201} 207}
202 208
203/* Enlarge the table used by a symset. */ 209/* Enlarge the table used by a symset. */