make-values-type-cached: Hardcode values of (sxhash t/nil)).
authorstas <stas@debian.ar7>
Thu, 3 Oct 2013 13:52:46 +0000 (17:52 +0400)
committerstas <stas@debian.ar7>
Thu, 3 Oct 2013 13:52:46 +0000 (17:52 +0400)
To avoid relying on the xc host.

src/code/early-type.lisp

index c5cacb3..a5f8e30 100644 (file)
 
 (defun-cached (make-values-type-cached
                :hash-bits 8
-               :hash-function (lambda (req opt rest allowp)
-                                (logand (logxor
-                                         (type-list-cache-hash req)
-                                         (type-list-cache-hash opt)
-                                         (if rest
-                                             (type-hash-value rest)
-                                             42)
-                                         (if allowp
-                                             #.(logand #xFF (sxhash t))
-                                             #.(logand #xFF (sxhash nil))))
-                                        #xFF)))
+               :hash-function
+               (lambda (req opt rest allowp)
+                 (logand (logxor
+                          (type-list-cache-hash req)
+                          (type-list-cache-hash opt)
+                          (if rest
+                              (type-hash-value rest)
+                              42)
+                          ;; Results (logand #xFF (sxhash t/nil))
+                          ;; hardcoded to avoid relying on the xc host. 
+                          (if allowp
+                              194
+                              11))
+                         #xFF)))
     ((required equal-but-no-car-recursion)
      (optional equal-but-no-car-recursion)
      (rest eq)