README
Rotates bits. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-bit.
This is browserified, minified version of @extra-bit/rotate.
It is exported as global variable bit_rotate.
CDN: unpkg, jsDelivr.
bit.rotate(x, [n]);
// x: an int32
// n: rotate amount (+ve: left, -ve: right)
const bit = require("extra-bit");
bit.rotate(0x11112222, 4);
// 286401057 (0x11122221)
bit.rotate(0x11112222, -4);
// 554766882 (0x21111222)