diff options
author | Yu Kobayashi <yukoba@accelart.jp> | 2013-07-30 09:00:44 +0900 |
---|---|---|
committer | Yu Kobayashi <yukoba@accelart.jp> | 2013-07-30 09:00:44 +0900 |
commit | 4258d64d0c6f0fbee8f17feed7200c18ea44a059 (patch) | |
tree | 26f3068b8158dccbcd798080cb037a8387d8e3b6 /system/include | |
parent | bc570895d71bc34b701111fb788a1ee07dd373c5 (diff) |
Added isinff and isnanf
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/libc/math.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/system/include/libc/math.h b/system/include/libc/math.h index 3bd0621c..e9af660f 100644 --- a/system/include/libc/math.h +++ b/system/include/libc/math.h @@ -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) : \ |