Botan

Word Rotation Operations

License
Botan is released under the Simplified BSD License (see LICENSE.md)

T  rotateLeft(T)(T input, size_t rot);

Bit rotation left

Parameters
T input the input word
size_t rot the number of bits to rotate
Returns
input rotated left by rot bits

T  rotateRight(T)(T input, size_t rot);

Bit rotation right

Parameters
T input the input word
size_t rot the number of bits to rotate
Returns
input rotated right by rot bits