optimize int_numof_1_bit