(let* ((vector (sset-vector set))
(new-vector (make-array (if (zerop (length vector))
2
- (* (length vector) 2)))))
+ (* (length vector) 2))
+ :initial-element 0)))
(setf (sset-vector set) new-vector
(sset-free set) (length new-vector)
(sset-count set) 0)
;;; Rehash the sset when the proportion of free cells in the set is
;;; lower than this.
-(defconstant +sset-rehash-threshold+ 1/4)
+(eval-when (:compile-toplevel :load-toplevel :execute)
+ (defconstant +sset-rehash-threshold+ 1/4))
;;; Destructively add ELEMENT to SET. If ELEMENT was not in the set,
;;; then we return true, otherwise we return false.