calc_code_bit
b = calc_code_bit(nr + i, &p);
if (fix >= calc_code_bit(nr + d, NULL))
b = calc_code_bit(nr, NULL);