X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fsset.lisp;h=624fa08cbbeabebc3a6da8c035086c75046f89c4;hb=98a76d4426660876dec6649b1e228d2e5b47f579;hp=9106839609db5ba109e10359472fa293218f6cb5;hpb=416152f084604094445a758ff399871132dff2bd;p=sbcl.git diff --git a/src/compiler/sset.lisp b/src/compiler/sset.lisp index 9106839..624fa08 100644 --- a/src/compiler/sset.lisp +++ b/src/compiler/sset.lisp @@ -73,6 +73,10 @@ (declare (inline member)) (not (null (member element (cdr (sset-elements set)) :test #'eq)))) +(declaim (ftype (function (sset sset) boolean) sset=)) +(defun sset= (set1 set2) + (equal (sset-elements set1) (sset-elements set2))) + ;;; Return true if SET contains no elements, false otherwise. (declaim (ftype (function (sset) boolean) sset-empty)) (defun sset-empty (set) @@ -152,7 +156,7 @@ (shiftf prev-el1 el1 (cdr el1)))))))) ;;; Destructively modify SET1 to include its union with the difference -;;; of SET2 and SET3. We return true if Set1 was modified, false +;;; of SET2 and SET3. We return true if SET1 was modified, false ;;; otherwise. (declaim (ftype (function (sset sset sset) boolean) sset-union-of-difference)) (defun sset-union-of-difference (set1 set2 set3)