This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Having read all your comments, I understand. Please forgive me for not having much depth here. Of course the labor is cheap. :)Jerry would place his disabling of range checking above this block. However, we probably want to explicit set overflow values to Inf, so the checking should look like
if (mpfr_sgn (q) == 0) retval = ARITH_OK; else if (mpfr_cmp (q, gfc_real_kinds[i].huge) > 0) { if (disable-checking) { set x to inf with the proper sign retval = ARITH_OK; } else retval = ARITH_OVERFLOW; } else if (mpfr_cmp (q, gfc_real_kinds[i].subnormal) < 0) retval = ARITH_UNDERFLOW; else if (mpfr_cmp (q, gfc_real_kinds[i].tiny) < 0)
Yes. This is what I meant.
Paul
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |