Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2013 19:00:21 +1000 (EST)
From:      Bruce Evans <>
Subject:   isinf() on NaN args
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
Is isinf(x) (or even fpclassify(x)) permitted to raise FE_INVALID if
x is a (quiet) NaN?  It shouldn't, but I can't find where C99 requires
this.  I can only find where C99 requires FE_INVALID to not be raised
for comparison macros.

It should raise if x is a signaling NaN, but C99 doesn't specify
signaling NaNs and the hardware behaviour is more varied and the
software bugs are larger for signaling NaNs, so getting this wrong in
many cases doesn't matter much.


Want to link to this message? Use this URL: <>