uLib  User mode C/C++ extended API library for Win32 programmers.
Integer Bit Rotation

Module Description

Functions to rotate integer bits left and right.

Functions

BYTE __stdcall _rol8 (BYTE value, BYTE bits)
 
WORD __stdcall _rol16 (WORD value, BYTE bits)
 
DWORD __stdcall _rol32 (DWORD value, BYTE bits)
 
QWORD __stdcall _rol64 (QWORD value, BYTE bits)
 
BYTE __stdcall _ror8 (BYTE value, BYTE bits)
 
WORD __stdcall _ror16 (WORD value, BYTE bits)
 
DWORD __stdcall _ror32 (DWORD value, BYTE bits)
 
QWORD __stdcall _ror64 (QWORD value, BYTE bits)
 

Function Documentation

◆ _rol8()

BYTE __stdcall _rol8 ( BYTE  value,
BYTE  bits 
)

Rotate BYTE left. Defined in _asmop.asm

◆ _rol16()

WORD __stdcall _rol16 ( WORD  value,
BYTE  bits 
)

Rotate WORD left. Defined in _asmop.asm

◆ _rol32()

DWORD __stdcall _rol32 ( DWORD  value,
BYTE  bits 
)

Rotate DWORD left. Defined in _asmop.asm

◆ _rol64()

QWORD __stdcall _rol64 ( QWORD  value,
BYTE  bits 
)

Rotate QWORD left. Note: Max x86 rotation is 31 bits due to register size. Defined in _asmop.asm

◆ _ror8()

BYTE __stdcall _ror8 ( BYTE  value,
BYTE  bits 
)

Rotate BYTE right. Defined in _asmop.asm

◆ _ror16()

WORD __stdcall _ror16 ( WORD  value,
BYTE  bits 
)

Rotate WORD right. Defined in _asmop.asm

◆ _ror32()

DWORD __stdcall _ror32 ( DWORD  value,
BYTE  bits 
)

Rotate DWORD right. Defined in _asmop.asm

◆ _ror64()

QWORD __stdcall _ror64 ( QWORD  value,
BYTE  bits 
)

Rotate QWORD right. Note: Max x86 rotation is 31 bits due to register size. Defined in _asmop.asm