Home | History | Annotate | Line # | Download | only in include
math.h revision 1.9
      1 /*	$NetBSD: math.h,v 1.9 2023/01/24 17:50:18 christos 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 static __inline int __isinf(double __x __unused) { return 0; }
     15 static __inline int __isnan(double __x __unused) { return 0; }
     16 #define	__HAVE_INLINE___ISINF
     17 #define	__HAVE_INLINE___ISNAN
     18 
     19 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     20     !defined(_XOPEN_SOURCE) || \
     21     ((__STDC_VERSION__ - 0) >= 199901L) || \
     22     ((_POSIX_C_SOURCE - 0) >= 200112L) || \
     23     ((_XOPEN_SOURCE  - 0) >= 600) || \
     24     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
     25 /* 7.12#6 number classification macros; machine-specific classes */
     26 #define	FP_DIRTYZERO	0x80
     27 #define	FP_ROP		0x81
     28 #endif
     29 
     30 #endif /* _VAX_MATH_H_ */
     31