Skip to content

Commit

Permalink
0.8alpha.0.28.alpha64.7:
Browse files Browse the repository at this point in the history
	STILL NON-FUNCTIONAL.  ESURIENT AS A SHARK.

	for now, since hash tables are still implemented with
	(UNSIGNED-BYTE 32) vectors
	... ensure that SXHASH returns an (UNSIGNED-BYTE 29)
	... and GLOBALDB-SXHASHOID, too

	(at this point, the system gets about one quarter of the
	way through reversed-toplevel-forms-and-fixups before dying
	with a segmentation fault)
  • Loading branch information
csrhodes committed May 22, 2003
1 parent a73ea93 commit 32622b7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/code/target-hash-table.lisp
Expand Up @@ -414,9 +414,15 @@
((not (zerop (hash-table-needing-rehash hash-table))) ((not (zerop (hash-table-needing-rehash hash-table)))
(flush-needing-rehash hash-table))) (flush-needing-rehash hash-table)))
;; Search for key in the hash table. ;; Search for key in the hash table.
; (/show0 "in GETHASH, key=..")
; (/hexstr key)
; (/show0 "hash-table=..")
; (/hexstr hash-table)
(multiple-value-bind (hashing eq-based) (multiple-value-bind (hashing eq-based)
(funcall (hash-table-hash-fun hash-table) key) (funcall (hash-table-hash-fun hash-table) key)
(declare (type hash hashing)) (declare (type hash hashing))
; (/show0 "hashing=..")
; (/hexstr hashing)
(let* ((index-vector (hash-table-index-vector hash-table)) (let* ((index-vector (hash-table-index-vector hash-table))
(length (length index-vector)) (length (length index-vector))
(index (rem hashing length)) (index (rem hashing length))
Expand Down
2 changes: 1 addition & 1 deletion src/code/target-sxhash.lisp
Expand Up @@ -65,7 +65,7 @@
(let* ((xy (+ (* x 3) y))) (let* ((xy (+ (* x 3) y)))
(declare (type (unsigned-byte 32) xy)) (declare (type (unsigned-byte 32) xy))
(the (and fixnum unsigned-byte) (the (and fixnum unsigned-byte)
(logand most-positive-fixnum (logand 536870911
(logxor 441516657 (logxor 441516657
xy xy
(the fixnum (ash xy -5))))))) (the fixnum (ash xy -5)))))))
Expand Down
5 changes: 3 additions & 2 deletions src/compiler/globaldb.lisp
Expand Up @@ -67,8 +67,9 @@
(let ((rest (rest x))) (let ((rest (rest x)))
(and (symbolp (car rest)) (and (symbolp (car rest))
(null (cdr rest))))) (null (cdr rest)))))
(logxor (symbol-hash (second x)) (logand 536870911
110680597)) (logxor (symbol-hash (second x))
110680597)))
(t (sxhash x)))) (t (sxhash x))))


;;; Given any non-negative integer, return a prime number >= to it. ;;; Given any non-negative integer, return a prime number >= to it.
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal ;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS ;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"0.8alpha.0.28.alpha64.6" "0.8alpha.0.28.alpha64.7"

0 comments on commit 32622b7

Please sign in to comment.