-
Notifications
You must be signed in to change notification settings - Fork 0
rotate
Subhajit Sahu edited this page Jan 17, 2021
·
6 revisions
Bit.rotate(x, [n]);
// x: an int or long
// n: rotate amount (+ve: left, -ve: right)
import io.github.javaf.*;
Bit.rotate(0x11112222, 4);
// 286401057 (0x11122221)
Bit.rotate(0x11112222, -4);
// 554766882 (0x21111222)