reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
291 if (!pnt || !v) 293 if (isl_point_is_void(pnt)) 294 isl_die(isl_point_get_ctx(pnt), isl_error_invalid, 296 if (pos < 0 || pos >= isl_space_dim(pnt->dim, type)) 297 isl_die(isl_point_get_ctx(pnt), isl_error_invalid, 300 isl_die(isl_point_get_ctx(pnt), isl_error_invalid, 303 if (isl_int_eq(pnt->vec->el[1 + pos], v->n) && 304 isl_int_eq(pnt->vec->el[0], v->d)) { 306 return pnt; 309 pnt = isl_point_cow(pnt); 309 pnt = isl_point_cow(pnt); 310 if (!pnt) 312 pnt->vec = isl_vec_cow(pnt->vec); 312 pnt->vec = isl_vec_cow(pnt->vec); 313 if (!pnt->vec) 316 if (isl_int_eq(pnt->vec->el[0], v->d)) { 317 isl_int_set(pnt->vec->el[1 + pos], v->n); 319 isl_int_mul(pnt->vec->el[1 + pos], pnt->vec->el[0], v->n); 319 isl_int_mul(pnt->vec->el[1 + pos], pnt->vec->el[0], v->n); 321 isl_seq_scale(pnt->vec->el + 1, 322 pnt->vec->el + 1, v->d, pnt->vec->size - 1); 322 pnt->vec->el + 1, v->d, pnt->vec->size - 1); 323 isl_int_mul(pnt->vec->el[1 + pos], pnt->vec->el[0], v->n); 323 isl_int_mul(pnt->vec->el[1 + pos], pnt->vec->el[0], v->n); 324 isl_int_mul(pnt->vec->el[0], pnt->vec->el[0], v->d); 324 isl_int_mul(pnt->vec->el[0], pnt->vec->el[0], v->d); 325 pnt->vec = isl_vec_normalize(pnt->vec); 325 pnt->vec = isl_vec_normalize(pnt->vec); 326 if (!pnt->vec) 331 return pnt; 334 isl_point_free(pnt);