def _tbl_shift(opt):
    """
    Return the table shift value
    """
    if opt.algorithm == opt.algo_table_driven and (opt.width is None or opt
        .width < 8):
        if opt.width is None:
            return None
        else:
            return 8 - opt.width
    else:
        return 0
