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

References

tools/polly/lib/External/isl/imath/imrat.c
   55   if ((res = mp_int_init(MP_NUMER_P(r))) != MP_OK)
   58     mp_int_clear(MP_NUMER_P(r));
   87   if ((res = mp_int_init_size(MP_NUMER_P(r), n_prec)) != MP_OK)
   90     mp_int_clear(MP_NUMER_P(r));
  101   if ((res = mp_int_init_copy(MP_NUMER_P(r), MP_NUMER_P(old))) != MP_OK)
  101   if ((res = mp_int_init_copy(MP_NUMER_P(r), MP_NUMER_P(old))) != MP_OK)
  104     mp_int_clear(MP_NUMER_P(r));
  116   if ((res = mp_int_set_value(MP_NUMER_P(r), numer)) != MP_OK)
  131   if ((res = mp_int_set_uvalue(MP_NUMER_P(r), numer)) != MP_OK)
  141   mp_int_clear(MP_NUMER_P(r));
  150   if (r->num.digits != NULL)
  158   return mp_int_copy(MP_NUMER_P(r), z);
  163   return MP_NUMER_P(r);
  179   return MP_SIGN(MP_NUMER_P(r));
  186   if ((res = mp_int_copy(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  186   if ((res = mp_int_copy(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  195   mp_int_zero(MP_NUMER_P(r));
  204   if ((res = mp_int_abs(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  204   if ((res = mp_int_abs(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  215   if ((res = mp_int_neg(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  215   if ((res = mp_int_neg(MP_NUMER_P(a), MP_NUMER_P(c))) != MP_OK)
  232   mp_int_swap(MP_NUMER_P(c), MP_DENOM_P(c));
  236     mp_sign tmp = MP_SIGN(MP_NUMER_P(c));
  238     MP_SIGN(MP_NUMER_P(c)) = MP_SIGN(MP_DENOM_P(c));
  261   if ((res = mp_int_mul(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  261   if ((res = mp_int_mul(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  261   if ((res = mp_int_mul(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  264   if (mp_int_compare_zero(MP_NUMER_P(c)) != 0) {
  283     if ((res = mp_int_mul(MP_NUMER_P(a), MP_DENOM_P(b), &tmp)) != MP_OK) 
  285     if ((res = mp_int_mul(MP_DENOM_P(a), MP_NUMER_P(b), MP_DENOM_P(c))) != MP_OK)
  287     res = mp_int_copy(&tmp, MP_NUMER_P(c));
  293     if ((res = mp_int_mul(MP_NUMER_P(a), MP_DENOM_P(b), MP_NUMER_P(c))) != MP_OK)
  293     if ((res = mp_int_mul(MP_NUMER_P(a), MP_DENOM_P(b), MP_NUMER_P(c))) != MP_OK)
  295     if ((res = mp_int_mul(MP_DENOM_P(a), MP_NUMER_P(b), MP_DENOM_P(c))) != MP_OK)
  319   if ((res = mp_int_add(MP_NUMER_P(c), &tmp, MP_NUMER_P(c))) != MP_OK)
  319   if ((res = mp_int_add(MP_NUMER_P(c), &tmp, MP_NUMER_P(c))) != MP_OK)
  343   if ((res = mp_int_sub(MP_NUMER_P(c), &tmp, MP_NUMER_P(c))) != MP_OK)
  343   if ((res = mp_int_sub(MP_NUMER_P(c), &tmp, MP_NUMER_P(c))) != MP_OK)
  360   if ((res = mp_int_mul(MP_NUMER_P(c), b, MP_NUMER_P(c))) != MP_OK)
  360   if ((res = mp_int_mul(MP_NUMER_P(c), b, MP_NUMER_P(c))) != MP_OK)
  394   if ((res = mp_int_expt(MP_NUMER_P(a), b, MP_NUMER_P(c))) != MP_OK)
  394   if ((res = mp_int_expt(MP_NUMER_P(a), b, MP_NUMER_P(c))) != MP_OK)
  404   if (MP_SIGN(MP_NUMER_P(a)) != MP_SIGN(MP_NUMER_P(b))) {
  404   if (MP_SIGN(MP_NUMER_P(a)) != MP_SIGN(MP_NUMER_P(b))) {
  405     if (MP_SIGN(MP_NUMER_P(a)) == MP_ZPOS)
  415     if (MP_SIGN(MP_NUMER_P(a)) == MP_ZPOS)
  427     return mp_int_compare_unsigned(MP_NUMER_P(a), MP_NUMER_P(b));
  427     return mp_int_compare_unsigned(MP_NUMER_P(a), MP_NUMER_P(b));
  435     SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(a)), last);
  436     SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(b)), last);
  454   return mp_int_compare_zero(MP_NUMER_P(r));
  484   if ((res = mp_int_to_int(MP_NUMER_P(r), num)) != MP_OK)
  499   if ((res = mp_int_to_string(MP_NUMER_P(r), radix, str, limit)) != MP_OK)
  503   if (mp_int_compare_zero(MP_NUMER_P(r)) == 0)
  529   SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(r)), last);
  606   if (MP_SIGN(MP_NUMER_P(r)) == MP_NEG &&
  648   n_len = mp_int_string_len(MP_NUMER_P(r), radix);
  650   if (mp_int_compare_zero(MP_NUMER_P(r)) != 0)
  666   z_len = mp_int_string_len(MP_NUMER_P(r), radix);
  687   if ((res = mp_int_read_cstring(MP_NUMER_P(r), radix, str, &endp)) != MP_OK &&
  767   if ((res = mp_int_read_cstring(MP_NUMER_P(r), radix, str, &endp)) != MP_OK &&
  847     if ((res = mp_int_mul(MP_NUMER_P(r), MP_DENOM_P(r), MP_NUMER_P(r))) != MP_OK)
  847     if ((res = mp_int_mul(MP_NUMER_P(r), MP_DENOM_P(r), MP_NUMER_P(r))) != MP_OK)
  851       MP_SIGN(MP_NUMER_P(r)) = MP_ZPOS;
  852       if ((res = mp_int_add(MP_NUMER_P(r), &frac, MP_NUMER_P(r))) != MP_OK)
  852       if ((res = mp_int_add(MP_NUMER_P(r), &frac, MP_NUMER_P(r))) != MP_OK)
  855       MP_SIGN(MP_NUMER_P(r)) = osign;
  883   if (mp_int_compare_zero(MP_NUMER_P(r)) == 0) {
  893   if ((res = mp_int_gcd(MP_NUMER_P(r), MP_DENOM_P(r), &gcd)) != MP_OK)
  897     if ((res = mp_int_div(MP_NUMER_P(r), &gcd, MP_NUMER_P(r), NULL)) != MP_OK)
  897     if ((res = mp_int_div(MP_NUMER_P(r), &gcd, MP_NUMER_P(r), NULL)) != MP_OK)
  904   if (MP_SIGN(MP_NUMER_P(r)) == MP_SIGN(MP_DENOM_P(r)))
  905     MP_SIGN(MP_NUMER_P(r)) = MP_SIGN(MP_DENOM_P(r)) = MP_ZPOS;
  907     MP_SIGN(MP_NUMER_P(r)) = MP_NEG;
  924     if ((res = (comb_f)(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  924     if ((res = (comb_f)(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  924     if ((res = (comb_f)(MP_NUMER_P(a), MP_NUMER_P(b), MP_NUMER_P(c))) != MP_OK)
  935     SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(a)), last);
  936     SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(b)), last);
  942     if ((res = (comb_f)(TEMP(0), TEMP(1), MP_NUMER_P(c))) != MP_OK)