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]
- To: Branko Čibej <branko dot cibej at hermes dot si>
- Subject: Re: Patch for missing sinf, cosf, ... [was: wchar_t working on sparc-sun-solaris2.6]
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 05 Jun 2000 13:41:21 +0200
- Cc: libstdc++ at sourceware dot cygnus dot com
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <3937CB4C.2D18D84C@hermes.si> <393B8A29.ECF5DE02@hermes.si>
- Reply-To: libstdc++ at sourceware dot cygnus dot com
Branko =?iso-8859-2?Q?=C8ibej?= <branko.cibej@hermes.si> writes:
| [1 <text/plain; iso-8859-2 (quoted-printable)>]
| O.K., here's the first patch. It fixes problems with missing c9x math
| functions on sparc-sun-solaris2.6.
|
| Although the builtin functions exist, it seems that GCC sometimes
| can't expand them inline and generates a call to the library function
| instead. Thus, libstdc++ on Solaris contains references to sinf, cosf
| and sqrtf. This patch provides implementations of these functions
| (and fabsf which is also built-in, although it's not causing a problem
| for now). This solution is generic and should work on other systems
| that don't provide these functions.
|
|
| 2000-06-05 Branko Cibej <branko.cibej@hermes.si>
|
| * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPP): Check for sinf,
| cosf, fabsf and sqrtf.
|
| * 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.
Brane,
Thanks you for your patch. I'll look at it closely.
-- Gaby