Skip to content

Commit

Permalink
経過保存
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Sep 24, 2011
1 parent 5fae2ec commit 0be28a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
(deftype hashcode () '(unsigned-byte 32))
(deftype hash-fn () '(function (t) hashcode))
(deftype test-fn () '(function (t t) boolean))
(deftype bucket () '(or null node))
(deftype buckets () '(simple-array bucket))

(eval-when (:compile-toplevel :load-toplevel)
(defparameter *fastest* '(optimize (speed 3) (safety 0) (debug 0)))
Expand Down
4 changes: 2 additions & 2 deletions sol-hash.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(value t :type t))

(defstruct map
(buckets #() :type (simple-array (or null node)))
(buckets #() :type buckets)
(bucket-size 0 :type positive-fixnum)
(bitlen 0 :type positive-fixnum)
(count 0 :type positive-fixnum)
Expand Down Expand Up @@ -93,7 +93,7 @@
(recur nil head)))

(defun set-pred-next (pred-node buckets bucket-id &key next)
(declare ((simple-array (or null node)) buckets)
(declare (buckets buckets)
(positive-fixnum bucket-id)
((or null node) pred-node next))
(if pred-node
Expand Down

0 comments on commit 0be28a3

Please sign in to comment.