00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL
00011 #define FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL 1
00012
00013 struct exception;
00014 #ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
00015 #define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
00016
00017 #ifdef __cplusplus
00018 #define exception __math_exception
00019 #endif
00020
00021
00022 #if defined( BROKEN_CABS_CHECK )
00023 #ifdef __STDC__
00024
00025 #else
00026
00027 #endif
00028
00029
00030 #endif
00031
00032
00033 #if defined( FIX_HEADER_BREAKAGE_CHECK )
00034 extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
00035 #endif
00036
00037
00038 #if defined( HPUX11_CPP_POW_INLINE_CHECK )
00039
00040 #endif
00041
00042
00043 #if defined( HPUX11_FABSF_CHECK )
00044 #ifdef _PA_RISC
00045 #ifndef __cplusplus
00046 # define fabsf(x) ((float)fabs((double)(float)(x)))
00047 #endif
00048 #endif
00049 #endif
00050
00051
00052 #if defined( HPUX8_BOGUS_INLINES_CHECK )
00053 extern "C" int abs(int);
00054
00055 #endif
00056
00057
00058 #if defined( ISC_FMOD_CHECK )
00059 extern double fmod(double, double);
00060 #endif
00061
00062
00063 #if defined( M88K_BAD_HYPOT_OPT_CHECK )
00064 extern double hypot();
00065
00066
00067 #ifdef __STDC__
00068 static __inline__ double fake_hypot (double x, double y)
00069 #else
00070 static __inline__ double fake_hypot (x, y)
00071 double x, y;
00072 #endif
00073 {
00074 return fabs (hypot (x, y));
00075 }
00076 #define hypot fake_hypot
00077 #endif
00078
00079
00080 #if defined( MATH_EXCEPTION_CHECK )
00081 typedef struct exception t_math_exception;
00082 #endif
00083
00084
00085 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
00086
00087 #ifndef HUGE_VAL
00088 #define HUGE_VAL 3.1415e+9
00089 #endif
00090 #endif
00091
00092
00093 #if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
00094 #ifndef HUGE_VAL
00095 # define HUGE_VAL 3.4e+40
00096 #endif
00097 #endif
00098
00099
00100 #if defined( RS6000_DOUBLE_CHECK )
00101 #ifndef __cplusplus
00102 extern int class();
00103 #endif
00104 #endif
00105
00106
00107 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
00108 #if 1 && \
00109 && defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
00110 ( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
00111 || !defined(__STRICT_ANSI__) )
00112 int foo;
00113 #endif
00114 #endif
00115
00116
00117 #if defined( SUNOS_MATHERR_DECL_CHECK )
00118 extern int matherr();
00119 #endif
00120
00121
00122 #if defined( SVR4__P_CHECK )
00123 #ifndef __P
00124 #define __P(a) a
00125 #endif
00126 #endif
00127
00128
00129 #if defined( ULTRIX_ATOF_PARAM_CHECK )
00130 extern double atof(const char *__nptr);
00131
00132 #endif
00133 #ifdef __cplusplus
00134 #undef exception
00135 #endif
00136
00137 #endif
00138
00139 #endif