diff options
| author | Paul Eggert | 2013-02-09 14:42:33 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-02-09 14:42:33 -0800 |
| commit | eff1c1900f47ec5dfb6d435325b366362d09d2db (patch) | |
| tree | 9db491fe10a82b95f493b8ae6cdfc3d56103b2fa /src/profiler.c | |
| parent | 4dde2087c47f0ef2a97c3b39d89b94b8a47baf37 (diff) | |
| download | emacs-eff1c1900f47ec5dfb6d435325b366362d09d2db.tar.gz emacs-eff1c1900f47ec5dfb6d435325b366362d09d2db.zip | |
Minor hashing refactoring.
* fns.c (SXHASH_REDUCE): Move to lisp.h.
(sxhash_float): Return EMACS_UINT, for consistency with the other
hash functions.
* lisp.h (INTMASK): Now a macro, since SXHASH_REDUCE is now a
non-static inline function and therefore can't use static vars.
(SXHASH_REDUCE): Move here from fns.c, and make it inline.
* profiler.c (hashfn_profiler): Use SXHASH_REDUCE, to be consistent
with the other hash functions.
Diffstat (limited to 'src/profiler.c')
| -rw-r--r-- | src/profiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiler.c b/src/profiler.c index f6503cf182e..85d9c1ca88a 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -560,7 +560,7 @@ hashfn_profiler (struct hash_table_test *ht, Lisp_Object bt) | |||
| 560 | ? XHASH (XCDR (XCDR (f))) : XHASH (f)); | 560 | ? XHASH (XCDR (XCDR (f))) : XHASH (f)); |
| 561 | hash = sxhash_combine (hash, hash1); | 561 | hash = sxhash_combine (hash, hash1); |
| 562 | } | 562 | } |
| 563 | return (hash & INTMASK); | 563 | return SXHASH_REDUCE (hash); |
| 564 | } | 564 | } |
| 565 | else | 565 | else |
| 566 | return XHASH (bt); | 566 | return XHASH (bt); |