Topic complex |
Array functions |
Function |
bitand() |
Short |
Intersection of two bit fields |
Syntax |
BITAND(VAR M1 : TBITS; VAR M2 : TBITS) : INTEGER |
Parameter |
M1 : TBITS[]
M2 : TBITS[] |
Return |
NBITS(M1) after operation (= cardinality of M1) |
See also: |
|
Description |
M1 and M2 are understood as characteristical funktions of two (sub-)sets.
After execution of the function M1 contains the characteristical function of both sets.
Important: Both arrays should be dimensioned equally, because otherwise
the result is only valid in the area of the smaller field.
|