reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1810 if (!aff) 1812 if (isl_aff_is_nan(aff)) 1813 return aff; 1816 return aff; 1818 aff = isl_aff_cow(aff); 1818 aff = isl_aff_cow(aff); 1819 if (!aff) 1821 aff->v = isl_vec_cow(aff->v); 1821 aff->v = isl_vec_cow(aff->v); 1822 if (!aff->v) 1823 return isl_aff_free(aff); 1825 if (isl_int_is_pos(f) && isl_int_is_divisible_by(aff->v->el[0], f)) { 1826 isl_int_divexact(aff->v->el[0], aff->v->el[0], f); 1826 isl_int_divexact(aff->v->el[0], aff->v->el[0], f); 1827 return aff; 1831 isl_int_gcd(gcd, aff->v->el[0], f); 1832 isl_int_divexact(aff->v->el[0], aff->v->el[0], gcd); 1832 isl_int_divexact(aff->v->el[0], aff->v->el[0], gcd); 1834 isl_seq_scale(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1834 isl_seq_scale(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1834 isl_seq_scale(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1837 return aff;