1 /* DO NOT EDIT THIS FILE.
3 It has been auto-edited by fixincludes from:
5 "fixinc/tests/inc/math.h"
7 This had to be done to correct non-standard usages in the
8 original, manufacturer supplied header file. */
10 #ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
11 #define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
14 #define exception __math_exception
18 #if defined( BROKEN_CABS_CHECK )
25 #endif /* BROKEN_CABS_CHECK */
28 #if defined( DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK )
29 #include <architecture/ppc/math.h>
30 #endif /* DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK */
33 #if defined( DARWIN_FLT_EVAL_METHOD_CHECK )
34 #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 16
35 #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == -1 || __FLT_EVAL_METHOD__ == 16
36 #endif /* DARWIN_FLT_EVAL_METHOD_CHECK */
39 #if defined( HPPA_HPUX_FP_MACROS_CHECK )
40 #endif /* _INCLUDE_HPUX_SOURCE */
42 #if defined(_INCLUDE_HPUX_SOURCE) || \
43 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
46 # define FP_INFINITE 2
47 # define FP_SUBNORMAL 3
51 #ifdef _INCLUDE_HPUX_SOURCE
53 #endif /* HPPA_HPUX_FP_MACROS_CHECK */
56 #if defined( HPUX11_CPP_POW_INLINE_CHECK )
58 #endif /* HPUX11_CPP_POW_INLINE_CHECK */
61 #if defined( HPUX_MATH_CONSTEXPR_CHECK )
62 # define _DINFINITY (__builtin_inf ())
63 # define _SINFINITY (__builtin_inff ())
64 # define _SQNAN (__builtin_nanf (""))
65 #endif /* HPUX_MATH_CONSTEXPR_CHECK */
68 #if defined( HPUX11_FABSF_CHECK )
71 # define fabsf(x) ((float)fabs((double)(float)(x)))
74 #endif /* HPUX11_FABSF_CHECK */
77 #if defined( HPUX8_BOGUS_INLINES_CHECK )
78 extern "C" int abs(int);
80 #endif /* HPUX8_BOGUS_INLINES_CHECK */
83 #if defined( MATH_EXCEPTION_CHECK )
84 typedef struct exception t_math_exception
;
85 #endif /* MATH_EXCEPTION_CHECK */
88 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
90 #define HUGE_VAL 3.1415e+9 /* really big */
91 #endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
94 #if defined( RS6000_DOUBLE_CHECK )
98 #endif /* RS6000_DOUBLE_CHECK */
101 #if defined( SOLARIS_MATH_12_CHECK )
102 #if __cplusplus >= 201103L
104 #endif /* SOLARIS_MATH_12_CHECK */
107 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
109 && defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
110 ( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
111 || !defined(__STRICT_ANSI__) ) /* not std C */
114 #endif /* STRICT_ANSI_NOT_CTD_CHECK */
117 #if defined( VXWORKS_MATH_H_FP_C99_CHECK )
119 #define HUGE_VAL _ARCH_HUGH_VAL
123 #define FP_INFINITE 1
125 #define FP_NORMAL (-1)
126 #define FP_SUBNORMAL (-2)
129 #define fpclassify(x) \
130 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, \
131 FP_SUBNORMAL, FP_ZERO, (x))
133 #define signbit(x) __builtin_signbit(x)
134 #define isfinite(x) __builtin_isfinite(x)
135 #define isnormal(x) __builtin_isnormal(x)
136 #define isnan(x) __builtin_isnan(x)
137 #define isinf(x) __builtin_isinf(x)
139 #define isgreater(x, y) __builtin_isgreater((x),(y))
140 #define isgreaterequal(x, y) __builtin_isgreaterequal((x),(y))
141 #define isless(x, y) __builtin_isless((x),(y))
142 #define islessequal(x, y) __builtin_islessequal((x),(y))
143 #define islessgreater(x, y) __builtin_islessgreater((x),(y))
144 #define isunordered(x, y) __builtin_isunordered((x),(y))
148 #endif /* VXWORKS_MATH_H_FP_C99_CHECK */
153 #endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */