1227652Sgrehan/*	$NetBSD: math.h,v 1.9 2023/01/24 17:50:18 christos Exp $	*/
2227652Sgrehan
3227652Sgrehan#ifndef _VAX_MATH_H_
4227652Sgrehan#define _VAX_MATH_H_
5227652Sgrehan
6227652Sgrehan#include <sys/cdefs.h>
7227652Sgrehan
8227652Sgrehan#if __GNUC_PREREQ__(3, 3)
9227652Sgrehan#define	__INFINITY	__builtin_huge_valf()
10227652Sgrehan#else
11227652Sgrehan#define	__INFINITY	1.0E+39F
12227652Sgrehan#endif
13227652Sgrehan
14227652Sgrehanstatic __inline int __isinf(double __x __unused) { return 0; }
15227652Sgrehanstatic __inline int __isnan(double __x __unused) { return 0; }
16227652Sgrehan#define	__HAVE_INLINE___ISINF
17227652Sgrehan#define	__HAVE_INLINE___ISNAN
18227652Sgrehan
19227652Sgrehan#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
20227652Sgrehan    !defined(_XOPEN_SOURCE) || \
21227652Sgrehan    ((__STDC_VERSION__ - 0) >= 199901L) || \
22227652Sgrehan    ((_POSIX_C_SOURCE - 0) >= 200112L) || \
23227652Sgrehan    ((_XOPEN_SOURCE  - 0) >= 600) || \
24227652Sgrehan    defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
25227652Sgrehan/* 7.12#6 number classification macros; machine-specific classes */
26227652Sgrehan#define	FP_DIRTYZERO	0x80
27227652Sgrehan#define	FP_ROP		0x81
28227652Sgrehan#endif
29227652Sgrehan
30227652Sgrehan#endif /* _VAX_MATH_H_ */
31227652Sgrehan