This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Patch for missing sinf, cosf, ... [was: wchar_t working on sparc-sun-solaris2.6]
Sigh ...
I really should check things more carefully. Please ignore my
previous patch; this one should be better.
2000-06-05 Branko Cibej <branko.cibej@hermes.si>
* acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Check for sinf,
cosf, fabsf and sqrtf with AC_REPLACE_MATHFUNCS.
* math/Makefile.am (EXTRA_DIST): Add sinf.c, cosf.c, fabsf.c, sqrtf.c.
* math/sinf.c, math/cosf.c, math/fabsf.c, math/sqrtf.c: New files.
--
Branko Čibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.24
diff -c -p -r1.24 acinclude.m4
*** acinclude.m4 2000/06/02 07:24:14 1.24
--- acinclude.m4 2000/06/05 12:10:35
*************** AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
*** 497,505 ****
AC_SUBST(USE_LONG_DOUBLE)
dnl Check to see if basic C math functions have faster float versions.
AC_CHECK_FUNCS(modf isnan isnanf isnanl isinf isinff isinfl copysign \
! copysignl cosf coshf logf log10f powf sinf sinhf sqrtf tanf tanhf \
! strtof strtold fabsf sincos sincosf sincosl finite finite fqfinite \
fpclass qfpclass)
#Some runtimes have these functions with a preceding underscore. Please
--- 497,506 ----
AC_SUBST(USE_LONG_DOUBLE)
dnl Check to see if basic C math functions have faster float versions.
+ AC_REPLACE_MATHFUNCS(cosf sinf sqrtf fabsf)
AC_CHECK_FUNCS(modf isnan isnanf isnanl isinf isinff isinfl copysign \
! copysignl coshf logf log10f powf sinhf tanf tanhf \
! strtof strtold sincos sincosf sincosl finite finite fqfinite \
fpclass qfpclass)
#Some runtimes have these functions with a preceding underscore. Please
Index: math/Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/math/Makefile.am,v
retrieving revision 1.2
diff -c -p -r1.2 Makefile.am
*** Makefile.am 2000/04/28 02:50:55 1.2
--- Makefile.am 2000/06/05 12:10:35
*************** EXTRA_LONG_DOUBLE_yes = \
*** 31,36 ****
--- 31,37 ----
signbitl.c cabsl.c
EXTRA_DIST = \
+ sinf.c cosf.c fabsf.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 \
mathfuncs.tar