mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
(sxhash): As far as possible, merge calculation of
hash code for symbols and strings.
This commit is contained in:
parent
4211ee7d6c
commit
32bfb2d565
@ -5007,15 +5007,14 @@ sxhash (obj, depth)
|
||||
hash = XUINT (obj);
|
||||
break;
|
||||
|
||||
case Lisp_Symbol:
|
||||
hash = sxhash_string (SDATA (SYMBOL_NAME (obj)),
|
||||
SCHARS (SYMBOL_NAME (obj)));
|
||||
break;
|
||||
|
||||
case Lisp_Misc:
|
||||
hash = XUINT (obj);
|
||||
break;
|
||||
|
||||
case Lisp_Symbol:
|
||||
obj = SYMBOL_NAME (obj);
|
||||
/* Fall through. */
|
||||
|
||||
case Lisp_String:
|
||||
hash = sxhash_string (SDATA (obj), SCHARS (obj));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user