1 1.5.112.2 yamt /* $NetBSD: math.h,v 1.5.112.2 2014/05/22 11:40:12 yamt Exp $ */ 2 1.1 kleink 3 1.5.112.1 yamt #ifndef _VAX_MATH_H_ 4 1.5.112.1 yamt #define _VAX_MATH_H_ 5 1.5.112.1 yamt 6 1.5.112.1 yamt #include <sys/cdefs.h> 7 1.5.112.1 yamt 8 1.5.112.1 yamt #if __GNUC_PREREQ__(3, 3) 9 1.5.112.1 yamt #define __INFINITY __builtin_huge_valf() 10 1.5.112.1 yamt #else 11 1.2 kleink #define __INFINITY 1.0E+39F 12 1.5.112.1 yamt #endif 13 1.3 kleink 14 1.5.112.2 yamt static inline int __isinf(double __x) { return 0; } 15 1.5.112.2 yamt static inline int __isnan(double __x) { return 0; } 16 1.5.112.2 yamt #define __HAVE_INLINE___ISINF 17 1.5.112.2 yamt #define __HAVE_INLINE___ISNAN 18 1.4 kleink 19 1.3 kleink #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ 20 1.3 kleink !defined(_XOPEN_SOURCE) || \ 21 1.3 kleink ((__STDC_VERSION__ - 0) >= 199901L) || \ 22 1.3 kleink ((_POSIX_C_SOURCE - 0) >= 200112L) || \ 23 1.3 kleink ((_XOPEN_SOURCE - 0) >= 600) || \ 24 1.3 kleink defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) 25 1.3 kleink /* 7.12#6 number classification macros; machine-specific classes */ 26 1.3 kleink #define FP_DIRTYZERO 0x80 27 1.3 kleink #define FP_ROP 0x81 28 1.3 kleink #endif 29 1.5.112.1 yamt 30 1.5.112.1 yamt #endif /* _VAX_MATH_H_ */ 31