[multiple changes]

2000-06-13  Steven King  <sxking@uswest.net>

        * acinclude.m4:  Fixup some of the builtin math tests and add tests for
        __builtin_fmod* and test libm for fmodf, fmodl or _fmodf, _fmodl.
        * acconfig.h: Add entries for fmod*.

2000-06-13  Branko Cibej  <branko.cibej@hermes.si>

        * bits/std_cmath.h:  Fix typos in tests (*_FMODFF -> *_FMODF).
        Test  *_MODFF not *_MODF for modf(float, float*).
        (modf(float, float*)): Remove reference to _C_legacy.

From-SVN: r34539
This commit is contained in:
Benjamin Kosnik 2000-06-14 01:16:03 +00:00
parent cc12edec9b
commit 5ae55a2e04
9 changed files with 448 additions and 276 deletions

View File

@ -4,6 +4,12 @@
__builtin_fmod* and test libm for fmodf, fmodl or _fmodf, _fmodl.
* acconfig.h: Add entries for fmod*.
2000-06-13 Branko Cibej <branko.cibej@hermes.si>
* bits/std_cmath.h: Fix typos in tests (*_FMODFF -> *_FMODF).
Test *_MODFF not *_MODF for modf(float, float*).
(modf(float, float*)): Remove reference to _C_legacy.
2000-06-13 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (enable_cshadow_headers): Change CSHADOWFLAGS to

View File

@ -102,6 +102,15 @@
// Define if the compiler/host combination has __builtin_floorl
#undef HAVE_BUILTIN_FLOORL
// Define if the compiler/host combination has __builtin_fmod
#undef HAVE_BUILTIN_FMOD
// Define if the compiler/host combination has __builtin_fmodf
#undef HAVE_BUILTIN_FMODF
// Define if the compiler/host combination has __builtin_fmodl
#undef HAVE_BUILTIN_FMODL
// Define if the compiler/host combination has __builtin_frexp
#undef HAVE_BUILTIN_FREXP

View File

