xref: /netbsd-src/sys/arch/vax/include/math.h (revision a536ee5124e62c9a0051a252f7833dc8f50f44c9)
1 /*	$NetBSD: math.h,v 1.6 2012/02/05 17:45:38 matt Exp $	*/
2 
3 #ifndef _VAX_MATH_H_
4 #define _VAX_MATH_H_
5 
6 #include <sys/cdefs.h>
7 
8 #if __GNUC_PREREQ__(3, 3)
9 #define	__INFINITY	__builtin_huge_valf()
10 #else
11 #define	__INFINITY	1.0E+39F
12 #endif
13 
14 #define	__isinf(__x)	(0)
15 #define	__isnan(__x)	(0)
16 
17 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
18     !defined(_XOPEN_SOURCE) || \
19     ((__STDC_VERSION__ - 0) >= 199901L) || \
20     ((_POSIX_C_SOURCE - 0) >= 200112L) || \
21     ((_XOPEN_SOURCE  - 0) >= 600) || \
22     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
23 /* 7.12#6 number classification macros; machine-specific classes */
24 #define	FP_DIRTYZERO	0x80
25 #define	FP_ROP		0x81
26 #endif
27 
28 #endif /* _VAX_MATH_H_ */
29