rotl8

Rotates an integer value to the left by the specified number of bits.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  uint8_t rotl8 (
     uint8_t   value,   
     int       shift);
  

Parameters

value

(IN) Specifies the value to rotate.

shift

(IN) Specifies the number of bits to rotate.

Return Values

Returns the rotated value.

Remarks

The rotl8 function rotates the unsigned int value to the left by the number of bits specified in the shift parameter.

See Also

rotr8