@ -256,6 +256,9 @@ dnl check for __builtin_fabsl
dnl check for __builtin_floor
dnl check for __builtin_floorf
dnl check for __builtin_floorl
dnl check for __builtin_fmod
dnl check for __builtin_fmodf
dnl check for __builtin_fmodl
dnl check for __builtin_frexp
dnl check for __builtin_frexpf
dnl check for __builtin_frexpl
@ -368,7 +371,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2(0.0);],
[ __builtin_atan2(0.0, 0.0);],
use_builtin_atan2=yes, use_builtin_atan2=no)
AC_MSG_RESULT($use_builtin_atan2)
if test $use_builtin_atan2 = "yes"; then
@ -376,7 +379,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2f])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2f(0.0);],
[ __builtin_atan2f(0.0, 0.0);],
use_builtin_atan2f=yes, use_builtin_atan2f=no)
AC_MSG_RESULT($use_builtin_atan2f)
if test $use_builtin_atan2f = "yes"; then
@ -384,7 +387,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2l])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2l(0.0);],
[ __builtin_atan2l(0.0, 0.0);],
use_builtin_atan2l=yes, use_builtin_atan2l=no)
AC_MSG_RESULT($use_builtin_atan2l)
if test $use_builtin_atan2l = "yes"; then
@ -512,7 +515,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_floor])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ffloor(0.0);],
[ __builtin_floor(0.0);],
use_builtin_floor=yes, use_builtin_floor=no)
AC_MSG_RESULT($use_builtin_floor)
if test $use_builtin_floor = "yes"; then
@ -534,9 +537,33 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
if test $use_builtin_floorl = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FLOORL)
fi
AC_MSG_CHECKING([for __builtin_fmod])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmod(0.0, 0.0);],
use_builtin_fmod=yes, use_builtin_fmod=no)
AC_MSG_RESULT($use_builtin_fmod)
if test $use_builtin_fmod = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMOD)
fi
AC_MSG_CHECKING([for __builtin_fmodf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmodf(0.0, 0.0);],
use_builtin_fmodf=yes, use_builtin_fmodf=no)
AC_MSG_RESULT($use_builtin_fmodf)
if test $use_builtin_fmodf = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMODF)
fi
AC_MSG_CHECKING([for __builtin_fmodl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmodl(0.0, 0.0);],
use_builtin_fmodl=yes, use_builtin_fmodl=no)
AC_MSG_RESULT($use_builtin_fmodl)
if test $use_builtin_fmodl = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMODL)
fi
AC_MSG_CHECKING([for __builtin_frexp])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexp(0.0);],
[ __builtin_frexp(0.0, 0);],
use_builtin_frexp=yes, use_builtin_frexp=no)
AC_MSG_RESULT($use_builtin_frexp)
if test $use_builtin_frexp = "yes"; then
@ -544,7 +571,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_frexpf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexpf(0.0);],
[ __builtin_frexpf(0.0, 0);],
use_builtin_frexpf=yes, use_builtin_frexpf=no)
AC_MSG_RESULT($use_builtin_frexpf)
if test $use_builtin_frexpf = "yes"; then
@ -552,7 +579,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_frexpl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexpl(0.0);],
[ __builtin_frexpl(0.0, 0);],
use_builtin_frexpl=yes, use_builtin_frexpl=no)
AC_MSG_RESULT($use_builtin_frexpl)
if test $use_builtin_frexpl = "yes"; then
@ -560,7 +587,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexp])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexp(0.0);],
[ __builtin_ldexp(0.0, 0);],
use_builtin_ldexp=yes, use_builtin_ldexp=no)
AC_MSG_RESULT($use_builtin_ldexp)
if test $use_builtin_ldexp = "yes"; then
@ -568,7 +595,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexpf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexpf(0.0);],
[ __builtin_ldexpf(0.0, 0);],
use_builtin_ldexpf=yes, use_builtin_ldexpf=no)
AC_MSG_RESULT($use_builtin_ldexpf)
if test $use_builtin_ldexpf = "yes"; then
@ -576,7 +603,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexpl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexpl(0.0);],
[ __builtin_ldexpl(0.0, 0);],
use_builtin_ldexpl=yes, use_builtin_ldexpl=no)
AC_MSG_RESULT($use_builtin_ldexpl)
if test $use_builtin_ldexpl = "yes"; then
@ -632,7 +659,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modf(0.0);],
[ __builtin_modf(0.0, 0);],
use_builtin_modf=yes, use_builtin_modf=no)
AC_MSG_RESULT($use_builtin_modf)
if test $use_builtin_modf = "yes"; then
@ -640,7 +667,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modff])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modff(0.0);],
[ __builtin_modff(0.0, 0);],
use_builtin_modff=yes, use_builtin_modff=no)
AC_MSG_RESULT($use_builtin_modff)
if test $use_builtin_modff = "yes"; then
@ -648,7 +675,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modfl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modfl(0.0);],
[ __builtin_modfl(0.0, 0);],
use_builtin_modfl=yes, use_builtin_modfl=no)
AC_MSG_RESULT($use_builtin_modfl)
if test $use_builtin_modfl = "yes"; then
@ -656,7 +683,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_pow])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_pow(0.0);],
[ __builtin_pow(0.0, 0.0);],
use_builtin_pow=yes, use_builtin_pow=no)
AC_MSG_RESULT($use_builtin_pow)
if test $use_builtin_pow = "yes"; then
@ -664,7 +691,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_powf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_powf(0.0);],
[ __builtin_powf(0.0, 0.0);],
use_builtin_powf=yes, use_builtin_powf=no)
AC_MSG_RESULT($use_builtin_powf)
if test $use_builtin_powf = "yes"; then
@ -672,7 +699,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_powl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_powl(0.0);],
[ __builtin_powl(0.0, 0.0);],
use_builtin_powl=yes, use_builtin_powl=no)
AC_MSG_RESULT($use_builtin_powl)
if test $use_builtin_powl = "yes"; then
@ -1030,8 +1057,8 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_REPLACE_MATHFUNCS(cosf fabsf sinf sqrtf)
AC_CHECK_FUNCS(isnan isnanf isnanl isinf isinff isinfl copysign copysignl \
acosf acosl asinf asinl atanf atanl atan2f atan2l ceilf ceill cosl \
coshf coshl expf expl fabsl floorf floorl frexpf frexpl ldexpf \
ldexpl logf logl log10f log10l modf modff modfl powf powl sinl sinhf \
coshf coshl expf expl fabsl floorf floorl fmodf fmodl frexpf frexpl ldexpf \
ldexpl logf logl log10f log10l modff modfl powf powl sinl sinhf \
sinhl sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
sincosl finite finitef finitel fqfinite fpclass qfpclass)
@ -1043,10 +1070,10 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_CHECK_FUNCS(_isnan _isnanf _isnanl _isinf _isinff _isinfl _copysign \
_copysignl _acosf _acosl _asinf _asinl _atanf _atanl _atan2f _atan2l \
_ceilf _ceill _cosf _cosl _coshf _coshl _expf _expl _fabsf _fabsl \
_floorf _floorl _frexpf _frexpl _ldexpf _ldexpl _logf _logl _log10f \
_log10l _modf _modff _modfl _powf _powl _sinf _sinl _sinhf _sinhl _sqrtf \
_sqrtl _tanf _tanl _tanhf _tanhl _strtof _strtold _sincos _sincosf _sincosl \
_finite _finitef _finitel _fqfinite _fpclass _qfpclass)
_floorf _floorl _fmodf _fmodl _frexpf _frexpl _ldexpf _ldexpl _logf _logl \
_log10f _log10l _modff _modfl _powf _powl _sinf _sinl _sinhf _sinhl \
_sqrtf _sqrtl _tanf _tanl _tanhf _tanhl _strtof _strtold _sincos _sincosf \
_sincosl _finite _finitef _finitel _fqfinite _fpclass _qfpclass)
LIBS="$save_LIBS"
])

