-
Notifications
You must be signed in to change notification settings - Fork 0
getAs
Subhajit Sahu edited this page Jan 24, 2021
·
7 revisions
Bit.getAs(x, m);
// x: an int or long
// m: bit mask
import io.github.javaf.*;
Bit.getAs(6, 4);
// 4 (110,100 ⇒ 100)
Bit.getAs(6, 7);
// 6 (110,111 ⇒ 110)
Bit.getAs(6, 5);
// 4 (110,101 ⇒ 100)