_lrotl, _lrotr
Rotates bits to the left (_lrotl) or right (_lrotr).
unsigned long _lrotl( unsigned long value, int shift ); unsigned long _lrotr( unsigned long value, int shift );
Parameters
- value
-
Value to be rotated.
- shift
-
Number of bits to shift value.
| Routine | Required header | Compatibility |
|---|---|---|
| _lrotl | <stdlib.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
| _lrotr | <stdlib.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
For more compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.