Name

bit_rot_left

Synopsis

void bit_rot_left(unsigned char *bits, int size, int count);

Return Value

None.

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset