#include int int64_bottomzeros_num(int64_t x) { int result = 0; int j; for (j = 0;j < 64;++j) { if (1 & (x >> j)) break; ++result; } return result; }