Synopsis
void bit_rot_left(unsigned char *bits
, int size
, int count
);
Description
Rotates the buffer bits
,
containing size
bits, to the left
count
bits. After the operation, the
leftmost count
bits become the
count
rightmost bits in the buffer, and
all other bits are shifted accordingly.
Complexity
O (n β), where
n is the number of bits rotated to the left
and β is the number of
bits in the buffer.