leftRotateDWORD Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
leftRotateDWORD Function
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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.