aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Colascione2014-09-16 06:07:57 -0700
committerDaniel Colascione2014-09-16 06:07:57 -0700
commit89b34071dd6663bc5b302f4a4088433ea23d061e (patch)
tree67a8f57aaa26138548cf2fcfc777c91410733490 /src
parent3e67a981c4f45cf960a93e31010253b33bcdbaf5 (diff)
downloademacs-89b34071dd6663bc5b302f4a4088433ea23d061e.tar.gz
emacs-89b34071dd6663bc5b302f4a4088433ea23d061e.zip
For symbols, use address as hash code.
* src/fns.c (sxhash): For symbols, use address as hash code.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fns.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2d5de9be5d8..57c6aa31da5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-09-16 Daniel Colascione <dancol@dancol.org>
2
3 * fns.c (sxhash): For symbols, use address as hash code.
4
12014-09-16 Dmitry Antipov <dmantipov@yandex.ru> 52014-09-16 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 If USE_LOCAL_ALLOCATORS, allocate even more Lisp objects on stack. 7 If USE_LOCAL_ALLOCATORS, allocate even more Lisp objects on stack.
diff --git a/src/fns.c b/src/fns.c
index afe293b6dd3..3461de5db08 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -4476,13 +4476,10 @@ sxhash (Lisp_Object obj, int depth)
4476 break; 4476 break;
4477 4477
4478 case Lisp_Misc: 4478 case Lisp_Misc:
4479 case Lisp_Symbol:
4479 hash = XHASH (obj); 4480 hash = XHASH (obj);
4480 break; 4481 break;
4481 4482
4482 case Lisp_Symbol:
4483 obj = SYMBOL_NAME (obj);
4484 /* Fall through. */
4485
4486 case Lisp_String: 4483 case Lisp_String:
4487 hash = sxhash_string (SSDATA (obj), SBYTES (obj)); 4484 hash = sxhash_string (SSDATA (obj), SBYTES (obj));
4488 break; 4485 break;