reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/polly/lib/External/isl/isl_val.c
  783 	if (!v1 || !v2)
  785 	if (isl_val_is_nan(v1)) {
  787 		return v1;
  790 		isl_val_free(v1);
  793 	if ((!isl_val_is_rat(v1) && isl_val_is_zero(v2)) ||
  794 	    (isl_val_is_zero(v1) && !isl_val_is_rat(v2))) {
  796 		return isl_val_set_nan(v1);
  798 	if (isl_val_is_zero(v1)) {
  800 		return v1;
  803 		isl_val_free(v1);
  806 	if (isl_val_is_infty(v1) || isl_val_is_neginfty(v1)) {
  806 	if (isl_val_is_infty(v1) || isl_val_is_neginfty(v1)) {
  808 			v1 = isl_val_neg(v1);
  808 			v1 = isl_val_neg(v1);
  810 		return v1;
  813 		if (isl_val_is_neg(v1))
  815 		isl_val_free(v1);
  819 	v1 = isl_val_cow(v1);
  819 	v1 = isl_val_cow(v1);
  820 	if (!v1)
  822 	if (isl_val_is_int(v1) && isl_val_is_int(v2))
  823 		isl_int_mul(v1->n, v1->n, v2->n);
  823 		isl_int_mul(v1->n, v1->n, v2->n);
  825 		isl_int_mul(v1->n, v1->n, v2->n);
  825 		isl_int_mul(v1->n, v1->n, v2->n);
  826 		isl_int_mul(v1->d, v1->d, v2->d);
  826 		isl_int_mul(v1->d, v1->d, v2->d);
  827 		v1 = isl_val_normalize(v1);
  827 		v1 = isl_val_normalize(v1);
  830 	return v1;
  832 	isl_val_free(v1);