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_SUNOS_MATHERR_DECL_CHECK
11 #define FIXINC_SUNOS_MATHERR_DECL_CHECK 1
14 #ifndef FIXINC_MATH_EXCEPTION_CHECK
15 #define FIXINC_MATH_EXCEPTION_CHECK 1
18 #define exception __math_exception
22 #if defined( BROKEN_CABS_CHECK )
30 #endif /* BROKEN_CABS_CHECK */
33 #if defined( FIX_HEADER_BREAKAGE_CHECK )
34 extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
35 #endif /* FIX_HEADER_BREAKAGE_CHECK */
38 #if defined( HPUX11_FABSF_CHECK )
41 # define fabsf(x) ((float)fabs((double)(float)(x)))
44 #endif /* HPUX11_FABSF_CHECK */
47 #if defined( HPUX8_BOGUS_INLINES_CHECK )
48 extern "C" int abs(int);
50 #endif /* HPUX8_BOGUS_INLINES_CHECK */
53 #if defined( ISC_FMOD_CHECK )
54 extern double fmod(double, double);
55 #endif /* ISC_FMOD_CHECK */
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! */
63 static __inline__ double fake_hypot (double x, double y)
65 static __inline__ double fake_hypot (x, y)
69 return fabs (hypot (x, y));
71 #define hypot fake_hypot
72 #endif /* M88K_BAD_HYPOT_OPT_CHECK */
75 #if defined( MATH_EXCEPTION_CHECK )
76 typedef struct exception t_math_exception;
77 #endif /* MATH_EXCEPTION_CHECK */
80 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
83 #define HUGE_VAL 3.1415e+9 /* really big */
85 #endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
88 #if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
90 # define HUGE_VAL 3.4e+40
92 #endif /* MATH_HUGE_VAL_IFNDEF_CHECK */
95 #if defined( RS6000_DOUBLE_CHECK )
99 #endif /* RS6000_DOUBLE_CHECK */
102 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
103 #if 1|| !defined(__STRICT_ANSI__) /* not std C */
106 #endif /* STRICT_ANSI_NOT_CTD_CHECK */
109 #if defined( SUNOS_MATHERR_DECL_CHECK )
110 extern int matherr();
111 #endif /* SUNOS_MATHERR_DECL_CHECK */
114 #if defined( SVR4__P_CHECK )
118 #endif /* SVR4__P_CHECK */
121 #if defined( ULTRIX_ATOF_PARAM_CHECK )
122 extern double atof(const char *__nptr);
124 #endif /* ULTRIX_ATOF_PARAM_CHECK */
129 #endif /* FIXINC_MATH_EXCEPTION_CHECK */
131 #endif /* FIXINC_SUNOS_MATHERR_DECL_CHECK */