_lrotr
Classification
Other, Shift, CPUID Test: None
Header File
Instruction
ROR r64, imm8
Synopsis
_lrotr(unsigned long a, int shift);
Description
Shift the bits of unsigned long integer "a" right by the number of bits specified in "shift", rotating the least-significant bit to the most-significant bit location, and store the unsigned result in "dst".
Operation
// size := 32 or 64
dst := a
count := shift AND (size - 1)
DO WHILE (count > 0)
tmp[size - 1] := dst[0]
dst := (dst >> 1) OR tmp[size - 1]
count := count - 1
OD