MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / rotate_right

Function rotate_right

arch/arm64/disassembler/pcode.c:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46uint64_t rotate_right(uint64_t x, unsigned width, unsigned amount)
47{
48 amount = amount % width;
49 x = (x >> amount) | (x << (width - amount));
50 x = (width < 64) ? x & (((uint64_t)1 << width) - 1) : x;
51 return x;
52}
53
54DecodeBitMasks_ReturnType DecodeBitMasks(
55 uint8_t /*bit*/ immN, uint8_t /*bit(6)*/ imms, uint8_t /*bit(6)*/ immr)

Callers 1

DecodeBitMasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected