def vectorize_cst(value, cst_precision):
    """ if cst_precision is a vector format return a list uniformly initialized
        with value whose size macthes the vector size of cst_precision, else
        return the scalar value """
    if cst_precision.is_vector_format():
        return [value] * cst_precision.get_vector_size()
    else:
        return value