[Ecls-list] [PATCH] Improve floating-point exception handling.

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon Jun 1 12:44:19 UTC 2009


On Mon, Jun 1, 2009 at 12:30 PM, Alexander Gavrilov
<angavrilov at gmail.com> wrote:
> Some not-so-rare errors like 0/0 or sqrt(-1) produce
> the Invalid Operation exception. Since ECL cannot
> handle it, such failures in compiled code sometimes
> go undetected until much later.
>
> This adds support for this exception, also enabling
> it by default. I also add support for the Inexact
> Result exception where possible, and improve the
> priority order of signalled exceptions when checked
> via fetestexcept.

Thanks. I had indeed forgotten those other exceptions. I only wonder
whether the list of exceptions is complete and portable, or whether we
should add some autoconf or ifdef's to ensure portability.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list