Debian Codegraph @

fixincludes/tests/base/math.h

raw
1 /* DO NOT EDIT THIS FILE.
2
3 It has been auto-edited by fixincludes from:
4
5 "fixinc/tests/inc/math.h"
6
7 This had to be done to correct non-standard usages in the
8 original, manufacturer supplied header file. */
9
10
11
12 #if defined( BROKEN_CABS_CHECK )
13 #ifdef __STDC__
14
15 #else
16
17 #endif
18
19 #endif /* BROKEN_CABS_CHECK */
20
21
22 #if defined( DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK )
23 #include <architecture/ppc/math.h>
24 #endif /* DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK */
25
26
27 #if defined( DARWIN_FLT_EVAL_METHOD_CHECK )
28 #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 16
29 #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == -1 || __FLT_EVAL_METHOD__ == 16
30 #endif /* DARWIN_FLT_EVAL_METHOD_CHECK */
31
32
33 #if defined( HPPA_HPUX_FP_MACROS_CHECK )
34 #endif /* _INCLUDE_HPUX_SOURCE */
35
36 #if defined(_INCLUDE_HPUX_SOURCE) || \
37 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
38 # define FP_NORMAL 0
39 # define FP_ZERO 1
40 # define FP_INFINITE 2
41 # define FP_SUBNORMAL 3
42 # define FP_NAN 4
43 #endif
44
45 #ifdef _INCLUDE_HPUX_SOURCE
46
47 #endif /* HPPA_HPUX_FP_MACROS_CHECK */
48
49
50 #if defined( HPUX11_CPP_POW_INLINE_CHECK )
51
52 #endif /* HPUX11_CPP_POW_INLINE_CHECK */
53
54
55 #if defined( HPUX_MATH_CONSTEXPR_CHECK )
56 # define _DINFINITY (__builtin_inf ())
57 # define _SINFINITY (__builtin_inff ())
58 # define _SQNAN (__builtin_nanf (""))
59 #endif /* HPUX_MATH_CONSTEXPR_CHECK */
60
61
62 #if defined( HPUX11_FABSF_CHECK )
63 #ifdef _PA_RISC
64 #ifndef __cplusplus
65 # define fabsf(x) ((float)fabs((double)(float)(x)))
66 #endif
67 #endif
68 #endif /* HPUX11_FABSF_CHECK */
69
70
71 #if defined( HPUX8_BOGUS_INLINES_CHECK )
72 extern "C" int abs(int);
73
74 #endif /* HPUX8_BOGUS_INLINES_CHECK */
75
76
77 #if defined( MATH_EXCEPTION_CHECK )
78 typedef struct exception t_math_exception;
79 #endif /* MATH_EXCEPTION_CHECK */
80
81
82 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
83
84 #define HUGE_VAL 3.1415e+9 /* really big */
85 #endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
86
87
88 #if defined( RS6000_DOUBLE_CHECK )
89 #ifndef __cplusplus
90 extern int class();
91 #endif
92 #endif /* RS6000_DOUBLE_CHECK */
93
94
95 #if defined( SOLARIS_MATH_12_CHECK )
96 #if __cplusplus >= 201103L
97 #endif
98 #endif /* SOLARIS_MATH_12_CHECK */
99
100
101 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
102 #if 1 && \
103 && defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
104 ( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
105 || !defined(__STRICT_ANSI__) ) /* not std C */
106 int foo;
107 #endif
108 #endif /* STRICT_ANSI_NOT_CTD_CHECK */
109
110
111 #if defined( VXWORKS_MATH_H_FP_C99_CHECK )
112
113 #define HUGE_VAL _ARCH_HUGH_VAL
114
115 #if _C99
116
117 #define FP_INFINITE 1
118 #define FP_NAN 2
119 #define FP_NORMAL (-1)
120 #define FP_SUBNORMAL (-2)
121 #define FP_ZERO 0
122
123 #define fpclassify(x) \
124 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, \
125 FP_SUBNORMAL, FP_ZERO, (x))
126
127 #define signbit(x) __builtin_signbit(x)
128 #define isfinite(x) __builtin_isfinite(x)
129 #define isnormal(x) __builtin_isnormal(x)
130 #define isnan(x) __builtin_isnan(x)
131 #define isinf(x) __builtin_isinf(x)
132
133 #define isgreater(x, y) __builtin_isgreater((x),(y))
134 #define isgreaterequal(x, y) __builtin_isgreaterequal((x),(y))
135 #define isless(x, y) __builtin_isless((x),(y))
136 #define islessequal(x, y) __builtin_islessequal((x),(y))
137 #define islessgreater(x, y) __builtin_islessgreater((x),(y))
138 #define isunordered(x, y) __builtin_isunordered((x),(y))
139
140 #endif /* _C99 */
141
142 #endif /* VXWORKS_MATH_H_FP_C99_CHECK */