-
Notifications
You must be signed in to change notification settings - Fork 0
reverse
Subhajit Sahu edited this page Jan 17, 2021
·
6 revisions
bit.reverse(x);
// x: an int32
const bit = require('extra-bit');
bit.reverse(0xFFFF0000);
// 65535 (0x0000FFFF)
bit.reverse(0x00AABBCC);
// 870143232 (0x33DD5500)
bit.reverse(0x1234);
// 742916096 (0x2C480000)