diff options
| author | Gerd Möllmann | 2024-04-23 16:42:35 +0200 |
|---|---|---|
| committer | Gerd Möllmann | 2024-04-23 16:45:00 +0200 |
| commit | db883bf642a1c63f0f7ff138d392d7b7a69bbb1a (patch) | |
| tree | 36dcc047a7eb92e6f92bec611dce237550a2bdf3 /src/json.c | |
| parent | 20f0385bc6ec2d202464db7bfbd9996acd37392b (diff) | |
| download | emacs-db883bf642a1c63f0f7ff138d392d7b7a69bbb1a.tar.gz emacs-db883bf642a1c63f0f7ff138d392d7b7a69bbb1a.zip | |
Use igc_hash in json.c
Diffstat (limited to 'src/json.c')
| -rw-r--r-- | src/json.c | 8 |
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) | |||
| 197 | static inline uint32_t | 197 | static inline uint32_t |
| 198 | symset_hash (Lisp_Object sym, int bits) | 198 | symset_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. */ |