View File

@ -268,6 +268,9 @@ dnl check for __builtin_fabsl
dnl check for __builtin_floor
dnl check for __builtin_floorf
dnl check for __builtin_floorl
dnl check for __builtin_fmod
dnl check for __builtin_fmodf
dnl check for __builtin_fmodl
dnl check for __builtin_frexp
dnl check for __builtin_frexpf
dnl check for __builtin_frexpl
@ -380,7 +383,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2(0.0);],
[ __builtin_atan2(0.0, 0.0);],
use_builtin_atan2=yes, use_builtin_atan2=no)
AC_MSG_RESULT($use_builtin_atan2)
if test $use_builtin_atan2 = "yes"; then
@ -388,7 +391,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2f])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2f(0.0);],
[ __builtin_atan2f(0.0, 0.0);],
use_builtin_atan2f=yes, use_builtin_atan2f=no)
AC_MSG_RESULT($use_builtin_atan2f)
if test $use_builtin_atan2f = "yes"; then
@ -396,7 +399,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_atan2l])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_atan2l(0.0);],
[ __builtin_atan2l(0.0, 0.0);],
use_builtin_atan2l=yes, use_builtin_atan2l=no)
AC_MSG_RESULT($use_builtin_atan2l)
if test $use_builtin_atan2l = "yes"; then
@ -524,7 +527,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_floor])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ffloor(0.0);],
[ __builtin_floor(0.0);],
use_builtin_floor=yes, use_builtin_floor=no)
AC_MSG_RESULT($use_builtin_floor)
if test $use_builtin_floor = "yes"; then
@ -546,9 +549,33 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
if test $use_builtin_floorl = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FLOORL)
fi
AC_MSG_CHECKING([for __builtin_fmod])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmod(0.0, 0.0);],
use_builtin_fmod=yes, use_builtin_fmod=no)
AC_MSG_RESULT($use_builtin_fmod)
if test $use_builtin_fmod = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMOD)
fi
AC_MSG_CHECKING([for __builtin_fmodf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmodf(0.0, 0.0);],
use_builtin_fmodf=yes, use_builtin_fmodf=no)
AC_MSG_RESULT($use_builtin_fmodf)
if test $use_builtin_fmodf = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMODF)
fi
AC_MSG_CHECKING([for __builtin_fmodl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_fmodl(0.0, 0.0);],
use_builtin_fmodl=yes, use_builtin_fmodl=no)
AC_MSG_RESULT($use_builtin_fmodl)
if test $use_builtin_fmodl = "yes"; then
AC_DEFINE(HAVE_BUILTIN_FMODL)
fi
AC_MSG_CHECKING([for __builtin_frexp])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexp(0.0);],
[ __builtin_frexp(0.0, 0);],
use_builtin_frexp=yes, use_builtin_frexp=no)
AC_MSG_RESULT($use_builtin_frexp)
if test $use_builtin_frexp = "yes"; then
@ -556,7 +583,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_frexpf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexpf(0.0);],
[ __builtin_frexpf(0.0, 0);],
use_builtin_frexpf=yes, use_builtin_frexpf=no)
AC_MSG_RESULT($use_builtin_frexpf)
if test $use_builtin_frexpf = "yes"; then
@ -564,7 +591,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_frexpl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_frexpl(0.0);],
[ __builtin_frexpl(0.0, 0);],
use_builtin_frexpl=yes, use_builtin_frexpl=no)
AC_MSG_RESULT($use_builtin_frexpl)
if test $use_builtin_frexpl = "yes"; then
@ -572,7 +599,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexp])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexp(0.0);],
[ __builtin_ldexp(0.0, 0);],
use_builtin_ldexp=yes, use_builtin_ldexp=no)
AC_MSG_RESULT($use_builtin_ldexp)
if test $use_builtin_ldexp = "yes"; then
@ -580,7 +607,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexpf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexpf(0.0);],
[ __builtin_ldexpf(0.0, 0);],
use_builtin_ldexpf=yes, use_builtin_ldexpf=no)
AC_MSG_RESULT($use_builtin_ldexpf)
if test $use_builtin_ldexpf = "yes"; then
@ -588,7 +615,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_ldexpl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_ldexpl(0.0);],
[ __builtin_ldexpl(0.0, 0);],
use_builtin_ldexpl=yes, use_builtin_ldexpl=no)
AC_MSG_RESULT($use_builtin_ldexpl)
if test $use_builtin_ldexpl = "yes"; then
@ -644,7 +671,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modf(0.0);],
[ __builtin_modf(0.0, 0);],
use_builtin_modf=yes, use_builtin_modf=no)
AC_MSG_RESULT($use_builtin_modf)
if test $use_builtin_modf = "yes"; then
@ -652,7 +679,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modff])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modff(0.0);],
[ __builtin_modff(0.0, 0);],
use_builtin_modff=yes, use_builtin_modff=no)
AC_MSG_RESULT($use_builtin_modff)
if test $use_builtin_modff = "yes"; then
@ -660,7 +687,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_modfl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_modfl(0.0);],
[ __builtin_modfl(0.0, 0);],
use_builtin_modfl=yes, use_builtin_modfl=no)
AC_MSG_RESULT($use_builtin_modfl)
if test $use_builtin_modfl = "yes"; then
@ -668,7 +695,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_pow])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_pow(0.0);],
[ __builtin_pow(0.0, 0.0);],
use_builtin_pow=yes, use_builtin_pow=no)
AC_MSG_RESULT($use_builtin_pow)
if test $use_builtin_pow = "yes"; then
@ -676,7 +703,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_powf])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_powf(0.0);],
[ __builtin_powf(0.0, 0.0);],
use_builtin_powf=yes, use_builtin_powf=no)
AC_MSG_RESULT($use_builtin_powf)
if test $use_builtin_powf = "yes"; then
@ -684,7 +711,7 @@ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT, [
fi
AC_MSG_CHECKING([for __builtin_powl])
AC_TRY_COMPILE([#include <math.h>],
[ __builtin_powl(0.0);],
[ __builtin_powl(0.0, 0.0);],
use_builtin_powl=yes, use_builtin_powl=no)
AC_MSG_RESULT($use_builtin_powl)
if test $use_builtin_powl = "yes"; then
@ -1042,8 +1069,8 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_REPLACE_MATHFUNCS(cosf fabsf sinf sqrtf)
AC_CHECK_FUNCS(isnan isnanf isnanl isinf isinff isinfl copysign copysignl \
acosf acosl asinf asinl atanf atanl atan2f atan2l ceilf ceill cosl \
coshf coshl expf expl fabsl floorf floorl frexpf frexpl ldexpf \
ldexpl logf logl log10f log10l modf modff modfl powf powl sinl sinhf \
coshf coshl expf expl fabsl floorf floorl fmodf fmodl frexpf frexpl ldexpf \
ldexpl logf logl log10f log10l modff modfl powf powl sinl sinhf \
sinhl sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
sincosl finite finitef finitel fqfinite fpclass qfpclass)
@ -1055,10 +1082,10 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_CHECK_FUNCS(_isnan _isnanf _isnanl _isinf _isinff _isinfl _copysign \
_copysignl _acosf _acosl _asinf _asinl _atanf _atanl _atan2f _atan2l \
_ceilf _ceill _cosf _cosl _coshf _coshl _expf _expl _fabsf _fabsl \
_floorf _floorl _frexpf _frexpl _ldexpf _ldexpl _logf _logl _log10f \
_log10l _modf _modff _modfl _powf _powl _sinf _sinl _sinhf _sinhl _sqrtf \
_sqrtl _tanf _tanl _tanhf _tanhl _strtof _strtold _sincos _sincosf _sincosl \
_finite _finitef _finitel _fqfinite _fpclass _qfpclass)
_floorf _floorl _fmodf _fmodl _frexpf _frexpl _ldexpf _ldexpl _logf _logl \
_log10f _log10l _modff _modfl _powf _powl _sinf _sinl _sinhf _sinhl \
_sqrtf _sqrtl _tanf _tanl _tanhf _tanhl _strtof _strtold _sincos _sincosf \
_sincosl _finite _finitef _finitel _fqfinite _fpclass _qfpclass)
LIBS="$save_LIBS"
])

