NetBSD/sys/arch/vax/include/math.h
2013-09-16 15:56:24 +00:00

31 lines
829 B
C

/* $NetBSD: math.h,v 1.7 2013/09/16 15:56:24 martin Exp $ */
#ifndef _VAX_MATH_H_
#define _VAX_MATH_H_
#include <sys/cdefs.h>
#if __GNUC_PREREQ__(3, 3)
#define __INFINITY __builtin_huge_valf()
#else
#define __INFINITY 1.0E+39F
#endif
static inline int __isinf(double __x) { return 0; }
static inline int __isnan(double __x) { return 0; }
#define __HAVE_INLINE___ISINF
#define __HAVE_INLINE___ISNAN
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
!defined(_XOPEN_SOURCE) || \
((__STDC_VERSION__ - 0) >= 199901L) || \
((_POSIX_C_SOURCE - 0) >= 200112L) || \
((_XOPEN_SOURCE - 0) >= 600) || \
defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
/* 7.12#6 number classification macros; machine-specific classes */
#define FP_DIRTYZERO 0x80
#define FP_ROP 0x81
#endif
#endif /* _VAX_MATH_H_ */