Previous: LogN function To the Table of Content Next: LRotR function

- 4.45.2.41 -
Standard Units
Math Unit
Math Unit Procedures and Functions

LRotL and LRotR functions

Targets: MS-DOS, OS/2, Win32


Math Unit

Rotate bits to the left (LRotL) or right (LRotR).

Declaration:
function LRotL(Value, Shift: DWORD): DWORD;
function LRotR(Value, Shift: DWORD): DWORD;
Remarks:
The LRotL and LRotR functions rotate Value by Shift bits. LRotL rotates the value left. LRotR rotates the value right. Both functions “wrap” bits rotated off one end of Value to the other end.


Previous: LogN function To the Table of Content Next: LRotR function
LogN function Table of Content LRotR function

- 4.45.2.41 -