Bit_Array module

toggle_all_bits

procedureSource

Flips every bit, including the padding bits of the last word.

Example↗
bits := make_bit_array(3);
bits[0] = true;
toggle_all_bits(*bits);
assert(!bits[0] && bits[1] && bits[2]);
deinit(*bits);
toggle_all_bits :: (array: *Bit_Array)

Parameters

array: *Bit_Array

See also