#include int int8_bottomzeros_num(int8_t x) { int result = 0; int j; for (j = 0;j < 8;++j) { if (1 & (x >> j)) break; ++result; } return result; }