OSDN Git Service

5b4657a824b071dc1ae09895efeca14328468f0e
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / tests / base / math.h
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 #ifndef FIXINC_SUNOS_MATHERR_DECL_CHECK
11 #define FIXINC_SUNOS_MATHERR_DECL_CHECK 1
12
13 struct exception;
14 #ifndef FIXINC_MATH_EXCEPTION_CHECK
15 #define FIXINC_MATH_EXCEPTION_CHECK 1
16
17 #ifdef __cplusplus
18 #define exception __math_exception
19 #endif
20
21
22 #if defined( BROKEN_CABS_CHECK )
23 #ifdef __STDC__
24
25 #else
26
27 #endif
28  /* This is a comment
29                          and it ends here. */
30 #endif  /* BROKEN_CABS_CHECK */
31
32
33 #if defined( FIX_HEADER_BREAKAGE_CHECK )
34 extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
35 #endif  /* FIX_HEADER_BREAKAGE_CHECK */
36
37
38 #if defined( HPUX11_FABSF_CHECK )
39 #ifdef _PA_RISC
40 #ifndef __cplusplus
41 #  define fabsf(x) ((float)fabs((double)(float)(x)))
42 #endif
43 #endif
44 #endif  /* HPUX11_FABSF_CHECK */
45
46
47 #if defined( HPUX8_BOGUS_INLINES_CHECK )
48 extern "C" int abs(int);
49
50 #endif  /* HPUX8_BOGUS_INLINES_CHECK */
51
52
53 #if defined( ISC_FMOD_CHECK )
54 extern double   fmod(double, double);
55 #endif  /* ISC_FMOD_CHECK */
56
57
58 #if defined( M88K_BAD_HYPOT_OPT_CHECK )
59 extern double hypot();
60 /* Workaround a stupid Motorola optimization if one
61    of x or y is 0.0 and the other is negative!  */
62 #ifdef __STDC__
63 static __inline__ double fake_hypot (double x, double y)
64 #else
65 static __inline__ double fake_hypot (x, y)
66         double x, y;
67 #endif
68 {
69         return fabs (hypot (x, y));
70 }
71 #define hypot   fake_hypot
72 #endif  /* M88K_BAD_HYPOT_OPT_CHECK */
73
74
75 #if defined( MATH_EXCEPTION_CHECK )
76 typedef struct exception t_math_exception;
77 #endif  /* MATH_EXCEPTION_CHECK */
78
79
80 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
81
82 #ifndef HUGE_VAL
83 #define HUGE_VAL 3.1415e+9 /* really big */
84 #endif
85 #endif  /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
86
87
88 #if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
89 #ifndef HUGE_VAL
90 # define        HUGE_VAL 3.4e+40
91 #endif
92 #endif  /* MATH_HUGE_VAL_IFNDEF_CHECK */
93
94
95 #if defined( RS6000_DOUBLE_CHECK )
96 #ifndef __cplusplus
97 extern int class();
98 #endif
99 #endif  /* RS6000_DOUBLE_CHECK */
100
101
102 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
103 #if 1||  !defined(__STRICT_ANSI__) /* not std C */
104 int foo;
105 #endif
106 #endif  /* STRICT_ANSI_NOT_CTD_CHECK */
107
108
109 #if defined( SUNOS_MATHERR_DECL_CHECK )
110 extern int matherr();
111 #endif  /* SUNOS_MATHERR_DECL_CHECK */
112
113
114 #if defined( SVR4__P_CHECK )
115 #ifndef __P
116 #define __P(a) a
117 #endif
118 #endif  /* SVR4__P_CHECK */
119
120
121 #if defined( ULTRIX_ATOF_PARAM_CHECK )
122 extern double atof(const char *__nptr);
123
124 #endif  /* ULTRIX_ATOF_PARAM_CHECK */
125 #ifdef __cplusplus
126 #undef exception
127 #endif
128
129 #endif  /* FIXINC_MATH_EXCEPTION_CHECK */
130
131 #endif  /* FIXINC_SUNOS_MATHERR_DECL_CHECK */