Lines Matching refs:BitVec
15 raise error, 'bitvec() items must have int value 0 or 1'
50 class BitVec:
72 raise error, 'bitvec() can\'t handle negative longs'
76 raise error, 'bitvec() requires array or long parameter'
85 raise error, 'bitvec()\'s 2nd parameter must be int'
88 print 'warning: bitvec() value is longer than the length indicates, truncating value'
93 raise error, 'bitvec() requires array or long parameter'
95 raise error, 'bitvec() requires 0 -- 2 parameter(s)'
102 BitVec(long(not not item), 1)
134 self[index:index] = BitVec(long(not not item), 1)
159 return BitVec(self._data, self._len)
170 ##rprt('<bitvec class instance object>.' + '__repr__()\n')
171 return 'bitvec(%r, %r)' % (self._data, self._len)
176 other = apply(bitvec, (other, ) + rest)
225 return BitVec(0L, 0)
235 return BitVec(ndata, nlength)
241 sequence = apply(bitvec, (sequence, ) + rest)
270 return BitVec(0L, 0)
275 return BitVec(0L, self._len * multiplier)
277 return ~BitVec(0L, self._len * multiplier)
279 retval = BitVec(0L, 0)
287 otherseq = apply(bitvec, (otherseq, ) + rest)
289 return BitVec(self._data & otherseq._data, \
296 otherseq = apply(bitvec, (otherseq, ) + rest)
298 return BitVec(self._data ^ otherseq._data, \
305 otherseq = apply(bitvec, (otherseq, ) + rest)
307 return BitVec(self._data | otherseq._data, \
313 return BitVec(~self._data & ((1L << self._len) - 1), \
320 otherseq = apply(bitvec, (otherseq, ) + rest)
333 bitvec = BitVec