<bit-vector>

A vector that contains <bit>s.  The vector may be treated as a series of 32-bit words, and may have Boolean operations performed over all its contents at once.

When treated as a series of words, each word is structured as follows

Element  0  1  ...  30 31 32 33 ... 62 63 64 65 ...
+---------------+---------------+----------
Word | LSB 0 MSB | LSB 1 MSB | LSB 2
+---------------+---------------+----------

Exported from

Modifiers

abstract primary open instantiable

Make keywords

size:An instance of <integer> specifying the size of the bit vector in bits.  The default is 0.
fill:An instance of <bit> specifying an initial value for each element of the bit vector.  The default is 0.
round-up-size?:An instance of <boolean>.  If true, the bit vector is sized in 32-bit increments, sufficient to contain size bits.  For example, a size of 40 would result in a vector of 64 bits.  If false, the vector is sized to size bits exactly.  The default is #f.
copy-from:An instance of <bit-vector> that is copied to the new instance.  If the copy-from instance is shorter than this instance, remaining bits are filled as specified by fill.

Superclasses

Functions on <bit-vector>

Functions returning <bit-vector>

An integer with a value of 0 or 1.
The bit-vector module.
The class of integers.
The class of boolean values.
A vector that contains <bit>s.
The class of arrays of rank one (i.e., exactly one dimension).
Returns the number of bits set to 0 or 1 in a <bit-vector>.
Returns the bitwise AND of two bit vectors.
As bit-vector-and, but vector1 may be modified.
As bit-vector-and, but vector2 is complemented beforehand.
As bit-vector-andc2, but vector1 may be modified.
Returns the complement of a bit vector.
As bit-vector-not, but vector is modified.
Returns the bitwise OR of two bit vectors.
As bit-vector-or, but vector1 may be modified.
Returns a word of the bit vector.
Returns the bitwise XOR of two bit vectors.
As bit-vector-xor, but vector1 may be modified.
Treating a bit vector as 32-bit words, returns the number of words in the vector.