
(/VERSIONCHECK 2) 

(PUT '|INTBIT;bitLength;2I;1| '|SPADreplace| 'INTEGER-LENGTH) 

(DEFUN |INTBIT;bitLength;2I;1| (|n| $) (INTEGER-LENGTH |n|)) 

(DEFUN |INTBIT;bitCoef;3I;2| (|n| |i| $)
  (COND ((INTEGER-BIT |n| |i|) 1) ('T 0))) 

(PUT '|INTBIT;bitTruth;2IB;3| '|SPADreplace| 'INTEGER-BIT) 

(DEFUN |INTBIT;bitTruth;2IB;3| (|n| |i| $) (INTEGER-BIT |n| |i|)) 

(DEFUN |IntegerBits| #1=()
  (PROG #1#
    (RETURN
     (PROG (#2=#:G667)
       (RETURN
        (COND
         ((LETT #2# (HGET |$ConstructorCache| '|IntegerBits|)
                . #3=(|IntegerBits|))
          (|CDRwithIncrement| (CDAR #2#)))
         ('T
          (UNWIND-PROTECT
              (PROG1
                  (CDDAR
                   (HPUT |$ConstructorCache| '|IntegerBits|
                         (LIST (CONS NIL (CONS 1 (|IntegerBits;|))))))
                (LETT #2# T . #3#))
            (COND ((NOT #2#) (HREM |$ConstructorCache| '|IntegerBits|))))))))))) 

(DEFUN |IntegerBits;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
     (PROGN
      (LETT |dv$| '(|IntegerBits|) . #1=(|IntegerBits|))
      (LETT $ (GETREFV 11) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|IntegerBits| NIL (CONS 1 $))
      (|stuffDomainSlots| $)
      $)))) 

(MAKEPROP '|IntegerBits| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|Integer|) |INTBIT;bitLength;2I;1|
              |INTBIT;bitCoef;3I;2| (|Boolean|) |INTBIT;bitTruth;2IB;3|)
           '#(|bitTruth| 0 |bitLength| 6 |bitCoef| 11) 'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 10
                                                 '(2 0 9 6 6 10 1 0 6 6 7 2 0 6
                                                   6 6 8)))))
           '|lookupComplete|)) 

(MAKEPROP '|IntegerBits| 'NILADIC T) 
