A set is stored as an array of bits, where each bit indicates if the element is in the set or excluded from the set. The maximum number of elements in a set is 256.
If a set has less than 32 elements, it is coded as an unsigned 32-bit value. Otherwise it is coded as a 8 element array of 32-bit unsigned values (longword) (hence a size of 256 bytes).
The longword number of a speci c element E is given by :
LongwordNumber = (E div 32);
|
and the bit number within that 32-bit value is given by:
BitNumber = (E mod 32);
|