This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] |
On Apr 1 21:26, Gregory Pietsch wrote: > isnan and isinf are macros, not functions, so they should work on long > doubles. > > Something like: > #define isnan(_X) (fpclassify(_X)==FP_NAN) > #define isinf(_X) (fpclassify(_X)==FP_INFINITE) These are the C99 macros and those are already available in math.h. The functions isnan{f,l}, isinf{f,l} and finite{f,l} are BSD and SVID implementations, outdated but should be available for compatibility's sake. > While we're at it, could we add isfinitel and isnormall too? Neither an isfinitel nor an isnormall exist anywhere. There are only the float type agnostic C99 macros isfinite and isnormal, plus the BSD/SVID-style functions mentioned above. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
Attachment:
signature.asc
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |