fixed ifdef in calc_bit