RAD Studio
ContentsIndex
PreviousUpNext
_crotl, _crotr

Header File 

stdlib.h 

Category 

Math Routines 

Prototype 

unsigned char _crotl(unsigned char val, int count); 

unsigned char _crotr(unsigned char val, int count); 

Description 

Rotates an unsigned char left or right. 

_crotl rotates the given val to the left count bits. _crotr rotates the given val to the right count bits. 

The argument val is an unsigned char, or its equivalent in decimal or hexadecimal form. 

Return Value

  • The functions return the rotated byte:
  • _crotl returns the value of val left-rotated count bits.
  • _crotr returns the value of val right-rotated count bits.
Portability  

POSIX 
Win32 
ANSI C 
ANSI C++ 
 
+  
 
 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!