Minor hashing refactoring.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Feb 2013 22:42:33 +0000 (14:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Feb 2013 22:42:33 +0000 (14:42 -0800)
commiteff1c1900f47ec5dfb6d435325b366362d09d2db
tree9db491fe10a82b95f493b8ae6cdfc3d56103b2fa
parent4dde2087c47f0ef2a97c3b39d89b94b8a47baf37
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.
src/ChangeLog
src/fns.c
src/lisp.h
src/profiler.c