3115f94f7f
libstdc++-v3: * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Update comments. (__CORRECT_ISO_CPP11_MATH_H_PROTO): Rename to ... (__CORRECT_ISO_CPP11_MATH_H_PROTO_FP): ... this. Add test for C++11 <math.h> integral overloads. * configure: Regenerate. * config.h.in: Regenerate. * include/c_global/cmath [__cplusplus >= 201103L]: Reflect __CORRECT_ISO_CPP11_MATH_H_PROTO to __CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename. * include/c_global/cmath [_GLIBCXX_USE_C99_MATH && !_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC && __cplusplus >= 201103L] (std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO_INT. (std::isfinite): Likewise. (std::isinf): Likewise. (std::isnan): Likewise. (std::isnormal): Likewise. (std::signbit): Likewise. (std::isgreater): Likewise. (std::isgreaterequal): Likewise. (std::isless): Likewise. (std::islessequal): Likewise. (std::islessgreater): Likewise. (std::isunordered): Likewise. [__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1] (std::acosh): Likewise. (std::asinh): Likewise. (std::atanh): Likewise. (std::cbrt): Likewise. (std::copysign): Likewise. (std::erf): Likewise. (std::erfc): Likewise. (std::exp2): Likewise. (std::expm1): Likewise. (std::fdim): Likewise. (std::fma): Likewise. (std::fmax): Likewise. (std::fmin): Likewise. (std::hypot): Likewise. (std::ilogb): Likewise. (std::lgamma): Likewise. (std::llrint): Likewise. (std::llround): Likewise. (std::log1p): Likewise. (std::log2): Likewise. (std::logb): Likewise. (std::lrint): Likewise. (std::lround): Likewise. (std::nearbyint): Likewise. (std::nextafter): Likewise. (std::nexttoward): Likewise. (std::remainder): Likewise. (std::remquo): Likewise. (std::rint): Likewise. (std::round): Likewise. (std::scalbln): Likewise. (std::scalbn): Likewise. (std::tgamma): Likewise. (std::trunc): Likewise. * include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1 && __cplusplus >= 201103L]: Reflect __CORRECT_ISO_CPP11_MATH_H_PROTO to __CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename. fixincludes: * inclhack.def (solaris_math_12): New fix. (hpux11_fabsf): Replace bypass by *-hp-hpux11* mach selector. * fixincl.x: Regenerate. * tests/base/math.h [SOLARIS_MATH_12_CHECK]: New test. From-SVN: r242671
107 lines
2.2 KiB
C++
107 lines
2.2 KiB
C++
/* DO NOT EDIT THIS FILE.
|
|
|
|
It has been auto-edited by fixincludes from:
|
|
|
|
"fixinc/tests/inc/math.h"
|
|
|
|
This had to be done to correct non-standard usages in the
|
|
original, manufacturer supplied header file. */
|
|
|
|
#ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
|
|
#define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
|
|
|
|
#ifdef __cplusplus
|
|
#define exception __math_exception
|
|
#endif
|
|
|
|
|
|
#if defined( BROKEN_CABS_CHECK )
|
|
#ifdef __STDC__
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#endif /* BROKEN_CABS_CHECK */
|
|
|
|
|
|
#if defined( DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK )
|
|
#include <architecture/ppc/math.h>
|
|
#endif /* DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK */
|
|
|
|
|
|
#if defined( HPPA_HPUX_FP_MACROS_CHECK )
|
|
#endif /* _INCLUDE_HPUX_SOURCE */
|
|
|
|
#if defined(_INCLUDE_HPUX_SOURCE) || \
|
|
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
|
|
# define FP_NORMAL 0
|
|
# define FP_ZERO 1
|
|
# define FP_INFINITE 2
|
|
# define FP_SUBNORMAL 3
|
|
# define FP_NAN 4
|
|
#endif
|
|
|
|
#ifdef _INCLUDE_HPUX_SOURCE
|
|
|
|
#endif /* HPPA_HPUX_FP_MACROS_CHECK */
|
|
|
|
|
|
#if defined( HPUX11_CPP_POW_INLINE_CHECK )
|
|
|
|
#endif /* HPUX11_CPP_POW_INLINE_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( MATH_EXCEPTION_CHECK )
|
|
typedef struct exception t_math_exception;
|
|
#endif /* MATH_EXCEPTION_CHECK */
|
|
|
|
|
|
#if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
|
|
|
|
#define HUGE_VAL 3.1415e+9 /* really big */
|
|
#endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
|
|
|
|
|
|
#if defined( RS6000_DOUBLE_CHECK )
|
|
#ifndef __cplusplus
|
|
extern int class();
|
|
#endif
|
|
#endif /* RS6000_DOUBLE_CHECK */
|
|
|
|
|
|
#if defined( SOLARIS_MATH_12_CHECK )
|
|
#if __cplusplus >= 201103L
|
|
#endif
|
|
#endif /* SOLARIS_MATH_12_CHECK */
|
|
|
|
|
|
#if defined( STRICT_ANSI_NOT_CTD_CHECK )
|
|
#if 1 && \
|
|
&& defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
|
|
( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
|
|
|| !defined(__STRICT_ANSI__) ) /* not std C */
|
|
int foo;
|
|
#endif
|
|
#endif /* STRICT_ANSI_NOT_CTD_CHECK */
|
|
#ifdef __cplusplus
|
|
#undef exception
|
|
#endif
|
|
|
|
#endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */
|