Код: Выделить всё
int myInt = 1234;
for(int i = 0; i < 32; i++) {
int curr_bit = myInt & (1
Подробнее здесь: [url]https://stackoverflow.com/questions/47725337/getting-the-index-of-the-leftmost-active-bit-in-an-integer-instantly[/url]Код: Выделить всё
int myInt = 1234;
for(int i = 0; i < 32; i++) {
int curr_bit = myInt & (1
Подробнее здесь: [url]https://stackoverflow.com/questions/47725337/getting-the-index-of-the-leftmost-active-bit-in-an-integer-instantly[/url]