ReactOS 0.4.16-dev-927-g467dec4
rotr.cpp File Reference
#include <stdlib.h>
#include <limits.h>
Include dependency graph for rotr.cpp:

Go to the source code of this file.

Functions

unsigned long __cdecl _lrotr (unsigned long value, int shift)
 
unsigned __cdecl _rotr (unsigned value, int shift)
 
unsigned __int64 __cdecl _rotr64 (unsigned __int64 value, int shift)
 

Function Documentation

◆ _lrotr()

unsigned long __cdecl _lrotr ( unsigned long  value,
int  shift 
)

Definition at line 26 of file rotr.cpp.

27{
28 shift &= 0x1f;
29 value = (value << (0x20 - shift)) | (value >> shift);
30 return value;
31}
#define shift
Definition: input.c:1755
Definition: pdh_main.c:96

◆ _rotr()

unsigned __cdecl _rotr ( unsigned  value,
int  shift 
)

Definition at line 33 of file rotr.cpp.

34{
35 shift &= 0x1f;
36 value = (value << (0x20 - shift)) | (value >> shift);
37 return value;
38}

◆ _rotr64()

unsigned __int64 __cdecl _rotr64 ( unsigned __int64  value,
int  shift 
)

Definition at line 40 of file rotr.cpp.

41{
42 shift &= 0x3f;
43 value = (value << (0x40 - shift)) | (value >> shift);
44 return value;
45}