-
Notifications
You must be signed in to change notification settings - Fork 1
reverse
Subhajit Sahu edited this page Jul 25, 2022
·
15 revisions
Reverse all bits.
reverse(x)
// x: an int32
const xbit = require('extra-bit');
xbit.reverse(0xFFFF0000);
// → 65535 (0x0000FFFF)
xbit.reverse(0x00AABBCC);
// → 870143232 (0x33DD5500)
xbit.reverse(0x1234);
// → 742916096 (0x2C480000)