mpz_limbs interface

Vincent Lefevre vincent at vinc17.net
Thu Feb 6 11:52:43 UTC 2014


On 2014-02-06 12:46:05 +0100, Niels Möller wrote:
> Vincent Lefevre <vincent at vinc17.net> writes:
> > You may need:
> >   ASSERT (d - d == 0);
> 
> That should exclude both infinities and NaN:s, right?

Yes. If you want to differentiate between NaN and infinities:
d != d is true only for NaN.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-devel mailing list