1 1.9 christos /* $NetBSD: math.h,v 1.9 2023/01/24 17:50:18 christos Exp $ */ 2 1.1 kleink 3 1.6 matt #ifndef _VAX_MATH_H_ 4 1.6 matt #define _VAX_MATH_H_ 5 1.6 matt 6 1.6 matt #include <sys/cdefs.h> 7 1.6 matt 8 1.6 matt #if __GNUC_PREREQ__(3, 3) 9 1.6 matt #define __INFINITY __builtin_huge_valf() 10 1.6 matt #else 11 1.2 kleink #define __INFINITY 1.0E+39F 12 1.6 matt #endif 13 1.3 kleink 14 1.9 christos static __inline int __isinf(double __x __unused) { return 0; } 15 1.9 christos static __inline int __isnan(double __x __unused) { return 0; } 16 1.7 martin #define __HAVE_INLINE___ISINF 17 1.7 martin #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.6 matt 30 1.6 matt #endif /* _VAX_MATH_H_ */ 31