aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/tests/base/math.h
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2000-05-30 19:41:37 +0000
committerBruce Korb <korbb@gcc.gnu.org>2000-05-30 19:41:37 +0000
commit26e903eefb735b09d75c3701eb44538e6beabbc1 (patch)
treef9fff6b66f38d9c71b9380d1bf5cca725944d4d1 /gcc/fixinc/tests/base/math.h
parent54ae96de89f391cd76bbd0bfab208b54e71804ec (diff)
downloadgcc-26e903eefb735b09d75c3701eb44538e6beabbc1.zip
gcc-26e903eefb735b09d75c3701eb44538e6beabbc1.tar.gz
gcc-26e903eefb735b09d75c3701eb44538e6beabbc1.tar.bz2
diff of diff does not work well, so use expected test result files
From-SVN: r34270
Diffstat (limited to 'gcc/fixinc/tests/base/math.h')
-rw-r--r--gcc/fixinc/tests/base/math.h101
1 files changed, 101 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/math.h b/gcc/fixinc/tests/base/math.h
new file mode 100644
index 0000000..9b2c80d
--- /dev/null
+++ b/gcc/fixinc/tests/base/math.h
@@ -0,0 +1,101 @@
+#ifndef FIXINC_SUNOS_MATHERR_DECL_CHECK
+#define FIXINC_SUNOS_MATHERR_DECL_CHECK 1
+
+struct exception;
+#ifndef FIXINC_MATH_EXCEPTION_CHECK
+#define FIXINC_MATH_EXCEPTION_CHECK 1
+
+#ifdef __cplusplus
+#define exception __math_exception
+#endif
+
+
+#if defined( BROKEN_CABS_CHECK )
+#ifdef __STDC__
+
+#else
+
+#endif
+ /* This is a comment
+ and it ends here. */
+#endif /* BROKEN_CABS_CHECK */
+
+
+#if defined( FIX_HEADER_BREAKAGE_CHECK )
+extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
+#endif /* FIX_HEADER_BREAKAGE_CHECK */
+
+
+#if defined( HPUX11_FABSF_CHECK )
+#ifdef _PA_RISC
+#ifndef __cplusplus
+# define fabsf(x) ((float)fabs((double)(float)(x)))
+#endif
+#endif
+#endif /* HPUX11_FABSF_CHECK */
+
+
+#if defined( HPUX8_BOGUS_INLINES_CHECK )
+extern "C" int abs(int);
+
+#endif /* HPUX8_BOGUS_INLINES_CHECK */
+
+
+#if defined( ISC_FMOD_CHECK )
+extern double fmod(double, double);
+#endif /* ISC_FMOD_CHECK */
+
+
+#if defined( M88K_BAD_HYPOT_OPT_CHECK )
+extern double hypot();
+/* Workaround a stupid Motorola optimization if one
+ of x or y is 0.0 and the other is negative! */
+#ifdef __STDC__
+static __inline__ double fake_hypot (double x, double y)
+#else
+static __inline__ double fake_hypot (x, y)
+ double x, y;
+#endif
+{
+ return fabs (hypot (x, y));
+}
+#define hypot fake_hypot
+#endif /* M88K_BAD_HYPOT_OPT_CHECK */
+
+
+#if defined( MATH_EXCEPTION_CHECK )
+typedef struct exception t_math_exception;
+#endif /* MATH_EXCEPTION_CHECK */
+
+
+#if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
+#ifndef HUGE_VAL
+# define HUGE_VAL 3.4e+40
+#endif
+#endif /* MATH_HUGE_VAL_IFNDEF_CHECK */
+
+
+#if defined( RS6000_DOUBLE_CHECK )
+#ifndef __cplusplus
+extern int class();
+#endif
+#endif /* RS6000_DOUBLE_CHECK */
+
+
+#if defined( SUNOS_MATHERR_DECL_CHECK )
+extern int matherr();
+#endif /* SUNOS_MATHERR_DECL_CHECK */
+
+
+#if defined( SVR4__P_CHECK )
+#ifndef __P
+#define __P(a) a
+#endif
+#endif /* SVR4__P_CHECK */
+#ifdef __cplusplus
+#undef exception
+#endif
+
+#endif /* FIXINC_MATH_EXCEPTION_CHECK */
+
+#endif /* FIXINC_SUNOS_MATHERR_DECL_CHECK */