reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
876 if (!v1 || !v2) 878 if (isl_val_is_nan(v1)) { 880 return v1; 883 isl_val_free(v1); 887 (!isl_val_is_rat(v1) && !isl_val_is_rat(v2))) { 889 return isl_val_set_nan(v1); 891 if (isl_val_is_zero(v1)) { 893 return v1; 895 if (isl_val_is_infty(v1) || isl_val_is_neginfty(v1)) { 895 if (isl_val_is_infty(v1) || isl_val_is_neginfty(v1)) { 897 v1 = isl_val_neg(v1); 897 v1 = isl_val_neg(v1); 899 return v1; 903 return isl_val_set_zero(v1); 906 v1 = isl_val_cow(v1); 906 v1 = isl_val_cow(v1); 907 if (!v1) 910 isl_int_mul(v1->d, v1->d, v2->n); 910 isl_int_mul(v1->d, v1->d, v2->n); 911 v1 = isl_val_normalize(v1); 911 v1 = isl_val_normalize(v1); 913 isl_int_mul(v1->d, v1->d, v2->n); 913 isl_int_mul(v1->d, v1->d, v2->n); 914 isl_int_mul(v1->n, v1->n, v2->d); 914 isl_int_mul(v1->n, v1->n, v2->d); 915 v1 = isl_val_normalize(v1); 915 v1 = isl_val_normalize(v1); 918 return v1; 920 isl_val_free(v1);