View File

@ -168,10 +168,10 @@ namespace std {
{ return ::floor(static_cast<double>(__x)); }
#endif
#if _GLIBCPP_HAVE_BUILTIN_FMODFF
#if _GLIBCPP_HAVE_BUILTIN_FMODF
inline float fmod(float __x, float __y)
{ return __builtin_fmodf(__x, __y); }
#elif _GLIBCPP_HAVE_FMODFF
#elif _GLIBCPP_HAVE_FMODF
inline float fmod(float __x, float __y)
{ return ::fmodf(__x, __y); }
#else
@ -223,17 +223,17 @@ namespace std {
{ return ::log10(static_cast<double>(__x)); }
#endif
#if _GLIBCPP_HAVE_BUILTIN_MODF
#if _GLIBCPP_HAVE_BUILTIN_MODFF
inline float modf(float __x, float* __iptr)
{ return __builtin_modff(__x, __iptr); }
#elif _GLIBCPP_HAVE_MODF
#elif _GLIBCPP_HAVE_MODFF
inline float modf(float __x, float* __iptr)
{ return ::modff(__x, __iptr); }
#else
inline float modf(float __x, float* __iptr)
{
double __tmp;
double __res = _C_legacy::modf(static_cast<double>(__x), &__tmp);
double __res = ::modf(static_cast<double>(__x), &__tmp);
*__iptr = static_cast<float> (__tmp);
return __res;
}

View File

@ -105,6 +105,15 @@
// Define if the compiler/host combination has __builtin_floorl
#undef HAVE_BUILTIN_FLOORL
// Define if the compiler/host combination has __builtin_fmod
#undef HAVE_BUILTIN_FMOD
// Define if the compiler/host combination has __builtin_fmodf
#undef HAVE_BUILTIN_FMODF
// Define if the compiler/host combination has __builtin_fmodl
#undef HAVE_BUILTIN_FMODL
// Define if the compiler/host combination has __builtin_frexp
#undef HAVE_BUILTIN_FREXP
@ -294,6 +303,12 @@
/* Define if you have the _floorl function. */
#undef HAVE__FLOORL
/* Define if you have the _fmodf function. */
#undef HAVE__FMODF
/* Define if you have the _fmodl function. */
#undef HAVE__FMODL
/* Define if you have the _fpclass function. */
#undef HAVE__FPCLASS
@ -342,9 +357,6 @@
/* Define if you have the _logl function. */
#undef HAVE__LOGL
/* Define if you have the _modf function. */
#undef HAVE__MODF
/* Define if you have the _modff function. */
#undef HAVE__MODFF
@ -591,6 +603,12 @@
/* Define if you have the floorl function. */
#undef HAVE_FLOORL
/* Define if you have the fmodf function. */
#undef HAVE_FMODF
/* Define if you have the fmodl function. */
#undef HAVE_FMODL
/* Define if you have the fpclass function. */
#undef HAVE_FPCLASS
@ -660,9 +678,6 @@
/* Define if you have the logl function. */
#undef HAVE_LOGL
/* Define if you have the modf function. */
#undef HAVE_MODF
/* Define if you have the modff function. */
#undef HAVE_MODFF

501
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -116,17 +116,19 @@ includes =
libio_headers = \
libio.h libioP.h iolibio.h
@GLIBCPP_NEED_LIBIO_TRUE@LIBIO_SRCS = @GLIBCPP_NEED_LIBIO_TRUE@\
@GLIBCPP_NEED_LIBIO_TRUE@LIBIO_SRCS = \
@GLIBCPP_NEED_LIBIO_TRUE@\
@GLIBCPP_NEED_LIBIO_TRUE@ filedoalloc.c genops.c fileops.c stdfiles.c cleanup.c
@GLIBCPP_NEED_LIBIO_FALSE@LIBIO_SRCS =
@GLIBCPP_NEED_LIBIO_FALSE@LIBIO_SRCS = \
EXTRA_DIST = iostreamP.h
libio_la_LIBADD = $(LIBIO_SRCS)
libio_la_DEPENDENCIES = $(libio_la_LIBADD)
libio_la_SOURCES = $(LIBIO_SRCS)
@GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE@LIBIO_CONFIG_H = @GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE@_G_config.h
@GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE@LIBIO_CONFIG_H =
@GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE@LIBIO_CONFIG_H = \
@GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE@_G_config.h
@GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE@LIBIO_CONFIG_H = \
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =

View File

@ -105,9 +105,12 @@ libinst_wstring_la = @libinst_wstring_la@
AUTOMAKE_OPTIONS = 1.3 gnits
MAINT_CHARSET = latin1
@USE_LIBDIR_TRUE@toolexeclibdir = @USE_LIBDIR_TRUE@$(libdir)$(MULTISUBDIR)
@USE_LIBDIR_FALSE@toolexeclibdir = @USE_LIBDIR_FALSE@$(toolexecdir)/lib$(MULTISUBDIR)
@USE_LIBDIR_FALSE@toolexecdir = @USE_LIBDIR_FALSE@$(exec_prefix)/$(target_alias)
@USE_LIBDIR_TRUE@toolexeclibdir = \
@USE_LIBDIR_TRUE@$(libdir)$(MULTISUBDIR)
@USE_LIBDIR_FALSE@toolexeclibdir = \
@USE_LIBDIR_FALSE@$(toolexecdir)/lib$(MULTISUBDIR)
@USE_LIBDIR_FALSE@toolexecdir = \
@USE_LIBDIR_FALSE@$(exec_prefix)/$(target_alias)
toolexeclib_LTLIBRARIES = libstdc++.la
EXTRA_LTLIBRARIES = libinst-string.la libinst-wstring.la
@ -253,9 +256,10 @@ std_headers = \
map memory new numeric ostream queue set sstream stack stdexcept \
streambuf string strstream typeinfo utility valarray vector
@GLIBCPP_NEED_LIBIO_TRUE@libio_headers = @GLIBCPP_NEED_LIBIO_TRUE@\
@GLIBCPP_NEED_LIBIO_TRUE@libio_headers = \
@GLIBCPP_NEED_LIBIO_TRUE@\
@GLIBCPP_NEED_LIBIO_TRUE@ $(top_builddir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
@GLIBCPP_NEED_LIBIO_FALSE@libio_headers =
@GLIBCPP_NEED_LIBIO_FALSE@libio_headers = \
generated_headers = \
$(top_builddir)/bits/std_limits.h $(top_builddir)/bits/c++config.h \
@ -334,8 +338,9 @@ libstdc___la_LIBADD = \
libstdc___la_LDFLAGS = -version-info 3:0:0 -lm
libstdc___la_DEPENDENCIES = $(libstdc___la_LIBADD)
@GLIBCPP_USE_CSHADOW_TRUE@CSHADOW_H = @GLIBCPP_USE_CSHADOW_TRUE@$(top_builddir)/stamp-cshadow
@GLIBCPP_USE_CSHADOW_FALSE@CSHADOW_H =
@GLIBCPP_USE_CSHADOW_TRUE@CSHADOW_H = \
@GLIBCPP_USE_CSHADOW_TRUE@$(top_builddir)/stamp-cshadow
@GLIBCPP_USE_CSHADOW_FALSE@CSHADOW_H = \
# We cannot use the default rules to install headers since we cannot
# statically decide which headers to install. So we have our own special