-
Notifications
You must be signed in to change notification settings - Fork 0
prevPow2
Subhajit Sahu edited this page Jun 7, 2020
·
9 revisions
Gets previous power-of-2. 🏃 [:vhs:] 📦 🌔 📒
integer.prevPow2(x);
// x: an int32
const integer = require('extra-integer');
integer.prevPow2(63);
// 32
integer.prevPow2(128);
// 128
integer.prevPow2(1);
// 1