not-a-number's
Eric Botcazou
ebotcazou@adacore.com
Tue Jan 15 16:25:00 GMT 2013
> When disregarding the 'isnan()', the function is returning a '2' when
> one or both the arguments is a NaN. Do you suppose this is correct?
>
> If you ask me, it should exit on the first compare and thus return a
> not-a-number.
You cannot "exit" a comparison in C, one of the branches is always taken,
which means that npx_dr11_inverse_tangent_series can never return -NAN.
--
Eric Botcazou
More information about the Gcc
mailing list