def getPruning(table, index):
    """Extract pruning value"""

    if ((index & 1) == 0):
        res = table[index // 2] & 0x0f
    else:
        res = (table[index // 2] & 0xf0) >> 4
    return res
    # return table[index] & 0xf