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 #endif /* DARWIN_FLT_EVAL_METHOD_CHECK */
38 #if defined( HPPA_HPUX_FP_MACROS_CHECK )
39 #endif /* _INCLUDE_HPUX_SOURCE */
41 #if defined(_INCLUDE_HPUX_SOURCE) || \
42 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
45 # define FP_INFINITE 2
46 # define FP_SUBNORMAL 3
50 #ifdef _INCLUDE_HPUX_SOURCE
52 #endif /* HPPA_HPUX_FP_MACROS_CHECK */
55 #if defined( HPUX11_CPP_POW_INLINE_CHECK )
57 #endif /* HPUX11_CPP_POW_INLINE_CHECK */
60 #if defined( HPUX_MATH_CONSTEXPR_CHECK )
61 # define _DINFINITY (__builtin_inf ())
62 # define _SINFINITY (__builtin_inff ())
63 # define _SQNAN (__builtin_nanf (""))
64 #endif /* HPUX_MATH_CONSTEXPR_CHECK */
67 #if defined( HPUX11_FABSF_CHECK )
70 # define fabsf(x) ((float)fabs((double)(float)(x)))
73 #endif /* HPUX11_FABSF_CHECK */
76 #if defined( HPUX8_BOGUS_INLINES_CHECK )
77 extern "C" int abs(int);
79 #endif /* HPUX8_BOGUS_INLINES_CHECK */
82 #if defined( MATH_EXCEPTION_CHECK )
83 typedef struct exception t_math_exception
;
84 #endif /* MATH_EXCEPTION_CHECK */
87 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
89 #define HUGE_VAL 3.1415e+9 /* really big */
90 #endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
93 #if defined( RS6000_DOUBLE_CHECK )
97 #endif /* RS6000_DOUBLE_CHECK */
100 #if defined( SOLARIS_MATH_12_CHECK )
101 #if __cplusplus >= 201103L
103 #endif /* SOLARIS_MATH_12_CHECK */
106 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
108 && defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
109 ( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
110 || !defined(__STRICT_ANSI__) ) /* not std C */
113 #endif /* STRICT_ANSI_NOT_CTD_CHECK */
116 #if defined( VXWORKS_MATH_H_FP_C99_CHECK )
118 #define HUGE_VAL _ARCH_HUGH_VAL
122 #define FP_INFINITE 1
124 #define FP_NORMAL (-1)
125 #define FP_SUBNORMAL (-2)
128 #define fpclassify(x) \
129 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, \
130 FP_SUBNORMAL, FP_ZERO, (x))
132 #define signbit(x) __builtin_signbit(x)
133 #define isfinite(x) __builtin_isfinite(x)
134 #define isnormal(x) __builtin_isnormal(x)
135 #define isnan(x) __builtin_isnan(x)
136 #define isinf(x) __builtin_isinf(x)
138 #define isgreater(x, y) __builtin_isgreater((x),(y))
139 #define isgreaterequal(x, y) __builtin_isgreaterequal((x),(y))
140 #define isless(x, y) __builtin_isless((x),(y))
141 #define islessequal(x, y) __builtin_islessequal((x),(y))
142 #define islessgreater(x, y) __builtin_islessgreater((x),(y))
143 #define isunordered(x, y) __builtin_isunordered((x),(y))
147 #endif /* VXWORKS_MATH_H_FP_C99_CHECK */
152 #endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */