
(/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| ()
  (PROG ()
    (RETURN
      (PROG (#0=#:G1821)
        (RETURN
          (COND
            ((LETT #0# (HGET |$ConstructorCache| '|IntegerBits|)
                   . #1=(|IntegerBits|))
             (|CDRwithIncrement| (CDAR #0#)))
            ('T
             (UNWIND-PROTECT
               (PROG1 (CDDAR (HPUT |$ConstructorCache| '|IntegerBits|
                                   (LIST
                                    (CONS NIL
                                     (CONS 1 (|IntegerBits;|))))))
                 (LETT #0# T . #1#))
               (COND
                 ((NOT #0#) (HREM |$ConstructorCache| '|IntegerBits|))))))))))) 

(DEFUN |IntegerBits;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT |dv$| '(|IntegerBits|) . #0=(|IntegerBits|))
        (LETT $ (GETREFV 11) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|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) 
