2

What's purpose of functions ROL and ROR? For both of them, first arg is int, and second is byte

I suppose that's bitwise shifts

two muppet[![rol and ror]1s]2

Nikolay Matkheev
  • 143
  • 1
  • 1
  • 3

1 Answers1

5

Check out IDA directory\plugins\defs.h.

...
// Macros to represent some assembly instructions
// Feel free to modify them

#define __ROL__(x, y) __rotl__(x, y)       // Rotate left
#define __ROR__(x, y) __rotr__(x, y)       // Rotate right
...

The __rotl__ and __rotr__ are just for the rol and ror instructions

phuclv
  • 476
  • 3
  • 15
mikfig
  • 66
  • 2