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