-
Notifications
You must be signed in to change notification settings - Fork 0
count
Subhajit Sahu edited this page Jan 24, 2021
·
7 revisions
Bit.count(x);
// x: an int or long
import io.github.javaf.*;
Bit.count(7);
// 3 (111 ⇒ 3)
Bit.count(12);
// 2 (1100 ⇒ 2)
Bit.count(63);
// 6 (111111 ⇒ 6)