Added isinff and isnanf
This commit is contained in:
Родитель
bc570895d7
Коммит
4258d64d0c
|
@ -202,10 +202,18 @@ extern int __signbitd (double x);
|
|||
#define isinf(y) (fpclassify(y) == FP_INFINITE)
|
||||
#endif
|
||||
|
||||
#ifndef isinff
|
||||
#define isinff isinf
|
||||
#endif
|
||||
|
||||
#ifndef isnan
|
||||
#define isnan(y) (fpclassify(y) == FP_NAN)
|
||||
#endif
|
||||
|
||||
#ifndef isnanf
|
||||
#define isnanf isnan
|
||||
#endif
|
||||
|
||||
#define isnormal(y) (fpclassify(y) == FP_NORMAL)
|
||||
#define signbit(__x) \
|
||||
((sizeof(__x) == sizeof(float)) ? __signbitf(__x) : \
|
||||
|
|
Загрузка…
Ссылка в новой задаче