22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 #ifndef JDK_UTIL_MD_H
27 #define JDK_UTIL_MD_H
28
29 // checking for nanness
30 #ifdef __solaris__
31 #include <ieeefp.h>
32 #define ISNANF(f) isnanf(f)
33 #define ISNAND(d) isnand(d)
34 #elif defined(MACOSX)
35 #include <math.h>
36 #define ISNANF(f) isnan(f)
37 #define ISNAND(d) isnan(d)
38 #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
39 #include <math.h>
40 #define ISNANF(f) isnanf(f)
41 #define ISNAND(d) isnan(d)
42 #else
43 #error "missing platform-specific definition here"
44 #endif
45
46 #endif /* JDK_UTIL_MD_H */
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 #ifndef JDK_UTIL_MD_H
27 #define JDK_UTIL_MD_H
28
29 // checking for nanness
30 #ifdef __solaris__
31 #include <ieeefp.h>
32 #define ISNANF(f) isnanf(f)
33 #define ISNAND(d) isnand(d)
34 #elif defined(MACOSX)
35 #include <math.h>
36 #define ISNANF(f) isnan(f)
37 #define ISNAND(d) isnan(d)
38 #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
39 #include <math.h>
40 #define ISNANF(f) isnanf(f)
41 #define ISNAND(d) isnan(d)
42 #elif defined(_AIX)
43 #include <math.h>
44 #define ISNANF(f) _isnanf(f)
45 #define ISNAND(d) _isnan(d)
46 #else
47 #error "missing platform-specific definition here"
48 #endif
49
50 #endif /* JDK_UTIL_MD_H */
|