C
DWORD leftRotateDWORD( DWORD val, BYTE bits );
Description
This function rotates the bits in a 32-bit DWORD left by a specific number of bits.
Preconditions
None
Parameters
Parameters |
Description |
val |
the DWORD to be rotated |
bits |
the number of bits by which to shift |
Returns
Rotated DWORD value.
Remarks
This function is only implemented on 8-bit platforms for now. The 8-bit compilers generate excessive code for this function, while C30 and C32 already generate compact code. Those compilers are served by a macro defined in Helpers.h.