reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1876 if (!aff) 1878 if (isl_aff_is_nan(aff)) 1879 return aff; 1882 return aff; 1884 aff = isl_aff_cow(aff); 1884 aff = isl_aff_cow(aff); 1885 if (!aff) 1889 isl_die(isl_aff_get_ctx(aff), isl_error_invalid, 1890 "cannot scale down by zero", return isl_aff_free(aff)); 1892 aff->v = isl_vec_cow(aff->v); 1892 aff->v = isl_vec_cow(aff->v); 1893 if (!aff->v) 1894 return isl_aff_free(aff); 1897 isl_seq_gcd(aff->v->el + 1, aff->v->size - 1, &gcd); 1897 isl_seq_gcd(aff->v->el + 1, aff->v->size - 1, &gcd); 1899 isl_seq_scale_down(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1899 isl_seq_scale_down(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1899 isl_seq_scale_down(aff->v->el + 1, aff->v->el + 1, gcd, aff->v->size - 1); 1901 isl_int_mul(aff->v->el[0], aff->v->el[0], gcd); 1901 isl_int_mul(aff->v->el[0], aff->v->el[0], gcd); 1904 return aff;