Commit 6c820cf2 by Branko Cibej Committed by Phil Edwards

acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Check for sinf, cosf, fabsf,…

acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Check for sinf, cosf, fabsf, and sqrtf; add to LIBMATHOBJS if missing.

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

	* acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT):  Check for
	  sinf, cosf, fabsf, and sqrtf; add to LIBMATHOBJS if missing.
	* aclocal.m4:  Regenerate.
	* configure:  Regenerate.
	* math/cosf.c:  New file.
	* math/fabsf.c:  Likewise.
	* math/sinf.c:  Likewise.
	* math/sqrtf.c:  Likewise.
	* math/Makefile.am (EXTRA_DIST):  Add those four files.
	* math/Makefile.in:  Regenerate.

From-SVN: r34461
parent 5c61f0f2
2000-06-08 Branko Cibej <branko.cibej@hermes.si>
* acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Check for
sinf, cosf, fabsf, and sqrtf; add to LIBMATHOBJS if missing.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* math/cosf.c: New file.
* math/fabsf.c: Likewise.
* math/sinf.c: Likewise.
* math/sqrtf.c: Likewise.
* math/Makefile.am (EXTRA_DIST): Add those four files.
* math/Makefile.in: Regenerate.
2000-06-08 Phil Edwards <pme@sourceware.cygnus.com>
* testsuite/26_numerics/complex_inserters_extractors.cc: Need cmath.
......
......@@ -1027,11 +1027,12 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_SUBST(USE_LONG_DOUBLE)
dnl Check to see if basic C math functions have float, long double versions.
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 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 \
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 \
sinhl sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
sincosl finite finitef finitel fqfinite fpclass qfpclass)
#Some runtimes have these functions with a preceding underscore. Please
......
......@@ -1039,11 +1039,12 @@ AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
AC_SUBST(USE_LONG_DOUBLE)
dnl Check to see if basic C math functions have float, long double versions.
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 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 \
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 \
sinhl sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
sincosl finite finitef finitel fqfinite fpclass qfpclass)
#Some runtimes have these functions with a preceding underscore. Please
......
......@@ -31,6 +31,7 @@ EXTRA_LONG_DOUBLE_yes = \
signbitl.c cabsl.c
EXTRA_DIST = \
cosf.c fabsf.c sinf.c sqrtf.c \
ccos.c ccosf.c ccosh.c ccoshf.c ccoshl.c \
cexp.c cexpf.c c_log.c c_logf.c clog10.c clog10f.c \
cpow.c cpowf.c csin.c csinf.c csinh.c csinhf.c \
......
......@@ -116,6 +116,7 @@ EXTRA_LONG_DOUBLE_yes = \
EXTRA_DIST = \
cosf.c fabsf.c sinf.c sqrtf.c \
ccos.c ccosf.c ccosh.c ccoshf.c ccoshl.c \
cexp.c cexpf.c c_log.c c_logf.c clog10.c clog10f.c \
cpow.c cpowf.c csin.c csinf.c csinh.c csinhf.c \
......
/* Configuration data for libmath subpart of libstdc++. */
/* Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU ISO C++ Library. This library is free
software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option)
any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this library; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
As a special exception, you may use this file as part of a free software
library without restriction. Specifically, if other files instantiate
templates or use macros or inline functions from this file, or you compile
this file and link it with other files to produce an executable, this
file does not by itself cause the resulting executable to be covered by
the GNU General Public License. This exception does not however
invalidate any other reasons why the executable file might be covered by
the GNU General Public License. */
#include <math.h>
#include "mathconf.h"
/* Fallback whan __builtin_cosf can't be inlined. */
#if defined(_GLIBCPP_HAVE_BUILTIN_COSF) && !defined(_GLIBCPP_HAVE_COSF)
float cosf (float x) { return cos (x); }
#endif
/* Configuration data for libmath subpart of libstdc++. */
/* Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU ISO C++ Library. This library is free
software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option)
any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this library; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
As a special exception, you may use this file as part of a free software
library without restriction. Specifically, if other files instantiate
templates or use macros or inline functions from this file, or you compile
this file and link it with other files to produce an executable, this
file does not by itself cause the resulting executable to be covered by
the GNU General Public License. This exception does not however
invalidate any other reasons why the executable file might be covered by
the GNU General Public License. */
#include <math.h>
#include "mathconf.h"
/* Fallback whan __builtin_fabsf can't be inlined. */
#if defined(_GLIBCPP_HAVE_BUILTIN_FABSF) && !defined(_GLIBCPP_HAVE_FABSF)
float fabsf (float x) { return fabs (x); }
#endif
/* Configuration data for libmath subpart of libstdc++. */
/* Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU ISO C++ Library. This library is free
software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option)
any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this library; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
As a special exception, you may use this file as part of a free software
library without restriction. Specifically, if other files instantiate
templates or use macros or inline functions from this file, or you compile
this file and link it with other files to produce an executable, this
file does not by itself cause the resulting executable to be covered by
the GNU General Public License. This exception does not however
invalidate any other reasons why the executable file might be covered by
the GNU General Public License. */
#include <math.h>
#include "mathconf.h"
/* Fallback whan __builtin_sinf can't be inlined. */
#if defined(_GLIBCPP_HAVE_BUILTIN_SINF) && !defined(_GLIBCPP_HAVE_SINF)
float sinf (float x) { return sin (x); }
#endif
/* Configuration data for libmath subpart of libstdc++. */
/* Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU ISO C++ Library. This library is free
software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option)
any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this library; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
As a special exception, you may use this file as part of a free software
library without restriction. Specifically, if other files instantiate
templates or use macros or inline functions from this file, or you compile
this file and link it with other files to produce an executable, this
file does not by itself cause the resulting executable to be covered by
the GNU General Public License. This exception does not however
invalidate any other reasons why the executable file might be covered by
the GNU General Public License. */
#include <math.h>
#include "mathconf.h"
/* Fallback whan __builtin_sqrtf can't be inlined. */
#if defined(_GLIBCPP_HAVE_BUILTIN_SQRTF) && !defined(_GLIBCPP_HAVE_SQRTF)
float sqrtf (float x) { return sqrt (x); }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment